
@font-face {
    font-family: 'Modithorson';
    src: url('fonts/modithorson.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.view[data-view="main"] h2 {
    font-family: 'Modithorson', 'Segoe UI', system-ui, sans-serif;
    margin-top: 0;
    /* Eliminado */
    min-height: auto;
    margin-bottom: 20px;
    /* Espacio entre título y primer botón */
    text-align: center;
}

/* 2. Creamos el "resorte" para que todo el bloque baje */
.main-actions {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Este margin-top empuja TODO el bloque al fondo del folder */
    margin-top: auto;
}

/* Configuración General */
body {
    background: #0d1016;
    font-family: 'Montserrat', Tahoma, Verdana, sans-serif;
    font-weight: 300;
    /* margin: 30px; */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 30px;
}

/* FOLDER PRINCIPAL */
.folder {
    position: relative;
    width: min(90vw, 300px);
    height: 550px;
    flex-shrink: 0;
    background: transparent;

    transform: scale(1.35);      /* 👈 AUMENTA TODO */
    transform-origin: center;    /* Escala desde el centro */
    
}

.folder-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    
}

.bg-main {
    opacity: 1;
    z-index: 1;
}

.bg-alt {
    opacity: 0;
    z-index: 1;
}

.folder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 2;
}


.folder-body {
    padding: 25px 20px;
    /* Este padding define dónde descansan los botones */
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}



/* --- ESTADO 1: VISTA PRINCIPAL (Blanco con Imagen) --- */
.state-main {
    background: transparent !important;
    /* Forzamos transparencia */
}

/* Reduce el espacio superior cuando el folder es negro */
.state-info .folder-body,
.state-faq .folder-body {
    padding-top: 10px;
    /* Ajusta este valor a tu gusto (menor = más arriba) */
}

.state-info .bg-main,
.state-faq .bg-main {
    opacity: 0;
}

.state-info .bg-alt,
.state-faq .bg-alt {
    opacity: 1;
}

/* CUERPO Y VISTAS */
.folder-body {
    padding: 25px 20px;
    height: 100%;
    box-sizing: border-box;
}

/* El contenedor de botones siempre se quedará abajo */

.view {
    display: none;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    /* El contenido empieza arriba */
}

.view.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}


/* Ajuste específico para que los botones de FAQ no se peguen al scroll */
.view[data-view="faq"] .btn-secondary {
    margin-top: 0;
}

.view[data-view="faq"]{
    padding-top: 8px;
}

.view[data-view="info"]{
    padding-top: 10px;
}

