/* --- Configuración General --- */
body {
    font-family: 'Public Sans', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* --- Contenedor --- */
.form-container {
    background: white;
    width: 100%;
    max-width: 600px; /* Ancho cómodo para campos largos */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* --- Grid de Formulario --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Campos de ancho completo (Nombre y Ubicación) */
.full-width {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.input-group input {
    padding: 14px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

/* --- Acciones y Botones --- */
.form-actions {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-save, .btn-back {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.btn-save {
    background-color: #2c3e50;
    color: white;
}

.btn-save:hover {
    background-color: #1a252f;
}

.btn-back {
    background-color: #ecf0f1;
    color: #7f8c8d;
    border: 1px solid #dcdde1;
}

.btn-back:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
}