/* Tipografía Institucional */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

:root {
    --verde-institucional: #10312B;
    --guinda-institucional: #621132;
    /* Color de acento */
    --dorado-institucional: #EADBB9;
    /* Color de realce */
    --gris-fondo: #F4F4F4;
    --blanco: #FFFFFF;
    --primary-dark: #023d2b;
    --primary-light: #1b5e40;
    --accent-green: #298256;
    --bg-gray: #f4f6f5;
    --text-dark: #333;
    --text-gray: #6c757d;
    --border-color: #e0e0e0;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gris-fondo);
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}


.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.main-header {
    background: var(--blanco);
    border-bottom: 4px solid var(--dorado-institucional);
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section - Dominio Verde Ecología */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imagenes/bitacora/cenotes.webp') center/cover;
    border-radius: 12px;
    padding: 60px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    min-height: 400px;
    ;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.hero-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #ddd;
}

.badge-fase {
    display: inline-block;
    background-color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.hero-card {
    background-color: rgba(2, 61, 43, 0.85);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 8px;
    max-width: 350px;
}

.hero-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.hero-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #ddd;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Grid de Estadísticas (Tarjetas) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0 5%;
    margin-top: -30px;
}

.stat-card {
    background: var(--blanco);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 4px solid var(--guinda-institucional);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--guinda-institucional);
}

.stat-card .label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--guinda-institucional);
    text-transform: uppercase;
}

/* --- Sección Principal (Fases y Actividad) --- */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card-panel {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.panel-title a {
    font-size: 0.85rem;
    font-weight: normal;
    color: #1a73e8;
}

/* Timeline / Stepper */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

/* Linea de progreso simulada */
.timeline::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 30px;
    width: 45%;
    /* Hasta el modelo */
    height: 3px;
    background: var(--accent-green);
    z-index: 2;
}

.step {
    position: relative;
    z-index: 3;
    text-align: center;
    background: white;
    width: 60px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    border: 4px solid white;
}

.step.completed .step-icon {
    background: var(--accent-green);
}

.step.active .step-icon {
    background: #fbbc04;
}

.step-label {
    font-size: 0.75rem;
    font-weight: bold;
}

.step-status {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.step.active .step-status {
    color: #fbbc04;
}

.btn-full-phases {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contenedores de Información */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 5%;
}

.panel-institucional {
    background: var(--blanco);
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-header {
    background: var(--guinda-institucional);
    color: var(--dorado-institucional);
    padding: 15px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.panel-body {
    padding: 25px;
    line-height: 1.6;
}

/* Timeline Moderno */

/* Footer */
.main-footer {
    background: var(--guinda-institucional);
    color: var(--blanco);
    padding: 40px 5%;
    border-top: 5px solid var(--guinda-institucional);
}

.logo-institucional {
    height: 75px;
    width: auto;
    display: block;
}

/* ===== ESTILOS PÁGINA HOME ECOLOGÍA ===== */

.main-wrapper {
    padding: 40px 5%;
}

/* Hero Section Ecología */
.hero-ecology {
    background: linear-gradient(135deg, rgba(16, 49, 43, 0.8) 0%, rgba(2, 61, 43, 0.9) 100%), 
                url('../images/bitacora/cenotes.webp') center/cover no-repeat;
    border-radius: 12px;
    padding: 100px 50px;
    color: white;
    text-align: left;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-ecology::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(234, 219, 185, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-ecology::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 400px;
    height: 400px;
    background: rgba(234, 219, 185, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text-ecology h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text-ecology p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #e8f5e9;
    font-weight: 300;
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    background: var(--dorado-institucional);
    color: var(--verde-institucional);
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 219, 185, 0.3);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 219, 185, 0.4);
}

/* Estadísticas de Impacto */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stat-impact {
    background: white;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-green);
}

.stat-impact:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--verde-institucional);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* ===== CARRUSEL DE PROGRAMAS Y ACTIVIDADES ===== */
.carousel-section {
    margin-bottom: 70px;
}

.carousel-container {
    position: relative;
    margin-top: 40px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(0);
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    16.66% {
        transform: translateX(-100%);
    }
    33.32% {
        transform: translateX(-200%);
    }
    49.98% {
        transform: translateX(-300%);
    }
    66.64% {
        transform: translateX(-400%);
    }
    83.3% {
        transform: translateX(-500%);
    }
    100% {
        transform: translateX(-600%);
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(16, 49, 43, 0.8), transparent);
    z-index: 1;
}

.slide-info {
    position: relative;
    z-index: 2;
    color: white;
    padding: 40px;
    width: 100%;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-info p {
    font-size: 1rem;
    color: #e8f5e9;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Controles del Carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(234, 219, 185, 0.9);
    color: var(--verde-institucional);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: var(--dorado-institucional);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(234, 219, 185, 0.5);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Indicadores de Slide */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--guinda-institucional);
    width: 28px;
    border-radius: 6px;
    animation: indicatorPulse 0.8s ease;
}

.indicator:hover {
    background: var(--accent-green);
    transform: scale(1.2);
}

@keyframes indicatorPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(98, 17, 50, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(98, 17, 50, 0);
    }
}

