/*
  ── StayFit Design System 10.0 ──
  Senior Staff Engineer Rebuild (Production-Grade)
  Focus: UX/UI Pro Max + Conversion Funnel
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
    /* Brand Identity (Purple/Magenta - Verified) */
    --brand-primary: #C2185B; 
    --brand-secondary: #E91E8C;
    --brand-gradient: linear-gradient(135deg, #C2185B 0%, #E91E8C 100%);
    --brand-gradient-hover: linear-gradient(135deg, #a5144d 0%, #d81b60 100%);
    
    /* Luxury Accents (Gold reserved for micro-details) */
    --brand-gold: #D4AF37;
    --brand-gold-light: #F9E2AF;
    
    /* Modern Surfaces */
    --surface-0: #ffffff;
    --surface-1: #fafafa;
    --surface-2: #f4f4f4;
    --surface-dark: #000000;
    --surface-x: #121212;
    
    /* Text */
    --text-primary: #111111;
    --text-secondary: #444444;
    --text-muted: #888888;
    --text-white: #ffffff;
    
    /* Functional */
    --accent: var(--brand-primary);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --border: #e5e5e5;
    --border-focus: var(--brand-primary);
    
    /* Layout Tokens */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --container: 1280px;
    --header-h: 80px;

    /* Bento Premium Colors */
    --bento-peach: #FDFBF5;
    --bento-mint: #FAF9F6;
    --bento-yellow: #F5F4F0;
    --bento-lilac: #FFFFFF;
}



/* ── Reset & Base ────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--surface-1);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .syne { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.1; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 3rem 0; min-height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.text-brand { color: var(--brand-primary); }

/* ── Loader ─────────────────────────────────────────────────────────────── */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--surface-0); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.pl-bg { text-align: center; }
.pl-logo { margin-bottom: 24px; animation: pulse 2s infinite ease-in-out; }
.pl-progress-wrap { width: 200px; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.pl-progress { width: 0%; height: 100%; background: var(--brand-gradient); transition: width 0.3s ease; }
.pl-percentage { margin-top: 12px; font-weight: 700; color: var(--brand-primary); font-size: 0.8rem; letter-spacing: 0.1em; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.header-main {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    z-index: 100; border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
}
.header-container { display: flex; align-items: center; justify-content: space-between; }
.header-logo { height: 32px; }
.header-nav .nav-list { display: flex; gap: 32px; }
.nav-list a { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.nav-list a:hover { color: var(--brand-primary); }
.header-tools { display: flex; align-items: center; gap: 16px; }

@media (max-width: 768px) {
    .header-nav { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-immersive {
    position: relative; min-height: 100vh; padding-top: var(--header-h);
    display: flex; align-items: center; overflow: hidden; background: var(--surface-dark);
}
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-bg img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    opacity: 1; /* Forzamos visibilidad completa */
    filter: brightness(0.85); /* Un toque de elegancia */
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(18, 10, 13, 0.95) 0%, rgba(18, 10, 13, 0.6) 50%, rgba(18, 10, 13, 0.2) 100%);
    z-index: 2;
}
.hero-container { position: relative; z-index: 2; color: var(--text-white); }
.hero-tag { 
    display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 24px; color: var(--text-white);
}
.hero-title { 
    font-size: clamp(1.8rem, 8vw, 4.5rem); 
    margin-bottom: 24px; 
    letter-spacing: -0.04em; 
    word-break: break-word;
}
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-catalog-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 768px) {
    .hero-bg { width: 100%; mask-image: linear-gradient(to bottom, transparent, black 40%); opacity: 0.4; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-catalog-btns { flex-direction: column; width: 100%; }
    .hero-catalog-btns .btn { width: 100%; text-align: center; }
    .btn-full-mobile { width: 100%; }
}

/* ── Social Proof ── */
.social-proof-bar {
    margin-top: 64px; display: flex; align-items: center; gap: 40px;
}
.sp-item { display: flex; flex-direction: column; }
.sp-number { font-size: 1.5rem; font-weight: 800; font-family: 'Syne'; color: var(--text-white); }
.sp-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.sp-stars { color: #facc15; font-size: 0.9rem; }
.sp-divider { height: 40px; width: 1px; background: rgba(255,255,255,0.1); }

/* ── Products Grid ──────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; margin-bottom: 12px; }
.section-lead { font-size: 1.1rem; color: var(--text-secondary); }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.product-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.product-card:hover { transform: translateY(-8px); border-color: var(--brand-primary); box-shadow: var(--shadow-lg); }
.product-visual { position: relative; aspect-ratio: 1.1; background: var(--surface-2); overflow: hidden; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-visual img { transform: scale(1.08); }
.card-badge {
    position: absolute; top: 16px; right: 16px; padding: 6px 12px;
    background: var(--brand-gradient); color: var(--text-white);
    border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 800;
}
.card-badge.accent { background: #000; }

.product-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.5rem; margin-bottom: 8px; }
.product-description { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }
.product-price { margin-top: auto; margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.price-main { font-size: 1.85rem; font-weight: 800; color: var(--brand-primary); font-family: 'Syne', sans-serif; line-height: 1.2; }
.price-strikethrough { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; opacity: 0.8; }
.price-main small { font-size: 0.8rem; font-weight: 500; opacity: 0.7; margin-left: 4px; }

/* ── Combos (Elite Typography-First) ─────────────────────────────────── */
.combos-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px; 
}
.combo-card {
    background: var(--surface-0); 
    padding: 3rem 2rem; 
    border-radius: var(--radius-lg);
    border: 2px solid var(--border); 
    position: relative; 
    display: flex; 
    flex-direction: column;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 540px;
}
.combo-card.featured {
    border-color: var(--brand-primary);
    background: linear-gradient(180deg, rgba(194, 24, 91, 0.05) 0%, var(--surface-0) 100%);
    box-shadow: 0 20px 50px rgba(194, 24, 91, 0.1);
}
.combo-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--brand-primary); 
}

.combo-header { text-align: center; margin-bottom: 2.5rem; }
.combo-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface-2);
    color: var(--brand-primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.combo-tag.accent { background: var(--brand-gradient); color: #fff; }
.combo-subtitle {
    display: block; font-size: 0.75rem; font-weight: 600; opacity: 0.5;
    letter-spacing: 0.2em; text-transform: uppercase;
}

.combo-name { 
    font-size: 1.85rem; text-align: center; margin-bottom: 12px; 
    color: var(--text-primary); font-family: 'Syne', sans-serif;
}
.combo-desc { font-size: 0.95rem; color: var(--text-secondary); text-align: center; margin-bottom: 2rem; }
.combo-price { font-size: 2.25rem; font-weight: 800; margin-bottom: 24px; font-family: 'Syne'; color: var(--brand-primary); }

.combo-features { margin-bottom: 2.5rem; flex-grow: 1; }
.combo-features li { 
    font-size: 0.9rem; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
}
.combo-features li::before { content: '✓'; color: var(--brand-primary); font-weight: 900; margin-right: 12px; }

/* ── Bento ─────────────────────────────────────────────────────────────── */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bento-item {
    padding: 32px; border-radius: var(--radius-lg); background: var(--bento-bg, var(--surface-2));
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bento-icon { width: 48px; height: 48px; background: #fff; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); color: var(--brand-primary);
}
.bento-title { font-size: 1.15rem; margin-bottom: 8px; }
.bento-item p { font-size: 0.85rem; color: var(--text-secondary); }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
}

/* ── Hero USA Badge ────────────────────────────────────────────────────── */
.hero-usa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(4px);
}
.hero-usa-badge .usa-flag { font-size: 1.1rem; }

/* ── Testimonials (Card Grid) ───────────────────────────────────────────── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.testi-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.testi-card-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testi-card-quote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}
.testi-card-author { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.testi-card-avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--av-color, var(--brand-primary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.5px;
}
.testi-card-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.testi-card-location { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* ── Testimonials (Smartphone Style — LEGACY, kept for reference) ───────── */
.testi-smartphone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    perspective: 1000px;
}

