/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    /* Colors - Japanese & Street inspired */
    --color-primary: #FF6B6B;
    --color-secondary: #4ECDC4;
    --color-accent: #FFE66D;
    --color-dark: #1A1A2E;
    --color-darker: #0F0F1E;
    --color-light: #F8F9FA;
    --color-gray: #6C757D;
    --color-japanese-red: #DC143C;
    --color-japanese-blue: #0F4C81;

    /* Typography */
    --font-primary: 'Noto Sans Japanese', sans-serif;
    --font-display: 'Potta One', 'Zen Kaku Gothic Antique', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(78, 205, 196, 0.3);

    /* Layout */
    --nav-height: 64px;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--color-darker) 50%, var(--color-dark) 75%, var(--color-japanese-blue) 100%);
    position: relative;
}

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

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

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

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
    transition: transform var(--transition-normal);
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
}

.nav__logo img {
    width: 4.5rem;
    height: 4.5rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-light);
    transition: var(--transition-fast);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav__link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav__link:hover::after {
    width: 80%;
}

.nav__link:hover {
    color: var(--color-secondary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: var(--spacing-xs) var(--spacing-xs);
    z-index: 1;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-image: url('assets/imagen\ final\ 2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__background::before {
    content: '';
    position: absolute;
    inset: 0;
    animation: scan 8s linear infinite;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

.hero__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__content {
    animation: fadeInLeft 1s ease;
    max-width: 900px;
    width: 100%;
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hero__title-main {
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-display);
    background: var(--color-japanese-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__title-sub {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--color-accent);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    color: rgba(248, 249, 250, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.8;
}

.hero__prophecy {
    background: rgba(26, 26, 46, 0.3);
    border: 2px solid var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: 1rem;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero__prophecy p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.8;
}

.hero__prophecy-highlight {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: var(--spacing-xs);
    font-size: clamp(1.125rem, 1.75vw, 1.5rem);
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-japanese-red));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-japanese-blue));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-dark);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover,
.btn--secondary:hover,
.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    font-size: 1rem;
    background-color: var(--color-japanese-blue);
    color: var(--color-light);
}

.btn--outline:hover:not(:disabled) {
    background: var(--color-japanese-blue);
    color: var(--color-light);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   Section Styles
   ========================================== */
.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--color-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.section__subtitle {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--color-accent);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   Character Section
   ========================================== */
.character {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    padding-top: 12rem;
    min-height: 100vh;
}

.character__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.character__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.character__info {
    grid-column: 2;
    padding-left: var(--spacing-md);
}

.character__image {
    position: absolute;
    top: -30vh;
    left: 0;
    width: 50%;
    max-width: 550px;
    z-index: 10;
}

.character__img {
    width: 100%;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.character__description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.character__quotes {
    margin: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.character__quote {
    background: rgba(78, 205, 196, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0.5rem;
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    transition: var(--transition-normal);
}

.character__quote:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateX(10px);
}

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

/* ==========================================
   Adventure Section
   ========================================== */
.adventure {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    margin-top: 10.5rem;
}

.adventure__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.adventure__header {
    margin-bottom: var(--spacing-lg);
}

.adventure__timeline {
    position: relative;
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs) 0;
}

/* Grid layout con superposición para timeline items en desktop */
@media (min-width: 769px) {
    .adventure__timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(9, auto);
        grid-column-gap: 20px;
        grid-row-gap: var(--spacing-lg);
    }

    .timeline__item {
        margin-bottom: 0;
    }

    /* Patrón de cascada uniforme - espaciado consistente */
    .timeline__item:nth-child(1) {
        grid-area: 1 / 1 / 3 / 2;
    }

    .timeline__item:nth-child(2) {
        grid-area: 2 / 2 / 4 / 3;
    }

    .timeline__item:nth-child(3) {
        grid-area: 3 / 1 / 5 / 2;
    }

    .timeline__item:nth-child(4) {
        grid-area: 4 / 2 / 6 / 3;
    }

    .timeline__item:nth-child(5) {
        grid-area: 5 / 1 / 7 / 2;
    }

    .timeline__item:nth-child(6) {
        grid-area: 6 / 2 / 8 / 3;
    }

    .timeline__item:nth-child(7) {
        grid-area: 7 / 1 / 9 / 2;
        z-index: 7;
    }

    .timeline__item:nth-child(8) {
        grid-area: 8 / 2 / 10 / 3;
    }

    /* Ajustar el contenido dentro de cada grid item */
    .timeline__content {
        gap: var(--spacing-xs);
        margin-top: var(--spacing-xs);
    }

}

.timeline__item:nth-child(even) .timeline__content {
    direction: rtl;
}

.timeline__item:nth-child(even) .timeline__text {
    direction: ltr;
}

.timeline__image {
    border-radius: 1rem;
    width: 100%;
}

/* Timeline & Mission Carousel Styles */
.timeline-carousel__container,
.carousel__container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.timeline-carousel__container {
    width: 100%;
    background: var(--color-darker);
}

.carousel__container {
    box-shadow: var(--shadow-lg);
}

.timeline-carousel__track,
.carousel__track {
    display: flex;
    align-items: center;
    transition: transform 0.4s ease-in-out;
}

.timeline-carousel__track {
    cursor: grab;
    user-select: none;
}

.timeline-carousel__track:active {
    cursor: grabbing;
}

.timeline-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

.timeline-carousel__slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.timeline__image.profecia .timeline-carousel__slide img {
    object-position: top;
}

.timeline-carousel__button,
.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    z-index: 10;
}

