.contenedor {
    margin: 0 auto !important;
}

/* --- CONTENEDORES GLOBALES --- */
@media (min-width:576px) {
    .contenedor {
        max-width: 540px !important;
    }

}

@media (min-width:768px) {
    .contenedor {
        max-width: 720px !important;
    }

}

@media (min-width:992px) {
    .contenedor {
        max-width: 960px !important;
    }

}

@media (min-width:1200px) {
    .contenedor {
        max-width: 1140px !important;
    }

}

@media (min-width: 1400px) {
    .contenedor {
        max-width: 1200px !important;
    }

}


/* --- SECCIONES GLOBALES --- */
section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px 20px;
    overflow: hidden;
}

section.outreach-section {
    min-height: auto;
}






/* --- MODAL IGN --- */
.ign-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    flex-direction: column;
    padding: 40px;
}

.ign-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.ign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.ign-title {
    font-size: 1.5rem;
    color: #fff;
}

.ign-subtitle {
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-top: 5px;
}

.ign-close {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.ign-close:hover {
    border-color: #fff;
}

.ign-content {
    display: flex;
    gap: 40px;
    height: 100%;
}

.ign-sidebar {
    width: 300px;
    background: #111;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ign-data-row {
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.ign-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 5px;
}

.ign-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.ign-frame-container {
    flex-grow: 1;
    background: #050505;
    border: 1px solid #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ign-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--accent-cyan);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.ign-btn:hover {
    opacity: 0.9;
}

.outreach-section {
    background: #070709;
    height: auto;
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
}

.section-pretitle {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-posttitle {
    color: var(--gray-300);
    font-size: 1.1rem;

}

.science-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin-bottom: 80px;
    width: 100%;
}

.science-card {
    flex: 1;
    min-width: 300px;
    background: #111;
    border: 1px solid #333;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}

.science-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: #151515;
}

.science-card:hover .sim-hint {
    opacity: 1;
    transform: translateY(0);
}

.visual-eclipse {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px auto;
    position: relative;
}

.visual-total {
    background-color: #000;
    box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.8), 0 0 60px 20px rgba(0, 200, 255, 0.3);
}

.visual-annular {
    background-color: #000;
    border: 6px solid var(--accent-ring);
    box-shadow: 0 0 20px var(--accent-ring);
}