/* Side Previews (Desktop Only) */
.testi-smartphone-wrapper::before,
.testi-smartphone-wrapper::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 480px;
    background: #111;
    border-radius: 30px;
    opacity: 0.3;
    z-index: -1;
    filter: blur(2px);
    transition: all 0.5s ease;
}

.testi-smartphone-wrapper::before {
    left: 10%;
    transform: rotateY(25deg) scale(0.8);
    background-image: url('Media/Testimonios/testi_img_1.jpg');
    background-size: cover;
}

.testi-smartphone-wrapper::after {
    right: 10%;
    transform: rotateY(-25deg) scale(0.8);
    background-image: url('Media/Testimonios/testi_img_2.jpg');
    background-size: cover;
}

@media (max-width: 1200px) {
    .testi-smartphone-wrapper::before,
    .testi-smartphone-wrapper::after {
        display: none;
    }
}

.smartphone-case {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    box-shadow: 
        0 0 0 4px #222,
        0 50px 100px -20px rgba(0,0,0,0.5),
        0 30px 60px -30px rgba(0,0,0,0.3);
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 2;
}

.smartphone-bezel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #000;
    z-index: 10;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.smartphone-speaker {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.smartphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 30px;
    overflow: hidden;
}

.testimonial-track {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.testi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.testi-slide img,
.testi-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Overlay UI (Instagram Style) */
.testi-overlay-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.testi-progress-bars {
    display: flex;
    gap: 4px;
    width: 100%;
}

.testi-progress-bar {
    height: 2px;
    flex: 1;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.testi-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
}

.testi-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.testi-avatar {
    width: 32px;
    height: 32px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.8);
}