.view[data-view="main"] {
    margin-top: 280px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.description {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-size: 24px;
    text-align: center;
    line-height: 1.1;
}


/* LISTAS */
.steps-list {
    font-family: 'Montserrat', sans-serif;
    padding-left: 18px;
    font-size: 11px;
    margin-bottom: 0;
    text-align: left;
}

.steps-list li {
    margin-bottom: 8px;
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
}

/* BOTONES */
.btn {
    font-family: 'Montserrat', sans-serif;
    /* Forzar la fuente aquí */
    width: 100%;
    padding: 13px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    margin-bottom: 0 !important;
    /* El espacio lo controla el 'gap' de buttons-zone */
    font-size: 11px;
    font-weight: 500;
    /* Un poco más fuerte para accesibilidad */
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-secondary {
    background: #e0e0e0;
    color: #000;
}

.btn-light {
    background: #fff;
    color: #000;
}

.btn-dark-gray {
    background: #33363b;
    color: #fff;
}

/* ===== FAQ CON SCROLL ===== */
.faq-container {
    max-height: 300px;
    /* Altura visible */
    min-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 6px;
    margin-top: 100px;
}

/* Scroll discreto */
.faq-container::-webkit-scrollbar {
    width: 4px;
}

.faq-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

/* ITEM */
.faq-item {
    border-bottom: 1px solid #333;
}

/* PREGUNTA */
.faq-question {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 11px;
    font-weight: 300;
    padding: 12px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ICONO */
.faq-question .icon {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* RESPUESTA */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    font-size: 11px;
    line-height: 1.4;
    color: white;
    padding: 0 0 10px 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ACTIVO */
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

/* BOTÓN CON ICONO + TEXTO CENTRADOS */
.btn-icon-center {
    display: flex;
    align-items: center;
    justify-content: center;
    /* CENTRA TODO EL BLOQUE */
    gap: 10px;
    /* Espacio entre icono y texto */
}

/* ICONO */
.btn-icon-center img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* CONTENEDOR GENERAL */
.slider-wrapper {
    width: 100%;
    max-width: 1200px;
    /* O el ancho que desees */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /* Evita que el scroll afecte a toda la página */
}

/* SLIDER HORIZONTAL */
.slider {
    display: flex;
    gap: 20px;
    padding: 120px 40px;
    /* Añadimos padding para que el drop-shadow no se corte */
    overflow-x: auto;
    overflow-y: hidden;
    /* IMPORTANTE: Permite el scroll horizontal */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* Asegura que ocupe el ancho disponible */
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    /* Evita que se seleccione texto al arrastrar */
    -webkit-user-select: none;
}

.slider .folder {
    margin: 0 60px; /* compensa el scale */
}

.slider:active {
    cursor: grabbing;
}

/* Suaviza el scroll al usar el mouse */
.slider {
    scroll-behavior: smooth;
}

/* Si usas scroll-snap, el arrastre manual puede sentirse "pesado". 
   Es mejor desactivarlo temporalmente durante el arrastre si notas tirones */
.slider.grabbing {
    scroll-snap-type: none;
}

/* OCULTAR SCROLLBAR */
.slider::-webkit-scrollbar {
    height: 6px;
    /* SOLO scrollbar inferior */
}

.slider::-webkit-scrollbar-track {
    background: transparent;
}

.slider::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}


/* CADA FOLDER SE "ANCLA" */
.slider .folder {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.slider-hint {
    margin-top: 14px;
    font-size: 15px;
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    opacity: 0.85;
}

@media (max-width: 480px) {

    body {
        padding-top: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        font-size: 11px;
        padding: 12px;
    }

    .faq-container {
        max-height: 240px;
    }

    .slider {
        padding: 10px;
        gap: 14px;
    }

    .slider-hint {
        font-size: 11px;
    }
}

@media (max-width: 768px) {

    .folder {
        width: min(80vw, 330px);
    }

    .slider {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {

    .slider {
        justify-content: flex-start;
    }

    .slider-wrapper {
        max-width: 1800px;
    }
}


.info-scroll {
    flex: 1;
    max-height: 300px;
    /* MISMA ALTURA QUE FAQ */
    min-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.info-scroll::-webkit-scrollbar {
    width: 4px;
}

.info-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.info-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Aquí controlas el espacio (puedes subirlo a 15px si prefieres) */
    margin-top: 10px;
    width: 100%;
}

/* --- ESTADO 2: INFO / FAQ --- */
.state-info,
.state-faq {
    background: transparent !important;
    /* Forzamos transparencia */
    color: white;
}

/* Ajustes de visibilidad de las imágenes de fondo */
.state-main .bg-main {
    opacity: 1;
}

.state-main .bg-alt {
    opacity: 0;
}

.state-info .bg-main,
.state-faq .bg-main {
    opacity: 0;
}

.state-info .bg-alt,
.state-faq .bg-alt {
    opacity: 1;
}

/* 3. Aseguramos que las otras vistas también empujen sus botones al fondo */
.info-actions,
.faq-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Mismo espacio para mantener consistencia */
    margin-top: 0;
    width: 100%;
}

.info-scroll,
.faq-container {
    margin-bottom: 10px;
    /* Un pequeño respiro antes de los botones */
    margin-top: 78px;
}

.title-zone {
    height: 90px;
    /* Altura fija para que todos ocupen lo mismo */
    display: flex;
    align-items: flex-end;
    /* Empuja el texto hacia la base del contenedor */
    justify-content: center;
    margin-bottom: 10px;
    /* Centra horizontalmente */
}

.title-zone h2 {
    margin: 0;
    /* Quitamos márgenes que deforman la zona */
    font-size: 22px;
    line-height: 1.1;
    text-align: center;
    width: 100%;
}

/* 2. ZONA DE BOTONES: Alineación desde el tope */
.buttons-zone {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Empiezan arriba */
    align-items: center;
    gap: 10px;
    /* Espacio entre botones */
    width: 100%;
    /* No pongas min-height aquí para que no empujen hacia abajo */
}