/**
 * Batllié - El Ritual de Cata
 * Hoja de estilos principal (styles.css)
 * 
 * Diseñado para fácil mantenimiento y personalización de temas y componentes.
 * Paleta de colores:
 *   - Fondo principal: #162a1f (Verde bosque profundo)
 *   - Texto principal: #fdffdd (Crema suave)
 *   - Acento / Destacados: Variable (--batllie-accent)
 */

.batllie-cata-root {
    --batllie-bg: #162a1f;
    --batllie-text: #fdffdd;
    --batllie-accent: var(--batllie-text);
    --batllie-accent-hover: #ffffff;
    --batllie-btn-shop-text: var(--batllie-bg);
    --batllie-btn-shop-text-hover: var(--batllie-bg);
}
html.has-batllie-cata,
body.has-batllie-cata {
    height: 100% !important;
    overflow: hidden !important;
}
.batllie-cata-root {
    background-color: var(--batllie-bg);
    bottom: 0;
    box-sizing: border-box;
    color: var(--batllie-text);
    display: flex;
    flex-direction: column;
    font-family: 'Cormorant Garamond', Georgia, serif;
    height: 100vh;
    height: 100dvh;
    justify-content: space-between;
    left: 0;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 999999;
}
.batllie-cata-root * {
    box-sizing: border-box;
}
.batllie-cata-root .batllie-cata-header {
    align-items: center;
    border-bottom: 1px solid rgba(253, 255, 221, 0.12);
    display: flex;
    flex-shrink: 0;
    height: 52px;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    width: 100%;
    z-index: 10;
}
.batllie-cata-root .batllie-cata-header-title {
    color: var(--batllie-text);
    flex: 1;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: left;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-top-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}