.testi-meta {
    display: flex;
    flex-direction: column;
}

.testi-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.testi-status {
    color: rgba(255,255,255,0.8);
    font-size: 10px;
}

.smartphone-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .smartphone-case {
        width: 280px;
        height: 560px;
    }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.faq-item summary { 
    padding: 24px; font-weight: 700; font-family: 'Syne'; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '＋'; transition: 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: var(--text-secondary); font-size: 0.95rem; }

/* ── Final CTA ── */
.section-final-cta .container { 
    background: var(--surface-dark); border-radius: var(--radius-lg); padding: 64px; color: #fff;
    overflow: hidden; position: relative;
}
.cta-layout-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.cta-content h2 { font-size: 3rem; margin-bottom: 16px; }
.cta-content p { font-size: 1.25rem; opacity: 0.8; margin-bottom: 32px; }
.cta-visual img { filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2)); }

@media (max-width: 768px) {
    .section-final-cta .container { padding: 40px 24px; }
    .cta-layout-wrapper { flex-direction: column; text-align: center; }
    .cta-content h2 { font-size: 2rem; }
}

/* ── Wholesale ── */
.wholesale-details { }
.btn-distributor { 
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 24px 32px; border-radius: var(--radius-lg); background: var(--surface-2);
    border: 2px dashed var(--brand-primary); transition: 0.3s;
}
.btn-distributor:hover { background: var(--surface-3); }
.distributor-arrow { font-size: 1.5rem; transition: 0.3s; }
.wholesale-details[open] .distributor-arrow { transform: rotate(90deg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer-main { background: #fff; padding-top: 80px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 3fr; gap: 64px; border-bottom: 1px solid var(--border); padding-bottom: 64px; }
.footer-brand p { margin-top: 16px; color: var(--text-muted); }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 24px; }
.footer-col a { display: block; margin-bottom: 12px; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); }
.footer-news h4 { margin-bottom: 12px; }
.footer-news p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.footer-form .input-group { display: flex; gap: 8px; }
.footer-form input { 
    flex-grow: 1; padding: 12px 16px; border-radius: var(--radius-sm); 
    border: 1px solid var(--border); background: var(--surface-1);
}
.footer-bottom { padding: 32px 0; font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Sticky Footer CTA (Mobile Only) ────────────────────────────────────── */
.sticky-footer-cta {
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: #fff; border-top: 1px solid var(--border);
    padding: 16px 24px; z-index: 90;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.05);
    transform: translateY(100%); transition: 0.4s ease;
}
body.is-scrolled .sticky-footer-cta { transform: translateY(0); }

.sticky-info { display: flex; flex-direction: column; }
.sticky-info .label { font-size: 0.65rem; font-weight: 800; color: var(--brand-purple); letter-spacing: 0.05em; }
.sticky-info .price { font-size: 1.1rem; font-weight: 800; font-family: 'Syne'; }

@media (min-width: 769px) { .sticky-footer-cta { display: none; } }

/* ── Floating WhatsApp ──────────────────────────────────────────────────── */
.float-wa {
    position: fixed; right: 24px; bottom: 90px; width: 64px; height: 64px;
    background: #25D366; color: #fff; border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4); z-index: 80;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.float-wa:hover { transform: scale(1.1) rotate(10deg); }

@media (max-width: 768px) { .float-wa { bottom: 100px; width: 56px; height: 56px; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius-md); font-weight: 700;
    font-size: 1rem; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    gap: 8px;
}
.btn-primary { 
    background: var(--brand-gradient); 
    color: #fff; 
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.4); 
}
.btn-primary:hover { transform: translateY(-3px); background: var(--brand-gradient-hover); }

.btn-secondary { 
    border: 2px solid var(--brand-primary); 
    color: var(--brand-primary); 
    background: transparent;
}
.btn-secondary:hover { background: rgba(212, 175, 55, 0.05); }

.btn-outline { 
    border: 1px solid var(--border); color: var(--text-primary); background: #fff;
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--brand-primary); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.btn-pulse { animation: ripple 2s infinite; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(233, 30, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 30, 140, 0); } }

