/* ============================================
   AITANA TOUR
   ============================================ */

/* ============================================
   RESET & ESTILOS BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

/* Typography - Headings and CTA elements use Barlow Condensed */
h1, h2, h3, h4, h5, h6,
.hero__title,
.hero__cta,
.story-section__title,
.story-section__subtitle,
.event-card__title,
.award-card__title,
.cta-title,
.cta-button,
.countdown-banner,
.mobile-nav__links {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Body text uses Poppins */
body,
p,
.story-section__text,
.event-card__description,
.award-card__description,
.hero__subtitle,
.hero__promo {
    font-family: 'Poppins', sans-serif;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
}

.header__menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector__current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-selector__current:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-selector__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-selector.active .language-selector__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector__dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    transition: background-color 0.3s ease;
}

.language-selector__dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 1.5rem;
}

.mobile-nav__links {
    list-style: none;
    text-align: center;
}

.mobile-nav__links li {
    margin: 1rem 0;
}

.mobile-nav__links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
}

.mobile-nav__links a:hover {
    color: #ff0000;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero__date {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.hero__promo {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ff0000;
    font-size: 0.875rem;
    font-weight: 500;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ============================================
   SCROLLYTELLING SECTIONS
   ============================================ */
.scrollytelling {
    position: relative;
}

.story-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Specific background images for sections */
.story-section[data-bg="imagenes/fondo1.jpg"] {
    background-image: url('../imagenes/fondo1.jpg');
}

.story-section[data-bg="imagenes/fondo2.jpg"] {
    background-image: url('../imagenes/fondo2.jpg');
}

.story-section[data-bg="imagenes/fondo3.jpg"] {
    background-image: url('../imagenes/fondo3.jpg');
}

.story-section[data-bg="imagenes/fondo4.jpg"] {
    background-image: url('../imagenes/fondo4.jpg');
}

.story-section[data-bg="imagenes/fondo5.jpg"] {
    background-image: url('../imagenes/fondo5.jpg');
}

.story-section[data-bg="imagenes/fondo6.jpg"] {
    background-image: url('../imagenes/fondo6.jpg');
}

.story-section[data-bg="imagenes/fondo7.jpg"] {
    background-image: url('../imagenes/fondo7.jpg');
}

.story-section[data-bg="imagenes/fondo8.jpg"] {
    background-image: url('../imagenes/fondo8.jpg');
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.story-section__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.story-section__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.story-section__title--split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-section__title--large {
    font-size: clamp(3rem, 8vw, 7rem);
}

.story-section__subtitle {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Reveal Text Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial visibility for hero content */
.hero .reveal-text,
.hero__content * {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s ease-out;
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-play-btn {
    transition: transform 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   ROUTE INFO
   ============================================ */
.route-info {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.route-info__map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.route-info__links {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.route-info__links a {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.route-info__links a:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: translateY(-2px);
}

.route-info__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.stat-card__label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   PORTS LIST
   ============================================ */
.ports-list {
    margin-top: 2rem;
}

.ports-list h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.port-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.port-item__toggle {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.port-item__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.port-item__icon {
    transition: transform 0.3s ease;
}

.port-item.active .port-item__icon {
    transform: rotate(45deg);
}

.port-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.port-item.active .port-item__content {
    max-height: 200px;
}

.port-item__content p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ============================================
   PROGRESS DISPLAY
   ============================================ */
.progress-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.digital-clock {
    font-family: 'Courier New', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    width: 0%;
    transition: width 0.3s ease;
}

.analog-clock {
    width: 150px;
    height: 150px;
}

/* ============================================
   ALTIMETRY
   ============================================ */
.altimetry-container {
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ELEVATION DISPLAY
   ============================================ */
.elevation-display {
    text-align: center;
}

.elevation-number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.elevation-question {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    opacity: 0.9;
}

/* ============================================
   EVENTS TIMELINE
   ============================================ */
.events-timeline {
    margin-top: 3rem;
}

.timeline-section {
    margin-bottom: 4rem;
}

.timeline-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #ff0000;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff0000;
}

.event-card__description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ============================================
   AWARDS GRID
   ============================================ */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff0000;
}

.award-card__description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ============================================
   FAMILY GALLERY
   ============================================ */
.family-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.family-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.family-gallery img:hover {
    transform: scale(1.05);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.story-section--cta {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ff0000;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4);
}

.cta-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: #00ff00;
}

/* ============================================
   COUNTDOWN BANNER
   ============================================ */
.countdown-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    z-index: 900;
    overflow: hidden;
    height: 60px;
}

.countdown-banner__track {
    display: flex;
    animation: scroll-horizontal 45s linear infinite;
    height: 100%;
    will-change: transform;
}

.countdown-banner__track--active {
    animation: scroll-horizontal-fast 25s linear infinite;
    background: linear-gradient(45deg, #28a745, #20c997);
}

.countdown-banner__track--completed {
    animation: scroll-horizontal-fast 20s linear infinite;
    background: linear-gradient(45deg, #28a745, #20c997);
}

.countdown-banner__item {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 3rem;
    font-weight: 600;
    min-width: 600px;
    flex-shrink: 0;
}

.countdown-banner__item--active {
    background: linear-gradient(45deg, #28a745, #20c997);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.countdown-banner__item--completed {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.countdown-number {
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.countdown-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 1.2rem;
    font-weight: 900;
}

.countdown-reminder {
    margin-left: 2rem;
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.95rem;
}

@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-horizontal-fast {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    text-align: center;
}

.final-cta__container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000;
    padding: 3rem 2rem 1rem;
    margin-bottom: 60px; /* Space for countdown banner */
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ff0000;
}

.footer__column ul {
    list-style: none;
}

.footer__column ul li {
    margin-bottom: 0.5rem;
}

.footer__column ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer__column ul a:hover {
    color: #ff0000;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff0000;
    transform: translateY(-3px);
}

.footer__logo {
    margin-top: 1rem;
}

.footer__bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header__container {
        padding: 0.75rem 1rem;
    }
    
    .story-section {
        padding: 3rem 1rem;
        /* Mejora de fondos para móviles - evita pixelado */
        background-attachment: scroll; /* Cambio de fixed a scroll para móviles */
        background-size: cover;
        background-position: center center; /* Centra mejor las imágenes horizontales */
        background-repeat: no-repeat;
    }
    
    /* Fondos específicos para móviles con mejor posicionamiento */
    .story-section[data-bg="imagenes/fondo1.jpg"] {
        background-position: center 20%; /* Ajusta el punto focal de la imagen */
    }
    
    .story-section[data-bg="imagenes/fondo2.jpg"] {
        background-position: center 30%;
    }
    
    .story-section[data-bg="imagenes/fondo3.jpg"] {
        background-position: center 25%;
    }
    
    .story-section[data-bg="imagenes/fondo4.jpg"] {
        background-position: center 35%;
    }
    
    .story-section[data-bg="imagenes/fondo5.jpg"] {
        background-position: center 40%;
    }
    
    .story-section[data-bg="imagenes/fondo6.jpg"] {
        background-position: center 30%;
    }
    
    .story-section[data-bg="imagenes/fondo7.jpg"] {
        background-position: center 25%;
    }
    
    .story-section[data-bg="imagenes/fondo8.jpg"] {
        background-position: center 35%;
    }
    
    .route-info {
        text-align: center;
    }
    
    .route-info__links {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .progress-display {
        gap: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .countdown-unit {
        font-size: 0.7rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: 0 1rem;
    }
    
    .story-section {
        padding: 2rem 1rem;
    }
    
    .route-info__stats {
        grid-template-columns: 1fr;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .family-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajuste del botón scroll-to-top para móviles */
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-1px);
}

/* ================================
   LANGUAGE SELECTOR
   ================================ */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: none;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: #ff0000;
    color: white;
}

.lang-toggle[aria-expanded="true"] {
    background: #ff0000;
    color: white;
}

.lang-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.lang-toggle svg {
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.lang-dropdown a:hover {
    background: #f5f5f5;
    color: #ff0000;
}

.lang-dropdown a.active {
    background: #ff0000;
    color: white;
}

/* ================================
   CONTACT PAGE STYLES
   ================================ */
.hero-contact {
    background: linear-gradient(rgba(255, 0, 0, 0.8), rgba(204, 0, 0, 0.8)), 
                url('../imagenes/fondo3.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 0 4rem;
}

.contact-info {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h2,
.contact-form-container h2 {
    color: #ff0000;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    color: #ff0000;
    background: white;
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

.contact-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-content p,
.contact-content a {
    margin: 0;
    color: #666;
    text-decoration: none;
}

.contact-content a:hover {
    color: #ff0000;
}

/* ================================
   FORM STYLES
   ================================ */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff0000;
    border-color: #ff0000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

/* ================================
   SOCIAL SECTION
   ================================ */
.social-section {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.social-section h2 {
    color: #ff0000;
    margin-bottom: 1rem;
}

.social-section p {
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    color: #ff0000;
}

.social-link svg,
.social-link img {
    transition: transform 0.3s ease;
}

.social-link:hover svg,
.social-link:hover img {
    transform: scale(1.1);
}

/* ================================
   NOTIFICATIONS
   ================================ */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* ================================
   MOBILE MENU IMPROVEMENTS
   ================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ================================
   RESPONSIVE IMPROVEMENTS
   ================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .language-selector {
        order: -1;
    }
    
    .lang-dropdown {
        left: 0;
        right: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-contact {
        padding: 4rem 0 3rem;
    }
    
    .hero-contact .hero-title {
        font-size: 2rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .story-section {
        background-attachment: scroll;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .mobile-nav,
    .countdown-banner,
    .scroll-progress,
    .hero__scroll-indicator {
        display: none;
    }
    
    .story-section {
        page-break-inside: avoid;
        background: white;
        color: black;
    }
}