.batllie-cata-root .batllie-cata-audio-btn,
.batllie-cata-root .batllie-cata-close-btn {
    align-items: center;
    background-color: rgba(253, 255, 221, 0.08);
    border: 1px solid rgba(253, 255, 221, 0.2);
    border-radius: 20px;
    color: var(--batllie-text);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.82rem;
    gap: 6px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.batllie-cata-root .batllie-cata-close-btn {
    font-size: 1rem;
    padding: 0;
    width: 30px;
}
.batllie-cata-root .batllie-cata-audio-btn:hover,
.batllie-cata-root .batllie-cata-close-btn:hover {
    background-color: rgba(253, 255, 221, 0.2);
    border-color: var(--batllie-text);
    color: #ffffff;
    transform: translateY(-1px);
}
.batllie-cata-root .batllie-cata-audio-waves {
    display: inline-flex;
    gap: 3px;
    height: 12px;
}
.batllie-cata-root .batllie-cata-wave-bar {
    animation: none;
    background-color: var(--batllie-accent);
    border-radius: 2px;
    height: 100%;
    width: 2px;
}
.batllie-cata-root.is-playing .batllie-cata-wave-bar:nth-child(1) {
    animation: batllieWave 0.8s ease-in-out infinite alternate;
}
.batllie-cata-root.is-playing .batllie-cata-wave-bar:nth-child(2) {
    animation: batllieWave 0.6s ease-in-out infinite alternate 0.2s;
}
.batllie-cata-root.is-playing .batllie-cata-wave-bar:nth-child(3) {
    animation: batllieWave 0.9s ease-in-out infinite alternate 0.4s;
}
@keyframes batllieWave {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}
.batllie-cata-root .batllie-cata-progress-bar {
    background-color: rgba(253, 255, 221, 0.08);
    display: flex;
    flex-shrink: 0;
    height: 3px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-progress-fill {
    background-color: var(--batllie-accent);
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.batllie-cata-root .batllie-cata-viewport {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    padding: 8px 16px;
    position: relative;
    width: 100%;
}
.batllie-cata-root .batllie-cata-slide {
    align-items: center;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 100%;
    max-width: 820px;
    opacity: 0;
    overflow-y: auto;
    padding: 10px 8px 24px 8px;
    scrollbar-color: var(--batllie-accent) rgba(253, 255, 221, 0.05);
    scrollbar-width: thin;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.batllie-cata-root .batllie-cata-slide::-webkit-scrollbar {
    width: 4px;
}
.batllie-cata-root .batllie-cata-slide::-webkit-scrollbar-thumb {
    background-color: var(--batllie-accent);
    border-radius: 4px;
}
.batllie-cata-root .batllie-cata-slide.active {
    animation: batllieFadeIn 0.3s forwards;
    display: flex;
}
@keyframes batllieFadeIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Slide Intro */
.batllie-cata-root .batllie-cata-intro {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    max-width: 620px;
    text-align: center;
}
.batllie-cata-root .batllie-cata-intro-logo-clean {
    background: transparent;
    display: block;
    height: auto;
    margin: 0 auto 16px;
    max-height: 75px;
    max-width: 250px;
    object-fit: contain;
}
.batllie-cata-root .batllie-cata-intro-subtitle {
    color: var(--batllie-accent);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-intro-desc {
    color: rgba(253, 255, 221, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 24px 0;
}
.batllie-cata-root .batllie-cata-toggles-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 360px;
}
.batllie-cata-root .batllie-cata-toggle-box {
    align-items: center;
    background-color: rgba(253, 255, 221, 0.05);
    border: 1px solid rgba(253, 255, 221, 0.15);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    padding: 8px 18px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-toggle-label {
    color: var(--batllie-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    text-align: left;
}
.batllie-cata-root .batllie-cata-switch {
    cursor: pointer;
    display: inline-block;
    flex-shrink: 0;
    height: 24px;
    margin-left: 10px;
    position: relative;
    width: 44px;
}
.batllie-cata-root .batllie-cata-switch input {
    height: 0;
    opacity: 0;
    width: 0;
}
.batllie-cata-root .batllie-cata-slider {
    background-color: #4a5d52;
    border-radius: 24px;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.batllie-cata-root .batllie-cata-slider:before {
    background-color: var(--batllie-text);
    border-radius: 50%;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 18px;
}
.batllie-cata-root .batllie-cata-switch input:checked + .batllie-cata-slider {
    background-color: var(--batllie-accent);
}
.batllie-cata-root .batllie-cata-switch input:checked + .batllie-cata-slider:before {
    transform: translateX(20px);
}
.batllie-cata-root .batllie-cata-btn-start {
    background-color: var(--batllie-text);
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: var(--batllie-bg);
    cursor: pointer;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 36px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.batllie-cata-root .batllie-cata-btn-start:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 26px rgba(196, 121, 44, 0.35);
    transform: translateY(-2px);
}

/* Section Header */
.batllie-cata-root .batllie-cata-section-title {
    color: var(--batllie-text);
    font-size: 1.85rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0 0 4px 0;
    text-align: center;
    width: 100%;
}
.batllie-cata-root .batllie-cata-section-subtitle {
    color: #fdffdd;
    opacity: 0.95;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0 0 16px 0;
    text-align: center;
    text-transform: uppercase;
}

/* Slide Mate */
.batllie-cata-root .batllie-cata-mate-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    max-width: 680px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-mate-item {
    align-items: center;
    background-color: rgba(253, 255, 221, 0.05);
    border: 1px solid rgba(253, 255, 221, 0.12);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    padding: 14px 18px;
    text-align: left;
}
.batllie-cata-root .batllie-cata-mate-img {
    background-color: rgba(253, 255, 221, 0.04);
    border: 1px solid rgba(253, 255, 221, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    height: 72px;
    object-fit: contain;
    padding: 4px;
    width: 72px;
}
.batllie-cata-root .batllie-cata-mate-text {
    flex: 1;
}
.batllie-cata-root .batllie-cata-mate-step-title {
    color: var(--batllie-accent);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-mate-step-desc {
    color: rgba(253, 255, 221, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

/* Slide Experiencia Completa (Boxes) */
.batllie-cata-root .batllie-cata-boxes-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 740px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-boxes-grid {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin: 8px 0 16px 0;
    width: 100%;
}
@media (max-width: 680px) {
    .batllie-cata-root .batllie-cata-boxes-grid {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr);
    }
    .batllie-cata-root .batllie-cata-box-card {
        padding: 10px 4px !important;
    }
    .batllie-cata-root .batllie-cata-box-num {
        font-size: 1.05rem !important;
        margin-bottom: 4px !important;
    }
    .batllie-cata-root .batllie-cata-box-img {
        max-height: 90px !important;
        margin-bottom: 6px !important;
    }
    .batllie-cata-root .batllie-cata-box-name {
        font-size: 0.85rem !important;
        min-height: 2.4em !important;
        line-height: 1.2 !important;
    }
    .batllie-cata-root .batllie-cata-box-sub {
        font-size: 0.72rem !important;
        min-height: 2.6em !important;
    }
}
.batllie-cata-root .batllie-cata-box-card {
    align-items: center;
    background-color: rgba(253, 255, 221, 0.05);
    border: 1px solid rgba(253, 255, 221, 0.12);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    padding: 14px 8px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.batllie-cata-root .batllie-cata-box-card:hover {
    background-color: rgba(253, 255, 221, 0.1);
    border-color: rgba(253, 255, 221, 0.35);
    transform: translateY(-3px);
}
.batllie-cata-root .batllie-cata-box-card:active {
    transform: translateY(-1px);
}
.batllie-cata-root .batllie-cata-box-num {
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
    text-align: center;
}
.batllie-cata-root .batllie-cata-box-img {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    height: auto;
    margin-bottom: 10px;
    max-height: 140px;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
}
.batllie-cata-root .batllie-cata-box-name {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 4px;
    min-height: 2.5em;
    text-align: center;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-box-sub {
    color: #fdffdd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    opacity: 0.9;
}
.batllie-cata-root .batllie-cata-boxes-desc {
    color: rgba(253, 255, 221, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 640px;
    text-align: center;
}

/* Slide Capítulo (Alfajores agrupados con scroll) */
.batllie-cata-root .batllie-cata-chapter-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 680px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-alfajor-card {
    background-color: rgba(253, 255, 221, 0.05);
    border: 1px solid rgba(253, 255, 221, 0.12);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
}
.batllie-cata-root .batllie-cata-alfajor-card:last-child {
    margin-bottom: 0;
}
.batllie-cata-root .batllie-cata-alfajor-name {
    color: #ffffff !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-alfajor-text {
    color: var(--batllie-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}
.batllie-cata-root .batllie-cata-alfajor-img-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 4px;
    width: 100%;
}
.batllie-cata-root .batllie-cata-alfajor-img {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    height: auto;
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
}

/* Slide Closing */
.batllie-cata-root .batllie-cata-closing {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    max-width: 600px;
    text-align: center;
}
.batllie-cata-root .batllie-cata-closing h2 {
    color: var(--batllie-text);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.15;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}
.batllie-cata-root .batllie-cata-closing p {
    color: rgba(253, 255, 221, 0.88);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}
.batllie-cata-root .batllie-cata-closing-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.batllie-cata-root .batllie-cata-btn-shop {
    align-items: center;
    background-color: var(--batllie-accent);
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: var(--batllie-btn-shop-text, var(--batllie-bg));
    cursor: pointer;
    display: inline-flex;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 2px;
    min-height: 52px;
    padding: 14px 40px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.batllie-cata-root .batllie-cata-btn-shop:hover {
    background-color: var(--batllie-accent-hover, #ffffff);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: var(--batllie-btn-shop-text-hover, var(--batllie-bg));
    transform: translateY(-2px);
}
.batllie-cata-root .batllie-cata-btn-restart {
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(253, 255, 221, 0.35);
    border-radius: 30px;
    color: var(--batllie-text);
    cursor: pointer;
    display: inline-flex;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    justify-content: center;
    letter-spacing: 1.5px;
    min-height: 38px;
    padding: 8px 24px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.batllie-cata-root .batllie-cata-btn-restart:hover {
    background-color: rgba(253, 255, 221, 0.1);
    border-color: var(--batllie-text);
}

/* Navigation Footer */
.batllie-cata-root .batllie-cata-nav-footer {
    align-items: center;
    border-top: 1px solid rgba(253, 255, 221, 0.12);
    display: flex;
    flex-shrink: 0;
    height: 48px;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    width: 100%;
}
.batllie-cata-root .batllie-cata-nav-btn {
    align-items: center;
    background-color: rgba(253, 255, 221, 0.08);
    border: 1px solid rgba(253, 255, 221, 0.2);
    border-radius: 20px;
    color: var(--batllie-text);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.85rem;
    gap: 6px;
    height: 30px;
    line-height: 1;
    padding: 0 14px;
    transition: all 0.25s ease;
}
.batllie-cata-root .batllie-cata-nav-btn:hover:not(:disabled) {
    background-color: rgba(253, 255, 221, 0.2);
    border-color: var(--batllie-text);
    transform: translateY(-1px);
}
.batllie-cata-root .batllie-cata-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}
.batllie-cata-root .batllie-cata-nav-btn-next {
    background-color: var(--batllie-text);
    border-color: var(--batllie-text);
    color: var(--batllie-bg);
    font-weight: 700;
}
.batllie-cata-root .batllie-cata-nav-btn-next:hover:not(:disabled) {
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(253, 255, 221, 0.3);
}
.batllie-cata-root .batllie-cata-dots {
    align-items: center;
    display: flex;
    gap: 6px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}
.batllie-cata-root .batllie-cata-dot {
    background-color: rgba(253, 255, 221, 0.2);
    border-radius: 50%;
    cursor: pointer;
    height: 6px;
    transition: all 0.3s ease;
    width: 6px;
}
.batllie-cata-root .batllie-cata-dot.active {
    background-color: var(--batllie-accent);
    transform: scale(1.3);
}