.timeline-carousel__button {
    width: 45px;
    height: 45px;
    opacity: 0;
    pointer-events: none;
}

.carousel__button {
    width: 40px;
    height: 40px;
    border: none;
    z-index: 2;
}

.timeline__image:hover .timeline-carousel__button {
    opacity: 1;
    pointer-events: all;
}

.timeline-carousel__button:hover,
.carousel__button:hover {
    background: rgba(78, 205, 196, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.timeline-carousel__button:hover {
    border-color: var(--color-accent);
}

.timeline-carousel__button--prev,
.carousel__button--prev {
    left: 10px;
}

.timeline-carousel__button--next,
.carousel__button--next {
    right: 10px;
}

/* Ocultar flechas cuando hay una sola imagen */
.timeline__image:has(.timeline-carousel__slide:only-child) .timeline-carousel__button {
    display: none;
}

.timeline__text {
    position: relative;
    text-align: center;
}

.timeline__header {
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.timeline__text h3 {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin: 0;
    display: inline;
}

.timeline__text>p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.timeline__extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-slow);
    opacity: 0;
    margin-top: var(--spacing-sm);
}

.timeline__item.expanded .timeline__extra {
    max-height: 70%;
    opacity: 1;
}

.timeline__extra p {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Estilos para el overlay dentro de la imagen */
.timeline__extra--overlay {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin: 0;
}

.timeline__toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.timeline__toggle:hover {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--color-secondary));
}

.timeline__item.expanded .timeline__toggle {
    color: var(--color-accent);
    opacity: 1;
}

.timeline__toggle span {
    transition: all var(--transition-normal);
}

.adventure__footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.adventure__message {
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 230, 109, 0.1);
    border-radius: 0.5rem;
}

/* ==========================================
   Mission Section
   ========================================== */
.mission {
    padding: var(--spacing-xl) var(--spacing-md);
}

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

.mission__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.mission__header_title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.mission__header_title h2.section__title {
    color: var(--color-secondary);
    font-weight: bold;
    -webkit-text-fill-color: var(--color-secondary) !important;
}

.mission__intro {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--color-light);
    margin-top: var(--spacing-md);
    line-height: 1.6;
}

.mission__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mission__block {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0.5rem;
}

.mission__subtitle {
    font-size: 1.75rem;
    font-family: var(--font-display);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.mission__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-light);
}

.mission__highlight {
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    padding: var(--spacing-md);
    background: rgba(255, 230, 109, 0.1);
    border-radius: 1rem;
    margin-top: var(--spacing-md);
}

.mission__highlight p {
    color: var(--color-accent);
    margin: 0;
}

/* Estilos del carrusel de misión */
.mission__carousel {
    margin: var(--spacing-lg) 0;
    position: relative;
}

.carousel__slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 16/9;
    background: var(--color-darker);
}


.carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
    min-height: 36px;
}

.carousel__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-gray);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.33);
    flex-shrink: 0;
}

.carousel__dot.active {
    background: url('assets/linterna.png') center/cover no-repeat;
    transform: scale(1);
}

/* Ajustes responsive para el carrusel */
@media (max-width: 768px) {
    .hero__background {
        background-image: url('assets/EL PRINCIPIO DE LA HISTORIA/fondo-mobile.webp');
        background-size: cover;
        background-position: center;
    }

    .carousel__button {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .carousel__image {
        aspect-ratio: 4/3;
    }
}

/* ==========================================
   Library Section
   ========================================== */
.library {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

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

.library__icon {
    width: 120px;
    height: auto;
    margin: 0 auto var(--spacing-md) auto;
    display: block;
}

.library__subtitle {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.library__description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ==========================================
   Join Form Section
   ========================================== */
.join {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 2;
}

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

.form__group {
    margin-bottom: var(--spacing-md);
}

.form__label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-light);
}

.form__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form__checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
}

.form__checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form__checkbox span {
    font-size: 1rem;
}

.form__select,
.form__input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form__input {
    cursor: text;
}