/* Sección de Iniciativas */
.initiatives-section {
    margin-bottom: 70px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--verde-institucional), var(--guinda-institucional));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-gray);
    font-weight: 300;
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.initiative-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dorado-institucional), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.initiative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.initiative-card:hover::before {
    transform: scaleX(1);
}

.initiative-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.initiative-card:hover .initiative-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--guinda-institucional), var(--dorado-institucional));
}

.initiative-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--verde-institucional);
    margin-bottom: 15px;
}

.initiative-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    color: var(--guinda-institucional);
    gap: 12px;
}

/* Sección de Programas */
.programs-section {
    background: linear-gradient(135deg, rgba(234, 219, 185, 0.1), rgba(98, 17, 50, 0.05));
    border-radius: 12px;
    padding: 60px 50px;
    margin-bottom: 70px;
    border: 1px solid rgba(234, 219, 185, 0.2);
}

.programs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.programs-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--verde-institucional);
    margin-bottom: 20px;
}

.programs-section > .programs-container > div:first-child p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.programs-list {
    list-style: none;
    margin-bottom: 30px;
}

.programs-list li {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.programs-list li:hover {
    padding-left: 10px;
}

.programs-list i {
    color: var(--accent-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-secondary {
    display: inline-block;
    background: var(--guinda-institucional);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--verde-institucional);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(16, 49, 43, 0.2);
}

.programs-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--dorado-institucional), var(--guinda-institucional));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(98, 17, 50, 0.15);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--verde-institucional), var(--primary-dark));
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(234, 219, 185, 0.08);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(234, 219, 185, 0.06);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    color: #e8f5e9;
    margin-bottom: 35px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-primary {
    background: var(--dorado-institucional);
    color: var(--verde-institucional);
}

.btn-cta-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 219, 185, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--verde-institucional);
    transform: translateY(-2px);
}

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    padding: 25px;
    border-left: 4px solid var(--guinda-institucional);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-green);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dorado-institucional), var(--guinda-institucional));
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 800;
}

.news-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--verde-institucional);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-wrapper {
        aspect-ratio: 16 / 5;
    }

    .initiatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-ecology {
        padding: 60px 25px;
    }
    
    .hero-text-ecology h1 {
        font-size: 2rem;
    }

    .carousel-wrapper {
        aspect-ratio: 16 / 4;
    }

    .slide-info {
        padding: 20px;
    }

    .slide-info h3 {
        font-size: 1.3rem;
    }

    .slide-info p {
        font-size: 0.8rem;
    }
    
    .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta {
        width: 100%;
        text-align: center;
    }
    
    .news-card {
        flex-direction: column;
    }
}


/* --- seccion de la bitacora N O TOCAR --- */


/* --- COMPONENTES DE PESTAÑAS (TABS) --- */
.tabs-container {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #F1F3F5;
    border-bottom: 2px solid #EADBB9; /* Dorado Institucional */
}

.tab-link {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    background: rgba(98, 17, 50, 0.05); /* Toque guinda suave */
}

.tab-link.active {
    color: var(--guinda-institucional);
    border-bottom: 3px solid var(--guinda-institucional);
    background: #FFFFFF;
}

