/* =====================================================
   Emisa Bow Boutique · Estilos de la tienda
   Paleta rosada y dorada · Modo claro y oscuro
   ===================================================== */

:root {
    /* Marca (acentos, iguales en ambos temas) */
    --pink-50:  #fff5fa;
    --pink-100: #ffe9f4;
    --pink-200: #ffd3e8;
    --pink-300: #ffb3d6;
    --pink-400: #ff8cc2;
    --pink-500: #ff5ea8;
    --pink-600: #f43f92;
    --pink-700: #c2185b;
    --pink-800: #9c1249;
    --gold-300: #f0d688;
    --gold-400: #e6c36b;
    --gold-500: #d4af37;
    --gold-600: #b8942a;
    --rose-gold: #b76e79;

    /* Tokens semánticos (cambian con el tema) */
    --bg:        radial-gradient(1200px 600px at 80% -10%, #ffe3f1 0%, transparent 60%),
                 radial-gradient(1000px 500px at -10% 20%, #fde7d9 0%, transparent 55%),
                 #fff5fa;
    --surface:   #ffffff;
    --surface-2: #fff5fa;
    --text:      #4a2c3a;
    --text-soft: #8a6577;
    --heading:   #9c1249;
    --link:      #c2185b;
    --border:    #ffe0ef;
    --border-2:  #ffd3e8;
    --header-bg: rgba(255,255,255,.82);
    --icon-bg:   linear-gradient(135deg, #ffe9f4, #ffd3e8);

    --shadow-sm: 0 2px 8px rgba(194,24,91,.08);
    --shadow:    0 10px 30px rgba(194,24,91,.12);
    --shadow-lg: 0 20px 50px rgba(194,24,91,.18);
    --radius:   18px;
    --radius-lg: 28px;
    --font-script: 'Great Vibes', 'Brush Script MT', cursive;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

:root[data-theme="dark"] {
    --bg:        radial-gradient(1200px 600px at 80% -10%, #3a1830 0%, transparent 60%),
                 radial-gradient(1000px 500px at -10% 20%, #2a1626 0%, transparent 55%),
                 #1c1019;
    --surface:   #271a23;
    --surface-2: #31212c;
    --text:      #f5e6ee;
    --text-soft: #cba9bc;
    --heading:   #ff9ecb;
    --link:      #ff8cc2;
    --border:    #432c39;
    --border-2:  #52384a;
    --header-bg: rgba(30,18,26,.86);
    --icon-bg:   linear-gradient(135deg, #3a2431, #4a2e3d);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
    --shadow:    0 12px 34px rgba(0,0,0,.4);
    --shadow-lg: 0 22px 54px rgba(0,0,0,.5);
    /* Remapeo de acentos usados como texto para que se lean en oscuro */
    --pink-700: #ff8cc2;
    --pink-800: #ff9ecb;
    --ink:      #f5e6ee;
    --ink-soft: #cba9bc;
    --pink-50:  #31212c;
    --pink-100: #3a2431;
}

/* Compat: variables antiguas apuntan a tokens */
:root { --ink: var(--text); --ink-soft: var(--text-soft); --cream: var(--surface-2); --white: var(--surface); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .4s ease, color .3s ease;
    min-height: 100vh;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-500); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía utilitaria ---------- */
.script {
    font-family: var(--font-script);
    background: linear-gradient(95deg, var(--gold-500), var(--gold-300) 40%, var(--gold-600));
    -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1;
}
.serif { font-family: var(--font-head); }
.text-pink { color: var(--pink-600); }
.text-center { text-align: center; }

/* =====================================================
   Barra de anuncios
   ===================================================== */
.announcement {
    background: linear-gradient(90deg, var(--pink-700), var(--pink-500), var(--gold-500));
    background-size: 200% 100%;
    animation: slideBg 12s linear infinite;
    color: #fff; text-align: center; font-size: 13.5px; letter-spacing: .3px;
    padding: 8px 16px; font-weight: 500;
}
@keyframes slideBg { 0%{background-position:0 0;} 100%{background-position:200% 0;} }

/* =====================================================
   Encabezado
   ===================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px 28px; max-width: 1280px; margin: 0 auto; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 13px; flex: none; }
.logo img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 14px rgba(255,94,168,.4); background: var(--surface); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .name { font-family: var(--font-script); font-size: 30px; }
.logo-text .sub { font-family: var(--font-head); font-size: 11px; letter-spacing: 3px; color: var(--rose-gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; margin: 0; }
.main-nav a {
    padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px;
    color: var(--text); display: inline-flex; align-items: center; gap: 7px; transition: all .22s;
    white-space: nowrap;
}
.header-actions { flex: none; }
.main-nav a:hover { background: var(--pink-100); color: var(--pink-700); transform: translateY(-1px); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--pink-100); color: var(--pink-700); border: none; cursor: pointer; transition: all .2s;
}
.icon-btn:hover { background: var(--pink-200); transform: translateY(-2px); }
.cart-badge {
    position: absolute; top: -4px; right: -4px; background: var(--pink-600); color: #fff; font-size: 11px;
    font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center;
    padding: 0 5px; box-shadow: 0 2px 6px rgba(244,63,146,.5);
}
.currency-select, .lang-select {
    border: 1.5px solid var(--border-2); background: var(--surface); border-radius: 999px;
    padding: 8px 10px; color: var(--pink-700); font-weight: 600; font-size: 13px; cursor: pointer;
}
.menu-toggle { display: none; }
.nav-mobile-only { display: none; }
.nav-langs { display: none; gap: 8px; padding: 12px 16px; margin-top: 8px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .nav-mobile-only { display: flex; } }
@media (max-width: 640px) { .nav-langs { display: flex; } }

/* Selector de idioma */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
    min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 130;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.lang-menu a:hover { background: var(--pink-50); color: var(--pink-700); }
.flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex: none; }

/* Mega-menú */
.has-mega { position: relative; }
.mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); padding: 16px; width: min(760px, 92vw);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    opacity: 0; visibility: hidden; transition: all .25s; z-index: 120;
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h4 { margin: 6px 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--pink-600); display:flex; align-items:center; gap:6px;}
.mega-col a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; font-size: 14px; color: var(--text); }
.mega-col a:hover { background: var(--pink-50); color: var(--pink-700); }
.mega-col a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-400); flex: none; }

/* =====================================================
   Botones
   ===================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px;
    border-radius: 999px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all .25s; text-decoration: none; font-family: inherit; }
.btn-primary { background: linear-gradient(95deg, var(--pink-600), var(--pink-500)); color: #fff; box-shadow: 0 10px 24px rgba(255,94,168,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,94,168,.55); color:#fff; }
.btn-gold { background: linear-gradient(95deg, var(--gold-500), var(--gold-400)); color: #4a3410; box-shadow: 0 10px 24px rgba(212,175,55,.4); }
.btn-gold:hover { transform: translateY(-2px); color:#4a3410; }
.btn-outline { background: var(--surface); color: var(--pink-700); border: 1.6px solid var(--border-2); }
.btn-outline:hover { background: var(--pink-50); border-color: var(--pink-500); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* =====================================================
   Hero
   ===================================================== */
.hero { position: relative; overflow: hidden; padding: 64px 0 84px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero-text { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
    color: var(--pink-700); font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-script); font-size: clamp(36px, 4.3vw, 56px); line-height: 1.4; margin: -.1em 0 2px;
    overflow-wrap: break-word; word-break: normal; padding: .1em .35em .3em .1em; max-width: 100%; overflow: visible; }
.hero h1 .script { display: inline; padding-right: .1em; }
.hero .tagline { font-family: var(--font-head); font-size: clamp(18px, 2.4vw, 24px); color: var(--rose-gold); margin: 4px 0 18px; }
.hero p.lead { font-size: 17px; color: var(--text-soft); max-width: 480px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual integrado (sin caja externa) */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-glow { position: absolute; inset: 6% 8%; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--pink-500) 45%, transparent), transparent 68%);
    filter: blur(26px); animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%,100%{opacity:.55;transform:scale(1);} 50%{opacity:.85;transform:scale(1.06);} }
