@charset "UTF-8";


/* --- CONTENEDORES GLOBALES --- */
@media (min-width:576px) {}

@media (min-width:768px) {}

@media (min-width:992px) {}

@media (min-width:1200px) {}

@media (min-width: 1400px) {}


/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    font-family: var(--body-font-family) !important;
    font-size: 18px !important;
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--title-font-family) !important;
    font-weight: 600;
    line-height: 1.25;
}

p,
ul,
li,
a {
    font-size: 1em;
}

.paragraph {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .paragraph {
        grid-template-columns: 1fr 1fr;
    }
}

button {
    cursor: pointer;
    font-family: var(--body-font-family);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.paragraph .field--type-image {
    overflow: hidden;
    border-radius: 20px;
}

.paragraph .field--type-image img {
    display: block;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.paragraph .field--type-image:hover img {
    transform: scale(1.03);
}

ul {
    list-style: none;
}



.color-accent-gold {
    color: var(--accent-gold) !important;
}







/* --- HERO SECTION (USANDO PORTADA.JPG) --- */
.hero {
    min-height: 100vh;
    padding: 0;
    background-image: url('/themes/custom/b5subtheme/images/eclipse.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay Oscuro (Ajustado para que se vea la foto) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 30% de oscuridad */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    text-align: center;
    /* Ajuste de margen para centrar texto visualmente con la imagen */
    margin-top: 100px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.countdown {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
    color: var(--text-primary);
}

.label {
    font-size: 1rem;
    font-family: var(--title-font-family);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px dotted;
    margin-top: 5px;
    text-shadow: 0 0 10px black;
}

.countdown-subtext {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.scroll-down {
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.time-unit .number,
.mini-num {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 2ch;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.num-change {
    transform: translateY(-2px);
    opacity: 0;
}


/* --- TARJETAS AÑOS --- */
.year-section {
    height: auto;
    min-height: 100vh;
}

.eclipse-info-container {
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 40px 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    width: 95%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.eclipse-info-resumen {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.year-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
    top: -4rem;
    left: 20px;
    z-index: -1;
    /*-webkit-text-stroke: 2px var(--text-primary);
    -webkit-text-fill-color: transparent;*/
    color: var(--text-primary);
    /* ← relleno */
    -webkit-text-stroke: 0;
    /* ← sin contorno */
    font-family: var(--title-font-family);
}

.eclipse-title {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

h2.eclipse-title {
    color: var(--text-primary);
}

.eclipse-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.data-point b {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.data-point p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.data-point p.eclipse-total {
    color: var(--accent-gold);
    text-transform: uppercase;
}

.data-point p.eclipse-anular {
    color: var(--accent-ring);
    text-transform: uppercase;
}

.ccaa-container {
    margin-bottom: 25px;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    padding-bottom: 15px;
}

.ccaa-label {
    font-size: 0.875rem;
    /* 14px mínimo */
    font-family: var(--body-font-family);
    /* Barlow */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* ≈ 1.2px */
    color: #f0f0f0;
    /* contraste real */
    margin-bottom: 10px;
    display: block;
}

.ccaa-container ul {
    display: flex;
    flex-wrap: wrap;
}

.ccaa-container li {
    display: inline-block;
    background-color: #2b2b2b;
    /* sólido */
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    /* 14px */
    margin: 0 6px 6px 0;
    color: #ffffff;
    display: inline-block;
    transition: transform 0.3s;

}

.ccaa-container li:hover {
    transform: scale(1.05);
    background: black;

}

.ccaa-container a {
    color: white;
    text-decoration: none;
}

.mini-countdown-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.mini-timer {
    display: flex;
    gap: 15px;
}

.mini-unit {
    text-align: center;
    min-width: 40px;
}

.mini-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mini-txt {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-top: 3px;
}

.bg-2026 {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, #0a001f 40%, #5e1e00 80%, #ff8c00 100%);
}

.bg-2027 {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center top, #ffffff 0%, #00aaff 10%, #000814 60%);
}

.bg-2028 {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle, transparent 50%, var(--accent-ring) 52%, #ff0000 55%, transparent 60%), linear-gradient(to right, #1a0a00, #050505);
    filter: brightness(1.2);
}

.page-node-type-informacion-ccaa main,
.page-node-type-page main {
    background:
        radial-gradient(circle at center 30%,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 15%,
            rgba(0, 0, 0, 0) 40%),
        linear-gradient(to bottom,
            #06010f 0%,
            #0a001f 50%,
            #050505 100%);
}

.page-node-type-informacion-ccaa .field--name-body a,
.page-node-type-page .field--name-body a {
    color: var(--accent-cyan);
}

.page-node-type-page .field--name-body ul {
    list-style: disc;
    margin-bottom: 2rem;
}

.container.bg-eclipses {
    margin: 0 auto;
}

.btn-section {
    padding: 12px 30px;
    background: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.3s;
    border-radius: 2px;
}

.btn-section,
.page-node-type-informacion-ccaa .field--name-body a.btn-section,
.page-node-type-page .field--name-body a.btn-section {
    color: var(--bg-color);
}

.btn-section:hover {
    transform: scale(1.05);
    background: var(--accent-gold);
    color: #000;
    /* width: fit-content; */
}

.sumario {
    margin: 4rem auto 0;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/*PAGINAS DE BUSQUEDA*/
.path-search .region.region-content {
    max-width: 920px;
    margin: 0 auto;
}



/* ===== AJUSTES ADMIN ===== */
div#block-b5subtheme-help,
form#node-page-layout-builder-form label.option {
    color: white;
}






/* ===== AJUSTES ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .countdown,
    .scroll-down {
        animation: none !important;
        transform: none !important;
    }
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
}

.skip-link:focus {
    top: 10px;
}

a:hover,
a:focus-visible {
    /* outline: 1px solid var(--accent-gold); */
    /* outline-offset: 3px; */
    /* border-radius: 3px; */
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
}