.tag-science {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.sim-hint {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.news-card {
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.news-img-placeholder {
    aspect-ratio: 2 / 1;
    background: linear-gradient(45deg, #222, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2rem;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date,
time.datetime {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* --- EVENTOS --- */
.events-section {
    background: #0a0a0a;
    height: auto;
    padding: 100px 20px;
}

.events-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
}

.featured-event {
    flex: 1.5;
    min-width: 300px;
    background: linear-gradient(135deg, #1a1a1a, #050505);
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-event.ficha-horizontal {
    flex-direction: row;
}

.featured-img {
    height: 250px;
    background: radial-gradient(circle at center, #333, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #555;
}

.featured-content {
    padding: 30px;
}

.featured-tag {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.featured-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
}

.featured-desc {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-duplicado-de-actualidad.view-display-id-block_2 .view-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-cyan);
}

.event-date-box {
    background: #222;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.event-info h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* --- VIAJE (SECCIÓN DE CONTENIDO - display:block) --- */
.travel-section {
    background: #080808;
    display: block !important;
    height: auto !important;
    min-height: 100vh;
    padding: 150px 20px 100px 20px;
    text-align: center;
    overflow: visible !important;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 60px auto 0 auto;
}

.travel-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #333;
    padding: 35px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.travel-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(40, 40, 40, 0.8);
}

.travel-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.travel-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.travel-card p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.travel-list li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.travel-list li span {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* --- SEGURIDAD (SECCIÓN DE CONTENIDO - display:block) --- */
.safety-section {
    background: #000;
    display: block !important;
    height: auto !important;
    min-height: 100vh;
    padding: 150px 20px 100px 20px;
    overflow: visible !important;
}

.safety-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 60px;
    justify-content: center;
    margin: 0 auto;
    align-items: flex-start;
}

.safety-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.safety-visual {
    flex: 1;
    min-width: 300px;
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.iso-badge {
    display: inline-block;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.safety-step {
    display: flex;
    margin-bottom: 35px;
    align-items: flex-start;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid #333;
    color: #fff;
}

.step-content h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.2rem;
    margin-top: 0;
}

.step-content p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.warning-box {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 51, 51, 0.1);
    border-left: 4px solid var(--accent-danger);
    color: #ffcccc;
    font-size: 1rem;
    line-height: 1.6;
}

/***********************/
article {
    color: var(--text-primary);
}

.contenedor-max-900 {
    max-width: 900px !important;
    margin: 0 auto;
}

.contenedor-max-720 {
    max-width: 720px !important;
    margin: 0 auto;
}

.font-size-big {
    font-size: 1.2rem;
}

.font-size-big h1 {
    font-size: 4rem;
}

.font-size-big h2 {
    font-size: 3rem;
    margin-top: 40px;
}

.font-size-big ul {
    list-style: disc;
}

.font-size-big ul li::marker {
    color: var(--accent-gold);
    font-size: 1.2em;
}

.font-size-big h3 {
    position: relative;
    padding-bottom: 12px;
    margin-top: 60px;
}

.font-size-big h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    /* background: var(--accent-gold); */
    opacity: 0.7;
}

.img-detalle img {
    margin: 40px 0;
    background: radial-gradient(circle at center, #222, #000);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.cuerpo {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.8;
}

.cuerpo-destacado {
    margin: 50px 0;
    padding: 30px;
    background: rgba(0, 255, 255, 0.08);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    color: #e0ffff;
}

.video-frame {}

/* IFRAME */
.video-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #333;
}

/* --- CONTENEDORES GLOBALES --- */
@media (min-width:576px) {
    .video-frame iframe {
        width: 500px;
        height: 281px;
        margin: 0 auto;
    }

}

@media (min-width:768px) {
    .video-frame iframe {}

}

@media (min-width:992px) {
    .video-frame iframe {
        width: 750px;
        height: 421px;
        margin: 0 auto;
    }

}

@media (min-width:1200px) {
    .video-frame iframe {
        width: 900px;
        height: 505px;
        margin: 0 auto;
    }

}

@media (min-width: 1400px) {
    .video-frame iframe {}

}




/* --- OVERLAYS --- */
.sim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.sim-overlay.active {
    display: flex;
    animation: fadeIn 0.5s;
}

.sim-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    z-index: 2001;
}

.sim-stage {
    width: 300px;
    height: 300px;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sim-sun {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    transition: all 0.8s ease;
}

.sim-moon {
    width: 202px;
    height: 202px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    transform: translateX(250px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 2;
}

.sim-type-annular .sim-sun {
    background: var(--accent-ring);
    box-shadow: 0 0 30px var(--accent-ring);
}

.sim-type-annular .sim-moon {
    width: 180px;
    height: 180px;
}

.sim-state-1 .sim-moon {
    transform: translateX(100px);
}

.sim-state-2 .sim-moon {
    transform: translateX(40px);
}

.sim-state-3 .sim-moon {
    transform: translateX(0px);
}

.sim-state-3 .sim-sun {
    box-shadow: 0 0 80px 20px rgba(255, 255, 255, 0.9);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sim-state-4 .sim-moon {
    transform: translateX(-100px);
}

.sim-type-annular.sim-state-3 .sim-sun {
    background: var(--accent-ring);
    box-shadow: 0 0 50px var(--accent-ring);
    border: none;
}

.sim-text-container {
    text-align: center;
    max-width: 600px;
}

.sim-phase-title {
    color: var(--accent-cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.sim-phase-desc {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    min-height: 3em;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    nav {
        padding: 10px 20px;
        height: 80px;
    }

    .nav-logo-img {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .mini-countdown-container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .tactical-map {
        width: 95vw;
        height: 45vh;
    }

    .footer-content {
        flex-direction: column;
    }

    .events-wrapper {
        flex-direction: column;
    }

    .ign-content {
        flex-direction: column;
    }

    .ign-sidebar {
        width: 100%;
    }

    .safety-container {
        flex-direction: column;
    }
}


/* CCAA CARDS */
.ccaa-card {
    display: flex;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
}

.ccaa-flag img {
    width: 56px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ccaa-content {
    display: flex;
    flex-direction: column;
}

.ccaa-title {
    font-family: var(--title-font-family, 'Rajdhani');
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.ccaa-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ya existe btn-section */
.btn-mini {
    padding: 8px 20px;
    font-size: 0.8rem;
    width: fit-content;
}

.ccaa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ccaa-card {
    border-left: 4px solid rgba(255, 255, 255, 0.15);
}

.ccaa-card[data-region="norte"] {
    border-left-color: #4cc9f0;
}

.ccaa-card[data-region="mediterraneo"] {
    border-left-color: #80ed99;
}

.ccaa-card[data-region="interior"] {
    border-left-color: #ff9f1c;
}

@media (max-width: 600px) {
    .ccaa-card {
        flex-direction: column;
    }

    .ccaa-flag img {
        width: 48px;
    }
}


/*CCAA LIST*/
.ccaa-list .view-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.ccaa-item {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 1;
    transform: translateY(5px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ccaa-item:hover,
.ccaa-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
}

.ccaa-item img {
    width: 36px;
    height: auto;
    border-radius: 3px;
}

.ccaa-item:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ccaa-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.ccaa-name {
    font-family: var(--title-font-family, 'Rajdhani');
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    flex-grow: 1;
}

.ccaa-description {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.ccaa-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ccaa-item:hover .ccaa-link span {
    color: var(--accent-gold);
}

.ccaa-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ccaa-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.ccaa-item:visited {
    opacity: 0.85;
}

.ccaa-item:visited .ccaa-name {
    color: var(--text-secondary);
}