.hero-visual .frame { position: relative; z-index: 1; width: 100%; max-width: 460px; aspect-ratio: 1/1;
    background: transparent; border: none; box-shadow: none; overflow: visible; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; border-radius: 22px;
    filter: drop-shadow(0 20px 44px color-mix(in srgb, var(--pink-700) 40%, transparent)); }
.hero-orbit { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--surface); color: var(--pink-600); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-orbit.orbit-1 { top: 6%; left: 4%; animation: floaty 4.5s ease-in-out infinite; color: var(--pink-500); }
.hero-orbit.orbit-2 { bottom: 14%; right: 2%; animation: floaty 5.5s ease-in-out infinite 1s; color: var(--gold-500); }
.hero-orbit.orbit-3 { top: 40%; right: -2%; width: 40px; height: 40px; animation: floaty 4s ease-in-out infinite .5s; color: var(--pink-600); }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }

/* Aviso rotativo */
.announcement { position: relative; min-height: 1.2em; }
.announcement[data-rotate="1"] { display: grid; }
.announcement[data-rotate="1"] .ann-item { grid-area: 1/1; opacity: 0; transition: opacity .5s; pointer-events: none; }
.announcement[data-rotate="1"] .ann-item.active { opacity: 1; }

.sparkle { position: absolute; pointer-events: none; opacity: .8; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{opacity:.3;transform:scale(.8);} 50%{opacity:1;transform:scale(1.2);} }