/* ── Modal System (V2 High-End) ───────────────────────────────────────── */
/* All classes prefixed with 'sf-' for zero collision */

.sf-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.sf-overlay.active { opacity: 1; pointer-events: all; }

/* Modal — mobile: sheet desde abajo */
.sf-modal {
  background: #fff; width: 100%; max-width: 480px;
  max-height: 92dvh; overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 40px; position: relative;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
.sf-overlay.active .sf-modal { transform: translateY(0); }

/* Desktop: modal centrado */
@media (min-width: 520px) {
  .sf-overlay { align-items: center; padding: 16px; }
  .sf-modal { border-radius: 20px; transform: scale(0.96); }
  .sf-overlay.active .sf-modal { transform: scale(1); }
}

/* Boton cerrar */
.sf-close {
  position: absolute; top: 14px; right: 16px;
  font-size: 20px; color: #999; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 50%;
  min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.sf-close:hover { background: #f0f0f0; color: #333; }

/* Header del modal */
.sf-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sf-product-emoji { font-size: 2.2rem; line-height: 1; }
.sf-step-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #aaa; margin-bottom: 2px;
}
.sf-product-name {
  font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 700;
  color: #1a1a1a; line-height: 1.2; margin: 0;
}

/* Campos del formulario */
.sf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.sf-field label { font-size: 13px; font-weight: 600; color: #444; }
.sf-field input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 15px; color: #1a1a1a; background: #fafafa;
  min-height: 48px; outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: 'DM Sans', sans-serif;
}
.sf-field input:focus {
  outline: none;
}
.sf-field input:focus-visible {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.2);
  background: #fff;
}
.sf-field input.sf-input-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}
.sf-error { font-size: 12px; color: #e53e3e; min-height: 16px; display: block; font-weight: 500; }

/* Fila de 2 columnas (ciudad / depto) */
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .sf-row { grid-template-columns: 1fr; } }

/* Campo telefono con prefijo +57 */
.sf-phone-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  overflow: hidden; background: #fafafa;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sf-phone-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.sf-prefix {
  padding: 13px 12px 13px 14px; font-size: 15px; font-weight: 600;
  color: #555; background: #f0f0f0; border-right: 1px solid #e0e0e0;
  user-select: none; flex-shrink: 0;
}
.sf-phone-wrap input {
  border: none !important; box-shadow: none !important;
  border-radius: 0 !important; background: transparent !important; flex: 1;
}