/* --- CONTENIDO DE LAS SESIONES --- */
.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.sesion-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sesion-meta span i {
    color: var(--dorado-institucional);
}

.lista-acuerdos {
    margin-top: 10px;
    padding-left: 20px;
    color: #444;
    line-height: 1.6;
}

.lista-acuerdos li {
    margin-bottom: 10px;
}

.sesion-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- GRID PARA GALERÍAS DE FOTOS EN SESIONES --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.galeria-item {
    background: #F1F3F5;
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item img:hover {
    transform: scale(1.04);
    cursor: pointer;
}







/* --- INTRODUCCIÓN TALLERES --- */

.intro-box {
    background: #FFFFFF;
    padding: 20px 25px;
    border-left: 5px solid var(--dorado-institucional);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

/* --- GRID DE TARJETAS (CARDS) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.taller-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #EBEBEB;
    display: flex;
    flex-direction: column;
}

.taller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(98, 17, 50, 0.15);
}

.taller-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--dorado-institucional);
}

.taller-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.taller-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-leer-mas {
    margin-top: auto;
    background: none;
    border: none;
    color: var(--guinda-institucional);
    font-weight: bold;
    text-align: right;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-leer-mas:hover {
    color: #4D0E26;
}

/* --- BOTÓN REGRESAR --- */
.btn-regresar {
    background: #F1F3F5;
    color: var(--guinda-institucional);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.btn-regresar:hover {
    background: #EBEBEB;
}

/* Animación de entrada suave */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

.banner-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- GRID DE 4 COLUMNAS --- */
.documentos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* --- TARJETAS DE DOCUMENTOS --- */
.doc-card {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.doc-card.activo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(98, 17, 50, 0.1);
    border-bottom: 4px solid var(--guinda-institucional);
}

.doc-titulo {
    color: #333;
    margin: 15px 0;
    font-size: 1.2rem;
}

.doc-portada {
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.doc-portada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-portada.placeholder {
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    border: 1px dashed #ccc;
}

.doc-acciones {
    margin-top: auto;
}

.doc-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

/* --- BOTONES Y ALERTAS --- */
.btn-descarga {
    display: block;
    width: 100%;
    background: var(--guinda-institucional);
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-descarga:hover {
    background: #4D0E26;
}

.alerta-validacion, .alerta-pendiente {
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.alerta-validacion {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alerta-pendiente {
    background: #E2E3E5;
    color: #383D41;
    border: 1px solid #D6D8DB;
}

/* --- BADGES PEQUEÑOS --- */
.doc-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    align-self: center;
}

.badge-listo { background: #E6F4EA; color: #1E8E3E; }
.badge-proceso { background: #FEF7E0; color: #F9AB00; }
.badge-futuro { background: #F1F3F5; color: #666; }

/* Responsive para que no se apachurren en celulares */
@media (max-width: 1024px) {
    .documentos-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-documentos { flex-direction: column; }
}
@media (max-width: 600px) {
    .documentos-grid { grid-template-columns: 1fr; }
}



/* --- GRID DE COLUMNAS DE FASES CARTOGRÁFICAS --- */
.fases-cartografia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.fase-titulo {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--dorado-institucional);
    margin-bottom: 30px;
}

/* --- ESTILOS DE LA CARPETA --- */
.carpeta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-bottom: 35px;
    transition: transform 0.2s ease;
}

.carpeta-item:hover {
    transform: translateY(-5px);
}

.carpeta-icono {
    font-size: 5rem;
    color: var(--guinda-institucional);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.carpeta-item:hover .carpeta-icono {
    color: #8C1C48; 
}

.carpeta-nombre {
    text-align: center;
    color: #4A819E; 
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.carpeta-item:hover .carpeta-nombre {
    color: var(--guinda-institucional);
}

/* --- GRID DE LA GALERÍA DE MAPAS --- */
.mapas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mapa-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mapa-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.mapa-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mapa-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.mapa-etiqueta {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
    background: #f9f9f9;
    text-align: center;
}

.mapa-etiqueta i {
    color: var(--guinda-institucional);
    margin-right: 5px;
}

/* Responsive Cartografía */
@media (max-width: 900px) {
    .fases-cartografia-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .fases-cartografia-grid { grid-template-columns: 1fr; }
}


/* --- BANNER ESTÁNDAR (Para Sesiones, Talleres, Documentos y Cartografía) --- */
.banner-estandar {
    background: var(--guinda-institucional);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 8px; /* Bordes redondeados en las 4 esquinas */
    margin-bottom: 30px; /* Separación del contenido inferior */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-estandar h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.banner-estandar p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}


/* --- BANNER CENTRAL (Para Consulta Pública) --- */
.banner-central {
    background: var(--guinda-institucional);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 8px 8px 0 0; 
}

.banner-icono-grande {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}

.banner-central h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.banner-central p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* --- COMUNICADO OFICIAL --- */
.comunicado-oficial {
    background: #FFFFFF;
    padding: 50px 60px;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #EBEBEB;
    border-top: none; 
}

.comunicado-titulo {
    font-size: 1.4rem;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 6px;
    margin-bottom: 30px;
    font-weight: 700;
}

.comunicado-cuerpo p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify; 
}

.comunicado-cuerpo .agradecimiento {
    margin-top: 40px;
    font-weight: 500;
    text-align: left;
}

/* Responsive para la sección de consulta */
@media (max-width: 768px) {
    .comunicado-oficial {
        padding: 30px 20px;
    }
    .banner-central h1 {
        font-size: 2rem;
    }
    .banner-central p {
        font-size: 1.1rem;
    }
    .comunicado-cuerpo p {
        text-align: left; /* En celular el justificado suele verse mal /revisar adelante */
    }
}



/* --- CONTENEDOR DE LA LISTA DE DECRETOS --- */
.decretos-container {
    background: #FFFFFF;
    padding: 40px 60px;
    border-radius: 0 0 8px 8px; /* Se une con el banner central */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #EBEBEB;
    border-top: none;
}

/* --- TARJETAS DE LA LISTA --- */
.decreto-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    margin-bottom: 25px;
    text-decoration: none; 
    color: inherit;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.decreto-item:hover {
    background: #FFFFFF;
    box-shadow: 0 6px 15px rgba(98, 17, 50, 0.1);
    border-color: var(--guinda-institucional);
    transform: translateX(8px); 
}

.decreto-icono {
    font-size: 4rem;
    color: var(--guinda-institucional);
    transition: transform 0.3s ease;
}

.decreto-item:hover .decreto-icono {
    transform: scale(1.1);
}

.decreto-texto h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 8px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.decreto-item:hover .decreto-texto h3 {
    color: var(--guinda-institucional);
}

.decreto-texto p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .decretos-container {
        padding: 30px 20px;
    }
    .decreto-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .decreto-item:hover {
        transform: translateY(-5px); 
    }
}



/* =====================================================================
   RESPONSIVO GLOBAL 
   ===================================================================== */


@media (max-width: 1024px) {
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: -20px; 
    }
    
    
    .main-content, 
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


@media (max-width: 768px) {
    
    
    .top-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 10px 5%;
    }

   
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5%;
        text-align: center;
    }
    
    
    .main-header > div:first-child {
        flex-direction: column !important;
        gap: 15px !important;
    }

    
    .main-header nav ul {
        justify-content: center;
        gap: 12px;
    }

    
    .hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-card {
        max-width: 100%;
        width: 100%;
    }

  
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }

  
    .card-panel {
        overflow-x: auto;
        padding: 20px 15px;
    }
    
    .timeline {
        min-width: 600px; 
        padding-bottom: 10px;
    }

 
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-link {
        border-bottom: 1px solid #ddd;
        border-left: 4px solid transparent;
        text-align: left;
    }
    
    .tab-link.active {
        border-bottom: 1px solid #ddd;
        border-left: 4px solid var(--guinda-institucional);
    }

  
    .sesion-actions {
        flex-direction: column;
    }

    .btn-regresar, 
    .btn-descarga, 
    .btn-full-phases {
        width: 100%;
        text-align: center;
        display: block;
        margin-bottom: 10px;
    }

    
    .content-wrapper, 
    .main-layout {
        padding: 20px 15px;
    }
}


@media (max-width: 480px) {
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* --- FIX PARA FOOTER FLOTANTE --- */
.content-wrapper {
    
    min-height: calc(100vh - 280px); 
}


.taller-detalle-contenedor {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 40px 60px;
    border-top: 5px solid var(--guinda-institucional);
    margin-top: 20px;
    margin-bottom: 40px;
}


@media (max-width: 768px) {
    .taller-detalle-contenedor {
        padding: 30px 20px;
    }
}

/* =====================================================================
   PARCHE DE CHOQUE RESPONSIVO (CORRECCIÓN DE DESBORDAMIENTOS)
   ===================================================================== */
@media (max-width: 768px) {
    /* 1. Corrección del Header y Navegación */
    .main-header {
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px 5% !important;
    }
    .header-brand-container {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    .nav-menu-bitacora {
        justify-content: center !important;
        gap: 12px !important;
    }

    /* 2. Corrección del Banner Hero (Tarjeta Verde encimada) */
    .hero {
        flex-direction: column !important;
        padding: 40px 20px !important;
        height: auto !important;
    }
    .hero-text {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    .hero-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* 3. Corrección de Tarjetas de Números (Stats) */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
        margin-top: 20px !important; /* Despega las tarjetas del banner superior */
    }
    .stat-card {
        padding: 15px 10px !important;
    }

    /* 4. Corrección de la Línea de Tiempo (Textos empalmados) */
    .card-panel {
        overflow-x: auto !important; /* Permite deslizar con el dedo de izq a der */
        padding: 20px 10px !important;
    }
    .timeline {
        min-width: 650px !important; /* Fuerza la línea a no aplastarse */
        padding-bottom: 20px !important;
    }
    .step {
        width: 85px !important; /* Da espacio real a los textos */
    }
    .step-label {
        font-size: 0.75rem !important;
        word-wrap: break-word !important;
    }
}

/* Para pantallas de celulares muy estrechos */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important; /* Una sola columna vertical */
    }
}


/* =====================================================================
   CANDADO GLOBAL ANTI-DESBORDAMIENTO (ELIMINA EL ESPACIO BLANCO)
   ===================================================================== */

/* 1. Prohibir estrictamente que la página sea más ancha que el celular */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    
    /* 2. Obligar a que la sección "Actividad Reciente" se ponga ABAJO de las Fases */
    .main-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* 3. Asegurar que las cajas blancas no se salgan de la pantalla */
    .card-panel {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
    }

    /* 4. Forzar que las 6 tarjetas de números se acomoden en 2 columnas perfectas */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}



/* =====================================================================
   MODO CELULAR: FORZAR APILAMIENTO VERTICAL Y ROMPER CUADRÍCULAS
   ===================================================================== */
@media (max-width: 768px) {
    
    /* 1. BLOQUEO DE PANTALLA TOTAL */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* 2. DOMAR LAS TARJETAS DE NÚMEROS (Para que no se salgan a la derecha) */
    .stats-grid {
        display: grid !important;
        /* Forzamos a que sean solo 2 columnas en celular */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin-top: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Truco: Si tienes 5 tarjetas, la última se centrará tomando todo el ancho abajo */
    .stats-grid .stat-card:last-child {
        grid-column: 1 / -1 !important;
    }

    /* 3. DOMAR LOS PANELES PRINCIPALES (Fases y Actividad Reciente) */
    .main-content {
        /* Rompemos el grid de lado a lado y lo volvems una columna de arriba hacia abajo */
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        gap: 25px !important;
    }

    /* 4. EVITAR QUE LAS CAJAS BLANCAS SE DESBORDEN */
    .card-panel {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow-x: auto !important; /* Salva la línea de tiempo de las Fases */
    }

    /* 5. PERMITIR SCROLL HORIZONTAL SOLO EN LA LÍNEA DE TIEMPO DE FASES */
    .timeline {
        min-width: 600px !important;
        padding-bottom: 15px !important;
    }


    /* Opcional: Para que la lista de Actividad Reciente respire en celulares */
    .activity-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    .badge-status {
        margin-left: 0 !important;
        align-self: flex-start !important;
    }
}