.form__select:focus,
.form__input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form__input::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

.form__select option {
    background: var(--color-dark);
    color: var(--color-light);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    padding: var(--spacing-xl) var(--spacing-md);
    background-image: url('assets/EL\ PRINCIPIO\ DE\ LA\ HISTORIA/pergamino final.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.cta__container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
    margin-bottom: var(--spacing-md);
    background-color: var(--color-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta__buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: var(--spacing-md);
    background: var(--color-darker);
    border-top: 1px solid rgba(78, 205, 196, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer__text {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.footer__subtitle {
    font-size: 0.875rem;
    color: var(--color-gray);
}


/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   Responsive Design - Mobile First
   ========================================== */

/* Media query para tablets pequeñas - mantener menú horizontal */
@media (min-width: 481px) and (max-width: 768px) {
    .nav__container {
        padding: var(--spacing-sm);
    }

    .nav__menu {
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
        font-size: 0.85rem;
    }

    .nav__link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav__logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 1250px) {
    .adventure {
        margin-top: 2rem;
    }
}

@media (max-width: 968px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .nav__container {
        padding: var(--spacing-sm);
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: var(--spacing-sm);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid rgba(78, 205, 196, 0.2);
        font-size: 1.2rem;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .hero {
        padding: 3rem var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
        min-height: calc(100vh - var(--nav-height));
        margin-top: var(--nav-height);
        display: flex;
        align-items: center;
    }

    .hero__background {
        background-position: center right;
        background-size: cover;
    }

    .hero__container {
        padding: 0;
        width: 100%;
    }

    .hero__title {
        margin-bottom: var(--spacing-sm);
    }

    .hero__text {
        margin-bottom: var(--spacing-sm);
        font-size: 1rem;
    }

    .hero__prophecy {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .hero__prophecy p {
        font-size: 0.9rem;
    }

    .hero__prophecy-highlight {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero__buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .character {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
        min-height: auto;
    }

    .character__image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 420px;
        z-index: 1;
        margin: 0 auto var(--spacing-md) auto;
    }

    .character__img {
        z-index: 1;
    }

    .character__content {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .character__info {
        grid-column: 1;
        padding-left: 0;
        text-align: center;
    }

    .adventure {
        padding: var(--spacing-lg) var(--spacing-sm);
        margin-top: 3rem;
    }

    .adventure__container {
        padding: 0 var(--spacing-sm);
    }

    .adventure__header {
        margin: 0.2rem 0 var(--spacing-md);
    }

    .adventure__timeline {
        margin: var(--spacing-sm) 0;
        padding: var(--spacing-sm) 0;
    }

    .timeline__item {
        margin-bottom: var(--spacing-lg);
    }

    .timeline__content {
        grid-template-columns: 1fr;
        padding-left: 0;
        gap: var(--spacing-sm);
    }

    .timeline__item:nth-child(even) .timeline__content {
        direction: ltr;
    }

    .timeline__text h3 {
        font-size: 1.5rem;
    }

    .timeline__text>p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .timeline__header {
        justify-content: center;
        text-align: center;
    }

    .timeline__image {
        order: -1;
    }

    .timeline-carousel__slide img {
        object-fit: contain;
    }

    .timeline-carousel__button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        opacity: 1;
        pointer-events: all;
    }

    .adventure__footer {
        margin-top: var(--spacing-lg);
    }

    .adventure__message {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }

    .mission {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .mission__block {
        padding: var(--spacing-sm);
    }

    .mission__intro {
        font-size: 1.25rem;
    }

    .mission__subtitle {
        font-size: 1.5rem;
        text-align: center;
    }

    .mission__text {
        font-size: 1rem;
    }

    .library {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .join {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .cta {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .cta__container {
        grid-template-columns: 1fr;
    }

    .form__checkboxes {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .nav__container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .hero {
        padding: 2rem var(--spacing-xs) var(--spacing-md) var(--spacing-xs);
    }

    .hero__content {
        padding: var(--spacing-xs);
    }

    .character {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .adventure {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .adventure__container {
        padding: 0;
    }

    .mission {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .mission__block {
        padding: var(--spacing-xs);
    }

    .library {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .join {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .cta {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .footer {
        padding: var(--spacing-xs);
    }

    .timeline__text h3 {
        font-size: 1.25rem;
    }

    .timeline__text>p {
        font-size: 0.95rem;
    }

    .timeline__image {
        height: auto;
    }

    .timeline-carousel__slide img {
        height: auto;
    }

    .adventure__message {
        font-size: 0.95rem;
    }
}

/* Media query específica para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav__container {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav__menu {
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
    }

    .nav__link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .hero__container {
        gap: var(--spacing-md);
    }

    .timeline__content {
        gap: var(--spacing-sm);
    }
}

.hidden {
    display: none;
}