/* ============================================
   AITANA TOUR v2.0 - COLORES OFICIALES
   ============================================ */

/* Importar variables oficiales de Aitana Tour */
@import 'variables-aitana.css';

/* ============================================
   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: var(--color-text) !important;
    background-color: var(--aitana-black) !important;
    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;
}

/* ============================================
   FORMULARIOS GLOBALES - CLASES CONSOLIDADAS
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--color-background);
    color: var(--color-text);
    transition: all 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 textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   SECCIONES LEGALES GLOBALES
   ============================================ */
.legal-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-section h2 i {
    color: var(--color-primary);
    min-width: 24px;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--color-text);
}

.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 personalizado */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.checkbox-custom,
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom,
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Enlaces sociales base */
.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: var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Enlaces sociales con texto (grid variant) */
.social-links.grid-style {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-links.grid-style a {
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: auto;
    height: auto;
}

.social-links.grid-style a:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    transform: none;
}

.social-links span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--aitana-black);
    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 var(--color-border);
    border-top: 3px solid var(--color-text);
    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: var(--color-text);
    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: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-selector__current:hover {
    background: var(--color-border);
}

.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: var(--color-text);
    transition: background-color 0.3s ease;
}

.language-selector__dropdown a:hover {
    background: var(--color-border);
}

/* ============================================
   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: var(--color-text);
    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: var(--color-text);
    transition: color 0.3s ease;
}

.mobile-nav__links a:hover {
    color: var(--aitana-primary-light);
}

/* ============================================
   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: var(--aitana-gradient-primary);
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: var(--aitana-shadow-primary);
}

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

.hero__promo {
    margin-top: 1rem;
    font-size: 1rem;
    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: var(--aitana-primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-text);
    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="publico/imagenes/fondo1.jpg"] {
    background-image: url('../imagenes/fondo1.jpg');
}

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

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

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

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

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

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

.story-section[data-bg="publico/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-top: 4rem;
    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 var(--color-background);
}

.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 var(--color-background);
}

.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: var(--color-text);
    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: var(--color-border);
    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: var(--color-primary);
    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: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

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

.port-item__toggle:hover {
    background: var(--color-border);
}

.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: var(--aitana-success);
    text-shadow: 0 0 20px rgba(39, 174, 96, 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: var(--aitana-gradient-primary);
    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 var(--color-background);
}

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

.elevation-number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
}

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

.event-card {
    background: var(--color-border);
    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: var(--aitana-primary-light);
}

.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: var(--color-border);
    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: var(--aitana-primary-light);
}

.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: var(--aitana-primary-light);
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, var(--aitana-primary-light), var(--color-primary));
    color: var(--color-text);
    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: var(--color-border);
    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: var(--aitana-gradient-primary);
    color: var(--color-text);
    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;
    /* Removido background para usar el degradado del padre */
}

.countdown-banner__track--completed {
    animation: scroll-horizontal 45s linear infinite;
    /* Misma velocidad que la animación normal para consistencia */
    /* Removido background para usar el degradado del padre */
}

.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 {
    /* Removido background para usar el degradado del padre */
    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);
    /* Mantenemos el mismo tamaño que los elementos normales */
}

.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 {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 15px;
    margin: 3rem 0;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.final-cta p {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--aitana-menu-bg);
    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: var(--aitana-primary-light);
}

.footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__column ul li {
    margin-bottom: 0.5rem;
    padding: 0;
    list-style: none;
}

.footer__column ul a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer__column ul a:hover {
    color: var(--aitana-primary-light) !important;
    text-decoration: none !important;
}

.footer__logo {
    text-align: center;
    margin: 0 0 2rem;
    width: 100%;
    display: block;
}

.footer__logo img {
    max-width: 70px;
    height: auto;
    opacity: 0.8;
    display: block;
    margin: 0 auto;
}

.footer__divider {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer__text {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 0 2rem;
}

/* Estilos adicionales para sobrescribir CSS global en el footer */
.footer a {
    text-decoration: none !important;
}

.footer ul,
.footer ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer li {
    list-style: none !important;
    text-indent: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.footer li:before {
    display: none !important;
}

.footer__column li {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
    background: none !important;
}

.footer__text p {
    color: var(--aitana-light-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer__text p:last-child {
    margin-bottom: 0;
}

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

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer__divider {
        margin: 0 1rem 2rem;
    }
    
    .footer__text {
        padding: 0 1rem;
    }
    
    .footer__text p {
        font-size: 0.9rem;
    }
    
    .footer__bottom {
        padding: 1.5rem 1rem 0;
    }
    
    .footer__logo img {
        max-width: 80px;
    }
}

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

.scroll-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--aitana-primary-light), var(--color-primary));
    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, var(--aitana-primary-light), var(--color-primary));
    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, var(--color-primary), #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 var(--aitana-primary-light);
    color: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
    color: white;
}