/* Animaciones reutilizables para SVG */
.spin-slow { transform-origin: center; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.12);} }
.wiggle { animation: wiggle 3.5s ease-in-out infinite; transform-origin: center; }
@keyframes wiggle { 0%,100%{transform:rotate(-5deg);} 50%{transform:rotate(5deg);} }
.floaty-svg { animation: floaty 5s ease-in-out infinite; }

/* Aparecer al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =====================================================
   Secciones / encabezados
   ===================================================== */
.section { padding: 66px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--pink-500); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 12.5px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; color: var(--heading); }
.section-head p { color: var(--text-soft); font-size: 16px; }
.divider-heart { display:flex; align-items:center; justify-content:center; gap:10px; margin:10px 0; color:var(--gold-500);}
.divider-heart::before, .divider-heart::after { content:''; height:1px; width:60px; background:linear-gradient(90deg,transparent,var(--gold-400)); }

/* Tarjetas de secciones */
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section-card { position: relative; border-radius: var(--radius-lg); padding: 34px 28px; overflow: hidden;
    background: var(--surface); box-shadow: var(--shadow); text-align: center; transition: all .3s; border: 1px solid var(--border); }
.section-card::before { content: ''; position: absolute; inset: 0; opacity: .12;
    background: radial-gradient(circle at 50% 0%, var(--card-color, var(--pink-500)), transparent 70%); }
.section-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.section-card .card-icon { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center;
    position: relative; background: var(--icon-bg); box-shadow: inset 0 0 0 2px var(--surface), var(--shadow-sm); }
.section-card:hover .card-icon svg { animation: pulse 1.4s ease-in-out infinite; }
.section-card h3 { font-family: var(--font-head); font-size: 23px; margin: 0 0 8px; color: var(--heading); }
.section-card p { color: var(--text-soft); font-size: 14.5px; min-height: 48px; }
.section-card .card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--pink-600); }
.section-card:hover .card-link { gap: 10px; }