/* Selector de cantidad */
.sf-qty-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  overflow: hidden; width: fit-content;
}
.sf-qty-btn {
  width: 48px; height: 48px; font-size: 22px; color: #555;
  background: #f5f5f5; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sf-qty-btn:hover { background: #eaeaea; }
.sf-qty-btn:active { background: #e0e0e0; }
.sf-qty-wrap input {
  width: 56px; text-align: center; font-size: 17px; font-weight: 700;
  border: none !important; border-radius: 0 !important;
  box-shadow: none !important; background: #fff !important;
  -moz-appearance: textfield;
}
.sf-qty-wrap input::-webkit-inner-spin-button,
.sf-qty-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Preview del subtotal en tiempo real */
.sf-summary-preview {
  background: #fff5f8; border: 1px solid #f9d9e2; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--brand-primary);
  font-weight: 600; margin-bottom: 20px; min-height: 44px;
}

/* Botones en el modal */
.sf-btn-primary {
  width: 100%; padding: 16px;
  background: var(--brand-gradient);
  color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  min-height: 52px; display: flex; align-items: center;
  justify-content: center; gap: 8px; margin-bottom: 10px;
  transition: opacity 0.18s ease, transform 0.15s ease;
  font-family: 'Syne', sans-serif;
}
.sf-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.sf-btn-primary:active { transform: translateY(0); }

.sf-btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); }

.sf-btn-secondary {
  width: 100%; padding: 13px; background: transparent;
  color: var(--brand-primary); border: 1.5px solid var(--brand-primary); border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px;
  transition: background 0.18s ease;
  font-family: 'DM Sans', sans-serif;
}
.sf-btn-secondary:hover { background: rgba(212, 175, 55, 0.05); }

/* Card de confirmacion (Paso 2) */
.sf-confirm-card {
  background: #fafafa; border: 1px solid #eee; border-radius: 14px;
  padding: 18px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.sf-confirm-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; }
.sf-confirm-row .sf-label { color: #888; font-weight: 500; }
.sf-confirm-row .sf-value { color: #1a1a1a; font-weight: 600; text-align: right; max-width: 55%; }
.sf-confirm-row.sf-total { border-top: 1px solid #eee; padding-top: 10px; margin-top: 4px; }
.sf-confirm-row.sf-total .sf-value { color: var(--brand-primary); font-size: 17px; font-weight: 800; font-family: 'Syne', sans-serif; }

.sf-confirm-note {
  font-size: 12px; color: #999; text-align: center;
  margin-bottom: 16px; line-height: 1.5;
}

/* Animacion shake en errores de validacion */
@keyframes sf-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-5px); }
  40%,80% { transform: translateX(5px); }
}
.sf-shake { animation: sf-shake 0.35s ease; }

/* ── Reveal Animations (Stability Reset) ────────────────────────────────── */
.reveal { 
    opacity: 1 !important; 
    transform: none !important;
}

.reveal.active { 
    opacity: 1 !important; 
    transform: none !important; 
}

/* Force critical visibility */
.hero-content, .hero-container, .section-padding {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.delay-1, .delay-2, .delay-3, .delay-4 { transition-delay: 0s !important; }

/* ── Logo Tagline (ADVANCED FORMULA) ───────────────────────────────────── */
.header-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}
.logo-tagline {
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
    font-family: 'DM Sans', sans-serif;
    opacity: 0.75;
    margin-top: -1px;
}

/* ── Tea Flavor Selector ────────────────────────────────────────────────── */
.flavor-selector {
    margin: 14px 0 18px;
}
.flavor-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.flavor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.flavor-btn {
    padding: 5px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-family: inherit;
    line-height: 1.6;
}
.flavor-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.flavor-btn.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}
.tea-selector-card .product-visual img {
    transition: opacity 0.25s ease, transform 0.5s ease;
}

/* ── Tea Card: full-width in grid ───────────────────────────────────────── */
.tea-selector-card {
    grid-column: 1 / -1;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ── USA CTA Button inside Bento ────────────────────────────────────────── */
.bento-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 20px;
    background: var(--brand-gradient);
    color: #fff !important;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    appearance: none;
}
.bento-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ── Bento: 3-col after removing Botánica card ──────────────────────────── */
.bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
    .bento-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bento-grid-3 { grid-template-columns: 1fr; }
}