.lang-toggle[aria-expanded="true"] {
    background: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
}

.lang-dropdown a.active {
    background: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
}

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

.social-section h2 {
    color: var(--aitana-primary-light);
    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: var(--aitana-primary-light);
}

.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: var(--aitana-primary-light);
    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;
    }
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
}

.lightbox__overlay {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 50%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.lightbox__close {
    position: absolute;
    top: -60px;
    right: -10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b35;
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--color-background);
}

.lightbox__close:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.1);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b35;
    color: #ff6b35;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 10px var(--color-background);
}

.lightbox__nav--prev {
    left: -70px;
}

.lightbox__nav--next {
    right: -70px;
}

.lightbox__nav:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive lightbox styles */
@media (max-width: 768px) {
    .lightbox {
        padding: 80px 15px 15px 15px;
    }
    
    .lightbox__overlay {
        max-width: 90%;
        max-height: 90%;
    }
    
    .lightbox__close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .lightbox__nav {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        padding: 10px 8px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .lightbox__nav--prev {
        left: 15px;
    }
    
    .lightbox__nav--next {
        right: 15px;
    }

    .lightbox img {
        max-width: 70%;
    }    
}

@media (max-width: 480px) {
    .lightbox {
        padding: 70px 10px 10px 10px;
    }
    
    .lightbox__overlay {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox__close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox__nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .lightbox__nav--prev {
        left: 10px;
    }
    
    .lightbox__nav--next {
        right: 10px;
    }

    .lightbox img {
        max-width: 90%;
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

.patrocinadores {
  background: var(--color-text);
  color: #222;
  padding: 60px 0 40px 0;
}
.patrocinadores .story-section__title {
  color: #ff6b35;
  margin-bottom: 2rem;
}
.patrocinadores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
.patrocinadores-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Altura uniforme para todos los envoltorios */
}
.patrocinadores-grid img {
  height: 80px;
  max-width: 180px;
  object-fit: contain; /* Asegura que las imágenes se ajusten sin distorsión */
  filter: grayscale(0.2) brightness(0.95);
  transition: filter 0.3s, transform 0.3s;
  background: var(--color-text);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 10px 20px;
}
.patrocinadores-grid a:hover img {
  filter: none;
  transform: scale(1.07);
}
@media (max-width: 600px) {
  .patrocinadores-grid img {
    max-width: 120px;
    max-height: 50px;
    padding: 6px 10px;
  }
  .patrocinadores {
    padding: 40px 0 20px 0;
  }
}

/* ============================================
   SOBRESCRIBIR VARIABLES DE BOOTSTRAP PARA TEMA OSCURO
   ============================================ */
:root {
    /* Sobrescribir variables de Bootstrap para forzar tema oscuro */
    --bs-body-bg: var(--aitana-black) !important;
    --bs-body-color: var(--color-text) !important;
    --bs-bg-opacity: 1;
    --bs-text-opacity: 1;
    
    /* Variables de fondo adicionales de Bootstrap */
    --bs-primary: var(--color-primary);
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: var(--aitana-black);
}

/* Forzar estilos de cuerpo con alta especificidad */
html,
html body {
    background-color: var(--aitana-black) !important;
    color: var(--color-text) !important;
}

/* ============================================
   ESTILOS PARA PÁGINAS LEGALES - REGLAMENTO
   ============================================ */
/* Variables CSS necesarias para el diseño de secciones - TEMA OSCURO ÚNICAMENTE */

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.legal-section h2 i {
    color: var(--color-primary);
    min-width: 24px;
}

.legal-section h3 {
    color: var(--color-secondary);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.reglamento-page .legal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    /* Opcional: gradiente como fondo solo si el navegador lo soporta */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    /* Solo aplicar transparencia si el gradiente se soporta */
    -webkit-text-fill-color: var(--color-primary);
}

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

.event-detail {
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 8px;
    text-align: center;
}

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

.route-card {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--color-primary);
    text-align: center;
}

.route-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.route-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pricing-tier {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.pricing-tier.early {
    border: 2px solid var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.pricing-tier h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.pricing-tier.early h4 {
    color: white;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-tier.early .price {
    color: white;
}

.period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pricing-tier ul {
    text-align: left;
    margin: 1rem 0;
}

.important-dates {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    margin: 1.5rem 0;
}

.date-item {
    margin: 0.5rem 0;
    font-weight: 500;
}

.pickup-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.schedule-day {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.schedule-day strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rule-icon i {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

.rule-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.climbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.climb-card {
    background: var(--color-background);
    padding: 1rem;
    border-radius: 8px;
    border-top: 3px solid var(--color-primary);
    text-align: center;
}

.climb-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.climb-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.climb-card small {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.7;
}

.warning-notice {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.warning-notice p {
    margin: 0;
    color: white !important;
}

.btn-lg,
a.btn-lg,
.final-cta .btn-lg,
.final-cta a.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-primary) !important;
    color: var(--color-text) !important;
    border: none;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-lg:hover,
a.btn-lg:hover,
.final-cta .btn-lg:hover,
.final-cta a.btn-lg:hover {
    background: var(--color-secondary) !important;
    color: var(--color-text) !important;
    transform: translateY(-2px);
    box-shadow: var(--aitana-shadow-primary);
    text-decoration: none !important;
}

/* Heredar estilos del legal-page */
.legal-page {
    padding: 2rem 0;
    min-height: 70vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--color-primary);
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.legal-data {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary);
}

.important-notice {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.important-notice p {
    margin: 0;
    color: white !important;
}

/* ============================================
   RESPONSIVE PARA PÁGINAS LEGALES
   ============================================ */
@media (max-width: 768px) {
    .reglamento-page .legal-title {
        font-size: 1.8rem;
    }
    
    .route-options {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .climbs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .final-cta {
        margin: 2rem -1rem;
        border-radius: 0;
    }
    
    .final-cta h2 {
        font-size: 1.5rem;
    }
}/* ========================================
   PÁGINA DE CONTACTO
   ======================================== */

.contact-page {
    padding: 2rem 0;
    min-height: 70vh;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid #ff0000;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-form-section,
.contact-info-section {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff0000;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 0.5rem;
}

/* Estilos del formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Aviso de privacidad */
.privacy-notice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
    margin: 1rem 0;
}

.privacy-notice h3 {
    color: #ff0000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-notice p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.privacy-notice a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Checkbox personalizado */
.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* CTA Button específico para formularios */
.contact-form .cta-button {
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
    min-width: 200px;
    white-space: nowrap;
}

.contact-form .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form .cta-button:disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
}

.contact-form .cta-button .btn-loader {
    display: none;
}

.contact-form .cta-button.loading .btn-text {
    opacity: 0;
}

.contact-form .cta-button.loading .btn-loader {
    display: inline;
    opacity: 1;
}

/* Información de contacto */
.contact-info-card {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.info-content a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Redes sociales */
.social-media-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.social-media-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* Ocultar texto de redes sociales en contacto, mostrar solo iconos */
.social-media-section .social-links span {
    display: none;
}

/* FAQ */
.faq-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.faq-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 8px;
    border-left: 3px solid #ff0000;
}

.faq-item strong {
    color: #ff0000;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modo oscuro para página de contacto */
@media (prefers-color-scheme: dark) {
    .contact-form-section,
    .contact-info-section {
        background: var(--color-surface-dark, #1a1a1a);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--color-background-dark, #0f0f0f);
        border-color: var(--color-border-dark, #333);
        color: var(--color-text-dark, #e0e0e0);
    }
    
    .privacy-notice {
        background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
        border-left-color: #ff0000;
    }
    
    .checkbox-custom {
        background: var(--color-background-dark, #0f0f0f);
        border-color: var(--color-border-dark, #333);
    }
    
    .social-links a {
        background: var(--color-background-dark, #0f0f0f);
        border-color: var(--color-border-dark, #333);
        color: var(--color-text-dark, #e0e0e0);
    }
    
    .faq-item {
        background: var(--color-background-dark, #0f0f0f);
        border-left-color: #ff0000;
    }
}

/* Responsive para página de contacto */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}