/* =========================================
   1. VARIABLES & THEMES     
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    /* Light Theme (Pastel & Vibrant) */
    --bg-color: #fafbfa;
    --surface-color: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --text-color: #2d3436;
    --text-muted: #636e72;
    
    --hp-pink: #ff5299;
    --hp-pink-glow: rgba(255, 82, 153, 0.4);
    --hp-orange: #ff9d5c;
    --hp-yellow: #ffd45e;
    
    --hp-gradient: linear-gradient(135deg, var(--hp-pink) 0%, var(--hp-orange) 100%);
    --border-color: rgba(0,0,0,0.05);
    --shadow-sm: 0 6px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    
    --input-bg: #f5f6fa;
    --input-border: #dcdde1;
    --surface-card: #ffffff;
}

[data-theme="dark"] {
    /* Candy / Neon Dark Mode */
    --bg-color: #0b0c10;
    --surface-color: #1a1b24;
    --header-bg: rgba(26, 27, 36, 0.85);
    --surface-card: #252736;
    --text-color: #ffffff;
    --text-muted: #a0a5b5;
    
    --hp-pink: #ff3385;
    --hp-pink-glow: rgba(255, 51, 133, 0.6);
    --hp-orange: #ff8533;
    
    --border-color: rgba(255,255,255,0.05);
    --shadow-sm: 0 6px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    
    --input-bg: #252736;
    --input-border: #35384e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    padding-bottom: 80px;
}

.page-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* =========================================
   2. HEADER DINÁMICO 
   ========================================= */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 15px;
    z-index: 1000;
    width: calc(100% - 30px);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    transition: background 0.4s ease, border-radius 0.4s ease;
    border: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px; width: auto; 
    transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.05); }

.nav-desktop {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-desktop a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-desktop a:hover {
    background: var(--input-bg);
    color: var(--hp-pink);
    transform: translateY(-2px);
}

.nav-desktop a.active {
    background: var(--hp-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--hp-pink-glow);
}

.theme-toggle {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--hp-pink);
    color: var(--hp-pink);
}

/* Hamburguesa en celular */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.menu-btn span {
    width: 25px; height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

.side-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100%;
    background: var(--surface-color);
    z-index: 1100;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 30px;
    display: flex; flex-direction: column; gap: 20px;
}
.side-menu.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.side-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: none; z-index: 1050;
    backdrop-filter: blur(3px);
}
.overlay.active { display: block; }

@media (max-width: 850px) {
    header {
        flex-direction: row;
        width: 100%; top: 0; border-radius: 0;
        margin-bottom: 0; border-left: none; border-right: none;
        padding: 15px 20px;
    }
    .nav-desktop { display: none; }
    .menu-btn { display: flex; }
    .theme-toggle { margin-right: 15px; } /* Ajuste del icono de luna/sol */
}

/* =========================================
   3. SECCIONES Y TEXTOS
   ========================================= */
.section-tag {
    background: var(--hp-gradient);
    color: white;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 0 20px 20px 0;
    font-weight: 900;
    margin: 35px 0 20px;
    font-size: 16px;
    box-shadow: 0 4px 10px var(--hp-pink-glow);
}

.page-title {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    margin: 90px 0 20px;
}

@media (min-width: 1240px) {
    .section-tag {
        margin-left: calc((100vw - 1200px) / 2 + 15px);
        border-radius: 20px;
        padding: 8px 30px;
    }
    .page-title {
        font-size: 36px;
        margin-top: 50px;
    }
}

/* =========================================
   4. GRID Y TARJETAS (CARDS)
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: auto;
}

@media (min-width: 768px) {
    .grid { gap: 25px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--hp-pink-glow);
    border-color: var(--hp-pink);
}

.img-container {
    width: 100%;
    height: 140px;
    background: var(--bg-color);
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover .img-container img {
    transform: scale(1.08);
    filter: drop-shadow(0 10px 15px var(--hp-pink-glow));
}

.img-container img {
    width: 85%; height: 85%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.2;
}

.price {
    font-size: 16px;
    font-weight: 900;
    color: var(--hp-pink);
    margin-bottom: 12px;
}

.badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3333;
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.4);
}

/* =========================================
   5. CONTROLES Y BOTONES
   ========================================= */
.qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    background: var(--input-bg);
    padding: 6px;
    border-radius: 20px;
}

.qty-btn {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.qty-btn:hover {
    background: var(--hp-pink); color: white; border-color: var(--hp-pink); transform: scale(1.1);
}

.qty-num { font-weight: 900; font-size: 16px; width: 25px; text-align: center; color: var(--text-color); }

.btn-add {
    background: var(--hp-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px var(--hp-pink-glow);
}
.btn-add:active { transform: scale(0.95); }

/* Botón secundario sin gradiente agresivo */
.btn-secondary {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    border-color: var(--hp-pink); color: var(--hp-pink);
}

/* =========================================
   6. CARRITO FLOTANTE Y TOAST PUSH NOTIFICATIONS
   ========================================= */
.cart-fixed, .wa-fixed {
    position: fixed;
    bottom: 25px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 65px; height: 65px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    z-index: 999;
    border: 2px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    font-size: 24px;
}
.cart-fixed { right: 25px; }
.wa-fixed { left: 25px; border-color: rgba(37,211,102,0.5); background: rgba(37,211,102,0.85); color: white; }
.cart-fixed:hover, .wa-fixed:hover { transform: scale(1.1) rotate(5deg); }
.cart-fixed:hover { border-color: var(--hp-pink); }
.wa-fixed:hover { background: #1ebd5a; }

.badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--hp-pink);
    color: white;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--surface-color);
}