/* =====================================================
   Grid de productos
   ===================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: all .28s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag { position: absolute; top: 12px; left: 12px; background: var(--pink-600); color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 11px; border-radius: 999px; letter-spacing: .5px; }
.product-tag.sale { background: var(--gold-500); color: #4a3410; }
.wish-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none; cursor: pointer; display: grid; place-items: center; color: var(--pink-600); transition: all .2s; }
.wish-btn:hover { background: #fff; transform: scale(1.12); }
.wish-btn.active { color: var(--pink-600); }
.wish-btn.active svg { fill: var(--pink-600); animation: pop .3s ease; }
@keyframes pop { 0%{transform:scale(.6);} 60%{transform:scale(1.3);} 100%{transform:scale(1);} }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11.5px; color: var(--pink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.product-body h3 { font-size: 15.5px; margin: 5px 0 10px; color: var(--text); font-weight: 600; line-height: 1.35; }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--pink-600); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-price .now { font-size: 19px; font-weight: 700; color: var(--pink-700); }
.product-price .was { font-size: 13px; color: var(--text-soft); text-decoration: line-through; }
.product-actions { margin-top: 14px; }
.stars { color: var(--gold-500); font-size: 13px; letter-spacing: 1px; display:inline-flex; gap:1px; }

/* =====================================================
   Beneficios
   ===================================================== */
.benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.benefit { background: var(--surface); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.benefit .b-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--icon-bg); color: var(--pink-700); }
.benefit:hover .b-icon svg { animation: wiggle 1s ease-in-out; }
.benefit h4 { margin: 0 0 4px; font-size: 15px; color: var(--heading); }
.benefit p { margin: 0; font-size: 13px; color: var(--text-soft); }

/* =====================================================
   Colaboraciones
   ===================================================== */
.collab { background: linear-gradient(135deg, var(--pink-700), var(--pink-500)); border-radius: var(--radius-lg); color: #fff; padding: 50px; position: relative; overflow: hidden; }
.collab::after { content:''; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.12); }
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.collab h2 { font-family: var(--font-head); font-size: 32px; margin: 0 0 12px; display:flex; align-items:center; gap:10px; }
.collab p { opacity: .95; font-size: 15.5px; }
.collab .form-card { background: var(--surface); border-radius: var(--radius); padding: 26px; color: var(--text); box-shadow: var(--shadow-lg); }

/* =====================================================
   Formularios
   ===================================================== */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; color: var(--heading); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-2); border-radius: 12px;
    font-family: inherit; font-size: 14.5px; color: var(--text); background: var(--surface); transition: all .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pink-500); box-shadow: 0 0 0 3px var(--pink-100); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* =====================================================
   Pie de página
   ===================================================== */
.site-footer { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 56px 0 40px; }
.footer-brand .script { font-size: 40px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; margin: 10px 0 18px; max-width: 280px; }
.footer h5 { font-family: var(--font-head); color: var(--heading); font-size: 16px; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: var(--text-soft); font-size: 14px; }
.footer ul li a:hover { color: var(--pink-600); }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
    color: var(--pink-700); box-shadow: var(--shadow-sm); transition: all .25s; border: 1px solid var(--border); }
