/* --- VARIABLES GLOBALES (VERDE Y AMARILLO) --- */
:root {
    --primary: #10b981;      /* Verde Esmeralda (Principal) */
    --primary-dark: #059669; /* Verde más oscuro para hovers */
    --dark: #064e3b;         /* Verde Bosque profundo para textos y fondos */
    --light: #f0fdf4;        /* Blanco con un toque verdoso muy suave para el fondo */
    --accent: #f1c40f;       /* Amarillo Dorado (Alma Dorada) */
    --yellow-bright: #fbbf24; /* Amarillo más brillante para botones */
    
    /* Variables exclusivas para el formulario adaptadas a tu paleta */
    --form-bg-seccion: #ffffff;
    --form-borde: #cccccc;
}

/* Reset y Base */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    scroll-behavior: smooth;
}

/* --- MENÚ DE NAVEGACIÓN --- */
.navbar {
    background: var(--dark); /* Fondo verde oscuro para que el amarillo resalte */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    color: var(--accent); /* Logo en amarillo */
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent); /* Al pasar el mouse cambia a amarillo */
}

/* --- CABECERA (HEADER) --- */
header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

/* --- CONTENEDORES Y TARJETAS --- */
.contenedor-principal {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.card-carga {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary); /* Detalle en verde */
}

/* --- BOTONES GENERALES --- */
button {
    background: var(--accent);
    color: var(--dark); /* Texto oscuro para contraste */
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

button:hover {
    background: var(--yellow-bright);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

/* --- NOTICIAS Y VISUALIZACIÓN --- */
.post {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary); /* Línea verde a la izquierda */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- NEWS TICKER (ESTILO DORADO) --- */
.news-ticker {
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    height: 45px;
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ticker-title {
    background: var(--dark);
    color: var(--accent);
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.link-ticker {
    color: var(--dark);
    text-decoration: underline;
    margin-right: 60px;
    font-size: 0.95rem;
    font-weight: bold;
}

.link-ticker:hover {
    color: white;
    background: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

/* --- ELEMENTOS PDF --- */
.item-pdf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #dcfce7; /* Verde muy clarito */
    margin-bottom: 10px;
    border-radius: 5px;
    border-right: 4px solid var(--primary);
}

.item-pdf a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

/* --- BOTÓN DE INSTAGRAM --- */
.boton-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

/* --- LOGO E IMÁGENES EXTRA --- */
.logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* --- FOOTER PRINCIPAL --- */
.footer-principal {
    background-color: #1f7a57; /* Tu verde principal */
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid #f1c40f; /* Tu dorado */
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-seccion h4 {
    color: #f1c40f;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-seccion a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-seccion a:hover {
    color: #f1c40f;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* --- WHATSAPP --- */
.whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}


/* ==========================================================================
   ESTILOS EXCLUSIVOS: MÓDULO DE REGISTRO (SAC COLINAS DE PEQUIVEN)
   ========================================================================== */

.contenedor-formulario {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary); /* Integrado a tu verde esmeralda */
}

.contenedor-formulario h2 {
    color: var(--dark); /* Integrado a tu verde bosque oscuro */
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.contenedor-formulario p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

/* Estructura de los Bloques (Fieldset) */
.contenedor-formulario fieldset {
    border: 1px solid var(--form-borde);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: var(--light); /* Fondo sutil verde claro de tu root */
}

.contenedor-formulario legend {
    font-weight: bold;
    color: var(--primary-dark); /* Destaque en verde mediano */
    padding: 0 10px;
    font-size: 16px;
}

/* Control de Campos */
.grupo-formulario {
    margin-bottom: 15px;
}

.grupo-formulario label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--dark);
}

.grupo-formulario input[type="text"],
.grupo-formulario input[type="date"],
.grupo-formulario input[type="tel"],
.grupo-formulario input[type="number"],
.grupo-formulario select,
.grupo-formulario textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--form-borde);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.3s ease;
}

.grupo-formulario input:focus,
.grupo-formulario select:focus,
.grupo-formulario textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}

/* Grillas Adaptativas (Responsive Grid) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.nota-campos {
    font-style: italic;
    font-size: 13px;
    color: #555;
    margin: 10px 0 5px 0;
}

/* Botones de Acción del Formulario */
.acciones {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Botón registrar (Usa el estilo de tus botones principales amarillos con hover) */
.contenedor-formulario .btn-principal {
    background: var(--accent);
    color: var(--dark);
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto; /* Para que no ocupe todo el ancho al final */
    transition: 0.3s;
}

.contenedor-formulario .btn-principal:hover {
    background: var(--yellow-bright);
    transform: scale(1.02);
}

/* Botón limpiar secundario */
.contenedor-formulario .btn-secundario {
    background-color: #6c757d;
    color: #ffffff;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    transition: 0.3s;
}

.contenedor-formulario .btn-secundario:hover {
    background-color: #5a6268;
}


/* --- RESPONSIVE GENERAL Y DE FORMULARIOS --- */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    .navbar { height: auto; padding: 15px 0; }
    .formularios, .grid-informacion { grid-template-columns: 1fr; display: block; }
    
    /* Responsive para la grilla del formulario */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contenedor-principal > div { 
        grid-template-columns: 1fr !important; 
    }
    
    iframe {
        width: 100% !important;
        height: 250px !important;
    }
    
    .hero img {
        width: 80px;
    }
}