/* =========================================
   7. FORMULARIOS & CHECKOUT (ORDER.HTML)
   ========================================= */
.checkout-box {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: fit-content;
    margin-bottom: 25px;
}

.input-label {
    display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-muted);
}

.input-text, .input-select {
    width: 100%; padding: 14px; background: var(--input-bg);
    border: 2px solid var(--input-border); border-radius: 14px;
    color: var(--text-color); font-size: 14px; font-weight: 600;
    transition: all 0.3s ease; outline: none; margin-bottom: 20px;
    font-family: inherit;
}

.input-text:focus, .input-select:focus {
    border-color: var(--hp-pink); background: var(--surface-color);
    box-shadow: 0 0 0 4px var(--hp-pink-glow);
}

/* =========================================
   8. ANIMACIONES Y UTILIDADES
   ========================================= */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-admin {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}
.footer-admin a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.5;
    transition: 0.3s;
}
.footer-admin a:hover { opacity: 1; color: var(--hp-pink); }

/* =========================================
   9. CAROUSEL
   ========================================= */

/* Slogan minimalista sobre el carrusel */
.carousel-slogan {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 18px auto 10px;
    padding: 0 16px;
    opacity: 0.75;
}

/* Sección de propósito de la app (verificación OAuth Google) */
.app-purpose-section {
    max-width: 820px;
    margin: 0 auto 36px;
    padding: 28px 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
}
.app-purpose-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-pink);
    margin: 0 0 10px;
}
.app-purpose-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 14px;
}
.app-purpose-body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.app-purpose-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.purpose-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 82, 153, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 82, 153, 0.25);
    white-space: nowrap;
}

.carousel-container {
    width: calc(100% - 30px);
    max-width: 1170px;
    margin: 30px auto;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .carousel-container { height: 350px; border-radius: 35px; }
}
.track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: var(--hp-pink);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.prev { left: 10px; }
.next { right: 10px; }

/* =========================================
   10. ORDER LAYOUT Y CART (ORDER.HTML)
   ========================================= */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .order-layout { grid-template-columns: 1fr; }
    .checkout-box:first-child { order: 2; } /* Forms abajo en celular */
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 50px; height: 50px;
    background: var(--input-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 5px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }

.upsell-banner {
    background: linear-gradient(135deg, rgba(255,157,92,0.1), rgba(255,82,153,0.1));
    border: 1px solid var(--hp-orange);
.upsell-banner {
    background: linear-gradient(135deg, rgba(255,157,92,0.1), rgba(255,82,153,0.1));
    border: 1px solid var(--hp-orange);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    animation: slideIn 0.5s ease;
}

/* --- SKELETON LOADING --- */
.skeleton-img, .skeleton-text {
    background: linear-gradient(90deg, #181818 25%, #2a2a2a 50%, #181818 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
.skeleton-img {
    height: 140px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}
.skeleton-text {
    border-radius: 6px;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.upsell-banner img { width: 40px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }

.total-row {
    display: flex; justify-content: space-between;
    margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--text-color);
}
.total-final {
    font-size: 22px; font-weight: 900; color: var(--hp-pink); margin-top: 10px;
    padding-top: 10px; border-top: 2px solid var(--border-color);
}
.showcase-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* =========================================
   ORDER STATUS STEPPER
   ========================================= */
.order-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 4px;
    gap: 0;
    position: relative;
}
.order-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 0;
}
.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.stepper-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}
.stepper-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}
.stepper-step.done .stepper-dot {
    background: linear-gradient(135deg, #2ed573, #1abc9c);
    border-color: #2ed573;
}
.stepper-step.done .stepper-label { color: #2ed573; }
.stepper-step.active .stepper-dot {
    background: var(--hp-gradient);
    border-color: var(--hp-pink);
    box-shadow: 0 0 0 4px var(--hp-pink-glow);
    animation: stepper-pulse 1.8s ease-in-out infinite;
}
.stepper-step.active .stepper-label { color: var(--hp-pink); font-weight: 900; }
.stepper-step.cancelled .stepper-dot {
    background: rgba(255,82,82,0.15);
    border-color: #ff5252;
}
.stepper-step.cancelled .stepper-label { color: #ff5252; }
@keyframes stepper-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--hp-pink-glow); }
    50%       { box-shadow: 0 0 0 7px rgba(255,82,153,0.1); }
}