.social-row a:hover { transform: translateY(-3px); color: #fff; background: linear-gradient(135deg,var(--pink-600),var(--pink-500)); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--text-soft); font-size: 13px; }
.footer-bottom .heart-inline { display:inline-flex; vertical-align:middle; color:var(--pink-500); }
.pay-icons { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; align-items:center; }
.pay-icons span { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:5px 9px; font-size:11px; font-weight:600; color:var(--text-soft); }

/* =====================================================
   Carrito lateral
   ===================================================== */
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--surface);
    box-shadow: -12px 0 40px rgba(194,24,91,.2); z-index: 200; transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-overlay { position: fixed; inset: 0; background: rgba(30,16,24,.5); z-index: 199; opacity: 0; visibility: hidden; transition: all .3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-head { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { margin: 0; font-family: var(--font-head); color: var(--heading); display:flex; align-items:center; gap:8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; }
.cart-line .info { flex: 1; }
.cart-line .info h4 { margin: 0 0 4px; font-size: 14px; }
.cart-foot { padding: 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; color: var(--heading); margin-bottom: 14px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: var(--surface); color: var(--pink-700); cursor: pointer; font-size: 16px; }
.qty span { width: 34px; text-align: center; font-weight: 600; font-size: 14px; }
.qty input { width: 40px; text-align:center; border:none; font-weight:600; background:var(--surface); color:var(--text); }

/* =====================================================
   Migas / cabecera de categoría
   ===================================================== */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 13.5px; padding: 20px 0 0; }
.breadcrumb a { color: var(--pink-600); }
.cat-hero { background: linear-gradient(135deg, var(--pink-100), var(--pink-200)); border-radius: var(--radius-lg); padding: 40px; margin: 18px 0 30px; display: flex; align-items: center; gap: 22px; }
.cat-hero .ch-icon { width: 80px; height: 80px; border-radius: 22px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cat-hero h1 { font-family: var(--font-head); color: var(--heading); margin: 0 0 4px; font-size: 32px; }
.cat-hero p { margin: 0; color: var(--text-soft); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: var(--surface);
    border: 1.5px solid var(--border-2); color: var(--pink-700); font-size: 13.5px; font-weight: 500; transition: all .2s; }
.chip:hover, .chip.active { background: linear-gradient(95deg,var(--pink-600),var(--pink-500)); color: #fff; border-color: transparent; }

/* =====================================================
   Página de producto
   ===================================================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 26px 0 50px; }
.pd-gallery .main-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; background: var(--surface-2); }
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap:wrap; }
.pd-thumbs img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.pd-thumbs img:hover, .pd-thumbs img.active { border-color: var(--pink-500); }
.pd-info h1 { font-family: var(--font-head); font-size: 32px; color: var(--heading); margin: 6px 0 10px; }
.pd-price { font-size: 30px; font-weight: 700; color: var(--pink-700); margin: 14px 0; }
.pd-price .was { font-size: 18px; color: var(--text-soft); text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.pd-desc { color: var(--text-soft); font-size: 15px; margin: 16px 0; }
.pd-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0; font-size: 13.5px; color: var(--text-soft); }
.pd-meta span { display:inline-flex; align-items:center; gap:6px; }
.pd-buy { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.pill-info { display:flex; gap:14px; flex-wrap:wrap; margin-top:20px; }
.pill-info div { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-soft); background:var(--surface-2); padding:10px 14px; border-radius:12px; }

/* Reseñas */
.reviews-section { margin: 30px 0 60px; }
.reviews-head { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.rating-big { font-size:40px; font-weight:700; color:var(--pink-700); line-height:1; }
.review-card { background: var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-bottom:14px; box-shadow:var(--shadow-sm); }
.review-card .rc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.review-card .rc-name { font-weight:600; color:var(--heading); }
.review-card .rc-date { font-size:12px; color:var(--text-soft); }
.rating-input { display:inline-flex; flex-direction:row-reverse; gap:4px; }
.rating-input input { display:none; }
.rating-input label { cursor:pointer; color:var(--border-2); transition:color .15s; }
.rating-input input:checked ~ label,
.rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold-500); }

/* Cupón */
.coupon-box { display:flex; gap:8px; margin:14px 0; }
.coupon-box input { flex:1; padding:11px 14px; border:1.5px solid var(--border-2); border-radius:12px; background:var(--surface); color:var(--text); }

/* Toggle de tema */
.theme-toggle svg { transition: transform .4s ease; }
.theme-toggle:hover svg { transform: rotate(35deg); }

/* Alertas */
.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; font-weight: 500; display:flex; align-items:center; gap:10px; }
.flash.success { background: rgba(19,122,58,.12); color: #1e9e54; }
.flash.error { background: rgba(176,0,32,.12); color: #e05260; }
.flash.info { background: var(--pink-100); color: var(--pink-800); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-soft); }
.empty-state svg { opacity: .55; margin-bottom: 16px; color: var(--pink-400); }

/* =====================================================
   Cuenta del cliente
   ===================================================== */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-bottom: 60px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; align-self: start; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; color: var(--text); font-weight: 500; transition: all .2s; }
.account-nav a:hover { background: var(--pink-50); color: var(--pink-700); }
.account-nav a.active { background: linear-gradient(95deg, var(--pink-600), var(--pink-500)); color: #fff; box-shadow: 0 8px 18px rgba(255,94,168,.35); }
.acc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 18px; }
.acc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.acc-panel-head h3 { margin: 0; font-family: var(--font-head); color: var(--heading); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.acc-table { width: 100%; border-collapse: collapse; }
.acc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-soft); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.acc-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.acc-table tr:last-child td { border-bottom: none; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: all .25s; display: block; }
.mini-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-stat .ms-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--icon-bg); color: var(--pink-700); margin-bottom: 10px; }
.mini-stat b { display: block; font-size: 26px; color: var(--heading); line-height: 1; }
.mini-stat span:last-child { font-size: 13px; color: var(--text-soft); }

