/* Paleta de Colores y Variables */
:root {
    --verde-naturaleza: #2E7D32;
    --verde-claro: #4CAF50;
    --gris-ferrocarril: #424242;
    --gris-claro: #9E9E9E;
    --color-tiza: #F9F6F0;
    --marron-madera: #8D6E63;
    --naranja-ladrillo: #ff6600;
}

/* Configuraciones Globales */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-tiza);
    color: var(--gris-ferrocarril);
}

h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    margin-bottom: 15px;
}

.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

/* Encabezado y Marca */
.header-marca {
    text-align: center;
    padding: 15px 0 10px 0;
    background: #fff;
    border-bottom: 3px solid var(--verde-naturaleza);
}

.contenedor-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.logo-central {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--verde-naturaleza);
    transition: transform 0.3s ease;
}

.logo-central:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contenedor-logo h1 {
    margin-top: 10px;
    font-family: 'Roboto Slab', serif;
    color: var(--verde-naturaleza);
}

/* Navegación */
.nav {
    text-align: center;
    margin-top: 10px;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav ul li {
    display: inline-block;
    margin: 5px 15px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--verde-naturaleza);
}

/* Secciones Generales */
.seccion-clara {
    padding-top: 30px;
    padding-bottom: 40px;
    background-color: #fcfaf5;
}

.seccion-gris {
    background-color: #E0E0E0;
    border-top: 2px dashed var(--gris-ferrocarril);
    border-bottom: 2px dashed var(--gris-ferrocarril);
}

.seccion-madera {
    background-color: var(--marron-madera);
    color: white;
}

.seccion-madera h2, .seccion-madera p {
    color: var(--color-tiza);
}

/* Hero (Inicio) */
.hero {
    background-color: var(--verde-naturaleza);
    color: var(--color-tiza);
    text-align: center;
    padding: 80px 20px;
    border-bottom: 6px solid var(--gris-ferrocarril);
}

.hero h2 {
    font-size: 2.2rem;
    color: white;
}

.horarios {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 15px 20px;
    border-radius: 10px;
}

/* Botones de ubicación en el Hero */
.contenedor-ubicaciones {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ubicacion {
    background-color: #ffffff;
    color: var(--verde-naturaleza);
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-ubicacion:hover {
    background-color: var(--color-tiza);
    transform: translateY(-2px);
}

/* Botones Generales */
.btn-principal {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    background-color: var(--gris-ferrocarril);
    color: white;
}

.btn-principal:hover {
    background-color: var(--verde-claro);
}

.btn-marketplace-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--naranja-ladrillo);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.btn-marketplace-logo:hover {
    transform: scale(1.05);
}

.logo-boton {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Carruseles de Publicidad Móvil */
.seccion-carruseles {
    background-color: #E0E0E0;
    border-bottom: 4px solid var(--gris-ferrocarril);
    padding: 15px 0;
    overflow: hidden; 
}

.carrusel-contenedor {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.carrusel-track {
    display: inline-flex;
    gap: 20px;
    padding-left: 20px;
    width: max-content;
}

.track-lento {
    animation: moverCinta 25s linear infinite; 
}

.carrusel-track:hover {
    animation-play-state: paused;
}

@keyframes moverCinta {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tarjeta-ig {
    display: inline-block;
    background: transparent;
    padding: 5px;
    transition: transform 0.3s ease;
}

.tarjeta-ig:hover {
    transform: scale(1.1);
}

.foto-ig {
    width: 90px;
    height: 90px;
    border-radius: 50%; 
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Formulario */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.formulario input, .formulario textarea {
    padding: 12px;
    border: 1px solid var(--gris-claro);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

/* --- Sección Autoridades --- */
.grilla-autoridades {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tarjeta-autoridad {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--verde-naturaleza);
    transition: transform 0.3s ease;
}

.tarjeta-autoridad:hover {
    transform: translateY(-5px);
}

.foto-autoridad {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E0E0E0;
    margin-bottom: 15px;
}

.tarjeta-autoridad h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px 0;
    color: var(--verde-naturaleza);
}

.tarjeta-autoridad .cargo {
    font-size: 0.95rem;
    color: var(--gris-ferrocarril);
    font-weight: bold;
    margin: 0;
}

/* --- Tabla de Feriantes --- */
.tabla-feriantes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tabla-feriantes th {
    background-color: var(--verde-naturaleza);
    color: white;
    padding: 15px;
    text-align: left;
}

.tabla-feriantes th:nth-child(1), 
.tabla-feriantes th:nth-child(6),
.tabla-feriantes td:nth-child(1), 
.tabla-feriantes td:nth-child(6) {
    text-align: center !important;
    width: 70px !important;
    max-width: 70px !important;
}

.tabla-feriantes td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: left;
}

.logo-mini {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid #eee;
}

.link-ig {
    color: var(--naranja-ladrillo);
    text-decoration: none;
    font-weight: bold;
}

.link-ig:hover {
    text-decoration: underline;
}

/* --- Ventana Flotante (Modal) --- */
.image-zoomable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-zoomable:hover {
    transform: scale(1.08);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

/* Diseño del cartelito del Censo con ambos logos */
.cartel-censo {
    background-color: var(--verde-naturaleza);
    max-width: 500px;
    width: 100%;
    padding: 35px 25px 25px 25px;
    border-radius: 15px;
    border: 3px solid #ffffff;
    text-align: center;
    position: relative;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    animation: zoomEfecto 0.3s ease;
}

.encabezado-censo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.encabezado-censo h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #ffffff;
}

.logo-censo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.botones-modal {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-cerrar-secundario {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cerrar-secundario:hover {
    background-color: #ffffff;
    color: var(--verde-naturaleza);
}

/* Contenido Visor de Fotos */
.contenido-modal {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomEfecto 0.25s ease;
}

@keyframes zoomEfecto {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 18px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.cerrar-modal:hover {
    color: #ddd;
}

/* Footer */
.footer {
    background-color: var(--gris-ferrocarril);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Ajustes para Celulares */
@media (max-width: 600px) {
    .encabezado-censo {
        flex-direction: column;
        gap: 10px;
    }
    .logo-censo {
        width: 65px;
        height: 65px;
    }
    .contenido-modal {
        max-width: 95%;
    }
}