/* =========================================
   TRUST BADGES
   ========================================= */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.trust-badge.confiable {
    background: rgba(46,213,115,0.15);
    color: #2ed573;
    border: 1px solid rgba(46,213,115,0.4);
}
.trust-badge.vigilar {
    background: rgba(255,212,94,0.15);
    color: #e6a817;
    border: 1px solid rgba(255,212,94,0.4);
}
.trust-badge.bloqueado {
    background: rgba(255,82,82,0.12);
    color: #ff5252;
    border: 1px solid rgba(255,82,82,0.35);
}

/* =========================================
   DOMAIN CHANGE BANNER
   ========================================= */
.domain-banner {
    background: linear-gradient(135deg, rgba(255,82,153,0.12), rgba(255,157,92,0.12));
    border-bottom: 1px solid rgba(255,82,153,0.25);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    animation: slideDown 0.4s ease;
}
.domain-banner a { color: var(--hp-pink); text-decoration: underline; }
.domain-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.domain-banner-close:hover { color: var(--text-color); }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Progressive Linear Blur
   Uso: <div class="progressive-blur"><div></div><div></div>
        <div></div><div></div><div></div><div></div><div></div></div>
   El contenedor padre necesita position: relative
   ============================================================ */
.progressive-blur {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.progressive-blur > div {
    position: absolute;
    inset: 0;
}

.progressive-blur > div:nth-child(1) {
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
    mask-image: linear-gradient(to top, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
}
.progressive-blur > div:nth-child(2) {
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    -webkit-mask-image: linear-gradient(to top, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
    mask-image: linear-gradient(to top, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
}
.progressive-blur > div:nth-child(3) {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    -webkit-mask-image: linear-gradient(to top, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
    mask-image: linear-gradient(to top, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
}
.progressive-blur > div:nth-child(4) {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    -webkit-mask-image: linear-gradient(to top, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
    mask-image: linear-gradient(to top, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
}
.progressive-blur > div:nth-child(5) {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to top, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
    mask-image: linear-gradient(to top, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
}
.progressive-blur > div:nth-child(6) {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to top, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
}
.progressive-blur > div:nth-child(7) {
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    -webkit-mask-image: linear-gradient(to top, transparent 75%, black 87.5%, black 100%);
    mask-image: linear-gradient(to top, transparent 75%, black 87.5%, black 100%);
}

/* ============================================================
   Happy Corner - Rediseno de paginas legales (terminos/privacidad)
   Agregar esto a styles.css, reemplazando o complementando
   las reglas .legal-container ya existentes
   ============================================================ */

.legal-page-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;
    align-items: flex-start;
}

/* Tabla de contenidos lateral, sticky */
.legal-toc {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.legal-toc-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-toc a {
    display: block;
    font-size: 13px;
    color: var(--text-color);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: 0.2s;
    opacity: 0.75;
}

.legal-toc a:hover {
    background: var(--bg-color);
    opacity: 1;
}

.legal-toc a.active {
    background: var(--hp-gradient);
    color: white;
    opacity: 1;
    font-weight: 700;
}

/* Contenido principal */
.legal-content {
    flex: 1;
    min-width: 0;
}

.legal-content h1 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 6px;
}

.legal-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 16px;
    scroll-margin-top: 20px;
}

.legal-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hp-gradient);
    color: white;
    font-weight: 900;
    font-size: 13px;
    margin-right: 10px;
    flex-shrink: 0;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-section p, .legal-section li {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
}

.legal-section ul {
    margin: 10px 0 0 20px;
}

/* Mobile: TOC colapsa arriba del contenido, ya no sticky lateral */
.order-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 30px 0;
    width: 100%;
}
.order-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--input-bg);
    z-index: 0;
}
.stepper-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}
.stepper-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 4px solid var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.stepper-step.done .stepper-dot {
    background: var(--hp-orange);
    border-color: var(--hp-orange);
    color: white;
}
.stepper-step.active .stepper-dot {
    background: var(--hp-pink);
    border-color: var(--hp-pink);
    color: white;
    box-shadow: 0 0 15px var(--hp-pink-glow);
    animation: pulse 2s infinite;
}
.stepper-step.cancelled .stepper-dot {
    background: var(--accent-red);
    border-color: var(--accent-red);
}
.stepper-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
}
.stepper-step.done .stepper-label { color: var(--text-color); }
.stepper-step.active .stepper-label { color: var(--hp-pink); }
.stepper-step.cancelled .stepper-label { color: var(--accent-red); }

@media (max-width: 860px) {
    .legal-page-wrapper {
        flex-direction: column;
    }
    .legal-toc {
        width: 100%;
        position: static;
        max-height: none;
    }
}

/* Fondo para páginas específicas */
.bg-image-body {
    background-image: url('/backphoto.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* --- Skeleton Loading --- */
.skeleton {
    background: #1e1e1e;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shine 1.2s ease infinite;
    border-radius: 8px;
}

@keyframes shine {
    to {
        background-position: right -40px top 0;
    }
}

.skeleton-img {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 80%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-btn {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    margin-top: 10px;
}