/* Login / registro */
.auth-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.auth-tab { padding: 11px 26px; border-radius: 999px; border: 1.5px solid var(--border-2); background: var(--surface); color: var(--pink-700); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14.5px; }
.auth-tab.active { background: linear-gradient(95deg, var(--pink-600), var(--pink-500)); color: #fff; border-color: transparent; }
.auth-grid { max-width: 440px; margin: 0 auto 60px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; }

/* Menú de cuenta en el encabezado */
.account-menu { position: relative; }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 130; }
.account-menu:hover .account-dropdown, .account-menu:focus-within .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.account-dropdown a:hover { background: var(--pink-50); color: var(--pink-700); }
.account-dropdown .divider { height: 1px; background: var(--border); margin: 4px 0; }

/* =====================================================
   Responsivo
   ===================================================== */
/* ---------- Tablet grande / laptop pequeña ---------- */
@media (max-width: 1080px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .container { padding: 0 24px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .hero { padding: 48px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 26px; }
    .hero-cta { justify-content: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-visual { min-height: 320px; order: -1; }
    .hero-visual .frame { max-width: 360px; }
    .sections-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .section-card { padding: 26px 20px; }
    .section-card .card-icon { width: 76px; height: 76px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits { grid-template-columns: repeat(2,1fr); }
    .collab-grid, .product-detail, .footer-top { grid-template-columns: 1fr; }
    .footer-top { gap: 26px; }
    .section { padding: 48px 0; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 6px; }
    .account-nav a { white-space: nowrap; flex: none; }
    /* Menú a la derecha se convierte en cajón */
    .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 82%; max-width: 340px;
        background: var(--surface); flex-direction: column; align-items: stretch; padding: 78px 18px 24px;
        transform: translateX(100%); transition: transform .3s; box-shadow: -10px 0 40px rgba(0,0,0,.28); z-index: 150; overflow-y: auto; gap: 2px; }
    .main-nav.open { transform: translateX(0); }
    .main-nav a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
    .has-mega .mega { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 4px 0 8px 12px; display: none; }
    .has-mega.expanded .mega { display: grid; }
    .menu-toggle { display: grid; }
    .field-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Móvil grande ---------- */
@media (max-width: 640px) {
    .header-inner { gap: 8px; padding: 10px 14px; }
    .logo img { width: 44px; height: 44px; }
    .logo-text .name { font-size: 24px; }
    .logo-text .sub { font-size: 9px; letter-spacing: 2px; }
    .header-actions { gap: 5px; }
    .icon-btn { width: 38px; height: 38px; }
    .currency-select { padding: 7px 8px; font-size: 12px; }
    /* En móvil, idioma y moneda van dentro del menú para no saturar */
    .lang-switch { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sections-grid { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: repeat(2,1fr); }
    .field-row { grid-template-columns: 1fr; }
    .collab { padding: 26px 20px; }
    .cat-hero { padding: 26px 20px; flex-direction: column; text-align: center; gap: 14px; }
    .section-head h2 { font-size: 26px; }
    .hero h1 { font-size: clamp(38px, 11vw, 52px); }
    .pd-buy { flex-wrap: wrap; }
    .breadcrumb { flex-wrap: wrap; }
}

/* ---------- Móvil pequeño ---------- */
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: 1fr; }
    .logo-text .sub { display: none; }
    .currency-select { display: none; }
    .btn { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, .spin-slow, .pulse, .wiggle, .floaty-svg, .sparkle, .announcement, .hero-glow, .hero-orbit { animation: none !important; }
}
