/* ════════════════════════════════════════════════════════════
   Uniformes Mercury — estilos base
   Paleta: Navy #19213C · Teal #6FC7DA · White #FFFFFF
   Tipografías: Gilroy (títulos/UI) · Deca Serif New (cuerpo) · Brittany (acentos)
   ════════════════════════════════════════════════════════════ */

/* ── Tipografías de marca (TTF/OTF; se optimizarán a woff2) ─── */
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-Light.ttf") format("truetype");    font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-Regular.ttf") format("truetype");  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-Medium.ttf") format("truetype");   font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-SemiBold.ttf") format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-Bold.ttf") format("truetype");     font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Gilroy"; src:url("/assets/fonts/Gilroy-ExtraBold.ttf") format("truetype");font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:"Deca Serif New"; src:url("/assets/fonts/DecaSerifNew.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Brittany"; src:url("/assets/fonts/BrittanySignature.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }

:root {
    --navy: #19213C;
    --navy-2: #233056;
    --teal: #6FC7DA;
    --teal-dark: #4aa9bf;
    --white: #FFFFFF;
    --ink: #232a3d;
    --muted: #6b7283;
    --line: #e7e9ef;
    --bg-alt: #f5f8fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(25, 33, 60, .08);
    --shadow-lg: 0 22px 50px rgba(25, 33, 60, .16);
    --font-title: "Gilroy", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: "Deca Serif New", Georgia, "Times New Roman", serif;
    --font-script: "Brittany", "Segoe Script", cursive;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -.01em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

/* ── Animación de entrada al hacer scroll ────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-title); font-weight: 600; font-size: 15px;
    padding: 14px 30px; border-radius: 999px; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
    border: 2px solid transparent;
}
.btn--primary { background: var(--teal); color: var(--navy); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(111, 199, 218, .45); }
.btn--ghost { border-color: currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Barra de anuncio ────────────────────────────────────── */
.announce-bar { text-align: center; color: #fff; font-family: var(--font-title); font-size: 13px; font-weight: 500; letter-spacing: .05em; padding: 9px 16px; }
.announce-bar a { color: #fff; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.navbar--scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(25, 33, 60, .06); }
.navbar__inner { max-width: 1200px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; gap: 24px; }
.navbar__logo img { height: 30px; width: auto; }
.navbar__menu { display: flex; gap: 28px; margin-left: 14px; }
.navbar__menu a { font-family: var(--font-title); font-weight: 500; font-size: 15px; color: var(--navy); position: relative; padding: 4px 0; }
.navbar__menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width .28s var(--ease); }
.navbar__menu a:hover::after { width: 100%; }
.navbar__icons { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 20px; color: var(--navy); }
.navbar__icons a { transition: color .2s ease; }
.navbar__icons a:hover { color: var(--teal-dark); }
.navbar__cart { position: relative; }
.navbar__cart-count { position: absolute; top: -8px; right: -10px; background: var(--teal); color: var(--navy); font-family: var(--font-title); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.navbar__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 4px; }
.navbar__burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, var(--navy-2) 0%, var(--navy) 60%); color: #fff; padding: 110px 24px 120px; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 199, 218, .28), transparent 70%); pointer-events: none; }
.hero__content { position: relative; max-width: 1200px; margin: 0 auto; z-index: 1; }
.hero__script { font-family: var(--font-script); color: var(--teal); font-size: clamp(30px, 4vw, 46px); line-height: 1; display: block; margin-bottom: 6px; }
.hero__title { color: #fff; font-weight: 800; font-size: clamp(36px, 5.4vw, 64px); max-width: 15ch; margin-bottom: 18px; }
.hero__sub { color: #c8d0e6; font-size: 18px; max-width: 48ch; margin: 0 0 32px; }

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.section__sub { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #e9eef6, #d3e1ef); display: flex; align-items: flex-end; padding: 22px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(25, 33, 60, .35), transparent 55%); opacity: 0; transition: opacity .3s ease; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover::before { opacity: 1; }
.cat-card__name { position: relative; font-family: var(--font-title); font-weight: 700; font-size: 21px; color: var(--navy); transition: color .3s ease; }
.cat-card:hover .cat-card__name { color: #fff; }

/* Propuesta de valor */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value-card__icon { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--teal-dark); }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Muestras de color */
.swatches { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; max-width: 760px; margin: 0 auto; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); cursor: pointer; transition: transform .18s var(--ease); }
.swatch:hover { transform: scale(1.22); }

/* Placeholder / errores */
.placeholder { text-align: center; padding: 50px 0; }
.placeholder__tag { display: inline-block; background: var(--teal); color: var(--navy); font-family: var(--font-title); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.placeholder h1 { font-size: 34px; margin-bottom: 12px; }
.placeholder p { color: var(--muted); margin-bottom: 26px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: #c0c7de; }
.footer__cols { max-width: 1200px; margin: 0 auto; padding: 60px 24px 34px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; }
.footer__logo { height: 42px; margin-bottom: 18px; }
.footer__brand p { font-size: 14.5px; max-width: 38ch; line-height: 1.7; }
.footer__col h4 { font-family: var(--font-title); color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; color: #c0c7de; font-size: 14.5px; padding: 6px 0; transition: color .18s ease, padding-left .18s ease; }
.footer__col a:hover { color: var(--teal); padding-left: 4px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 24px; text-align: center; font-size: 13px; color: #8a92b0; }

/* ── Botón flotante WhatsApp ─────────────────────────────── */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s var(--ease); animation: wa-pulse 2.6s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45); } 50% { box-shadow: 0 8px 32px rgba(37, 211, 102, .72); } }

/* ── Menú móvil ──────────────────────────────────────────── */
.menu-overlay { display: none; }
@media (max-width: 860px) {
    .navbar__burger { display: flex; }
    .navbar__menu { position: fixed; top: 0; left: 0; height: 100vh; width: 80%; max-width: 320px; background: #fff; flex-direction: column; gap: 0; padding: 84px 28px; transform: translateX(-100%); transition: transform .32s var(--ease); z-index: 70; margin: 0; box-shadow: 30px 0 60px rgba(0, 0, 0, .15); }
    body.menu-open .navbar__menu { transform: translateX(0); }
    .navbar__menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    body.menu-open .menu-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 65; }
    /* La hamburguesa se transforma en "X" al abrir (feedback visual) */
    body.menu-open .navbar__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.menu-open .navbar__burger span:nth-child(2) { opacity: 0; }
    body.menu-open .navbar__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .hero { padding: 84px 24px 90px; }
    .value-grid { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
    .footer__brand { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════════
   Tienda / catálogo
   ════════════════════════════════════════════════════════════ */
.shop-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 40px 0; }
.shop-hero__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.shop-hero__sub { color: var(--muted); margin-top: 6px; }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 36px 24px 72px; }

.shop-filters form { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.shop-filters__group { margin-bottom: 16px; }
.shop-filters__group label { display: block; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.shop-filters__group input, .shop-filters__group select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); font-size: 14px; background: #fff; }
.shop-filters__group input:focus, .shop-filters__group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111, 199, 218, .22); }
.shop-filters__clear { display: block; text-align: center; margin-top: 12px; font-family: var(--font-title); font-size: 13px; color: var(--muted); }
.shop-filters__clear:hover { color: var(--teal-dark); }
/* Estos solo aparecen en móvil (cajón de filtros) */
.shop-filters__head { display: none; align-items: center; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--navy); }
.shop-filters__close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.shop-filterbtn { display: none; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: var(--font-title); font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; }
.shop-overlay { display: none; }

.shop-results__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-family: var(--font-title); color: var(--muted); font-size: 14px; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-title); font-size: 14px; background: #fff; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shop-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.shop-empty h3 { color: var(--navy); margin-bottom: 8px; }

/* ── Tarjeta de producto ─────────────────────────────────── */
.pc { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pc__media { position: relative; aspect-ratio: 4 / 5; background: #eef1f6; overflow: hidden; }
.pc__svg, .pc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.pc:hover .pc__svg, .pc:hover .pc__media img { transform: scale(1.05); }
.pc__ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-script); color: var(--teal); font-size: 26px; }
.pc__badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #e2574c; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.pc__info { padding: 16px 16px 20px; }
.pc__name { font-size: 16px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.pc__price { font-family: var(--font-title); display: flex; align-items: baseline; gap: 8px; }
.pc__now { font-weight: 700; color: var(--navy); font-size: 16px; }
.pc__old { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }

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

    /* Toolbar en móvil: que no se apretuje */
    .shop-results__bar { flex-wrap: wrap; gap: 12px; }
    .shop-sort { width: 100%; }
    .shop-sort select { flex: 1; }
    /* Cajón lateral de filtros */
    .shop-filterbtn { display: inline-flex; margin-right: auto; }
    .shop-filters { position: fixed; top: 0; left: 0; height: 100vh; width: 85%; max-width: 340px; z-index: 80; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; }
    body.filters-open .shop-filters { transform: translateX(0); }
    .shop-filters form { position: static; border: 0; border-radius: 0; min-height: 100%; box-shadow: 30px 0 60px rgba(0, 0, 0, .15); }
    .shop-filters__head { display: flex; }
    body.filters-open .shop-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 75; }
}
@media (max-width: 520px) {
    .shop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .pc__info { padding: 12px; }
    .pc__name { font-size: 14.5px; }
}

/* ════════════════════════════════════════════════════════════
   Ficha de producto (PDP)
   ════════════════════════════════════════════════════════════ */
.breadcrumb { padding: 20px 0 0; font-family: var(--font-title); font-size: 13.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb strong { color: var(--navy); font-weight: 600; }

.pdp { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "gallery head" "gallery info"; column-gap: 44px; row-gap: 0; padding: 24px 24px 64px; align-items: start; }
.pdp-head { grid-area: head; }
.pdp-gallery { grid-area: gallery; }
.pdp-info { grid-area: info; }

/* Galería */
.pdp-gallery { position: sticky; top: 96px; }
.pdp-main { background: #f3f5f9; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.pdp-main .gp-view, .pdp-main .gp-stage, .pdp-photo { width: 100%; height: 100%; }
.pdp-photo { object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 66px; height: 82px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #f3f5f9; cursor: pointer; padding: 0; transition: border-color .2s; }
.pdp-thumb.is-active { border-color: var(--navy); }
.pdp-thumb svg, .pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info */
.pdp-cat { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--teal-dark); margin: 0 0 8px; }
.pdp-name { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; }
.pdp-price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--font-title); }
.pdp-now { font-size: 26px; font-weight: 700; color: var(--navy); }
.pdp-old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pdp-tag { background: #e2574c; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pdp-desc { color: #4a5163; line-height: 1.8; }
.pdp-description { border-top: 1px solid var(--line); padding: 40px 0 10px; }
.pdp-description__title { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.pdp-description .pdp-desc { font-size: 16px; }

.pdp-block { padding: 18px 0; border-top: 1px solid var(--line); }
.pdp-label { font-family: var(--font-title); font-weight: 600; color: var(--navy); font-size: 14.5px; }
.pdp-label span { font-weight: 500; color: var(--muted); }
.pdp-label-row { display: flex; align-items: center; justify-content: space-between; }
.pdp-link { background: none; border: 0; color: var(--teal-dark); font-family: var(--font-title); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.pdp-link:hover { text-decoration: underline; }

.pdp-swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.pdp-sw, .pdp-apl { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pdp-sw:hover, .pdp-apl:hover { transform: scale(1.12); }
.pdp-sw.is-active, .pdp-apl.is-active { box-shadow: 0 0 0 2px var(--navy); transform: scale(1.08); }

.pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp-size { min-width: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-family: var(--font-title); font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; transition: .15s; }
.pdp-size:hover { border-color: var(--navy); }
.pdp-size.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pdp-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-family: var(--font-title); font-size: 14px; color: var(--navy); cursor: pointer; }
.pdp-check input { width: auto; }
.pdp-medidas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pdp-medidas label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-family: var(--font-title); }
.pdp-medidas input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-title); }
.pdp-form input[type=file] { font-size: 13px; }
.pdp-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pdp-notas { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); font-size: 14.5px; resize: vertical; }
.pdp-notas:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111, 199, 218, .22); }

.pdp-actions { display: flex; gap: 12px; margin-top: 24px; }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pdp-qty button { width: 40px; height: 46px; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--navy); }
.pdp-qty button:hover { background: var(--bg-alt); }
.pdp-qty input { width: 46px; height: 46px; border: 0; text-align: center; font-family: var(--font-title); font-weight: 600; font-size: 16px; -moz-appearance: textfield; }
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add { flex: 1; justify-content: center; }
.pdp-warning { margin-top: 18px; font-size: 12.8px; color: #8a6d3b; background: #fcf6e8; border: 1px solid #f0e3c0; border-radius: 10px; padding: 10px 12px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(25, 33, 60, .55); }
.modal__box { position: relative; max-width: 640px; margin: 6vh auto; background: #fff; border-radius: 16px; padding: 30px; box-shadow: var(--shadow-lg); max-height: 86vh; display: flex; flex-direction: column; }
.modal__x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__box h2 { font-size: 22px; margin-bottom: 6px; }
.modal__scroll { overflow: auto; margin-top: 14px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: var(--font-title); }
.guide-table th { background: var(--navy); color: #fff; padding: 9px 10px; text-align: center; font-weight: 600; font-size: 12.5px; }
.guide-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.guide-table tr:nth-child(even) td { background: var(--bg-alt); }

/* Aviso flash / toast */
.flash-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 120; background: var(--navy); color: #fff; font-family: var(--font-title); font-size: 14.5px; padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); }
.flash-toast--error { background: #c0392b; }
.flash-toast--success { background: #137a43; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 860px) {
    .pdp { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "head" "gallery" "info"; row-gap: 24px; }
    .pdp-gallery { position: static; }
    .pdp-head { margin-bottom: 4px; }
    .pdp-head .pdp-price { margin-bottom: 0; }
}
@media (max-width: 520px) {
    .pdp-medidas { grid-template-columns: 1fr; }
    .pdp-actions { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════
   Carrito
   ════════════════════════════════════════════════════════════ */
.cart-wrap { padding: 36px 24px 72px; }
.cart-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 26px; }
.cart-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.cart-empty p { margin-bottom: 18px; font-size: 17px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cart-item__media { width: 84px; height: 104px; border-radius: 10px; overflow: hidden; background: #eef1f6; display: grid; place-items: center; }
.cart-item__media svg { width: 100%; height: 100%; }
.cart-item__swatch { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.cart-item__ph { font-family: var(--font-script); color: var(--teal); font-size: 18px; }
.cart-item__name { font-family: var(--font-title); font-weight: 700; color: var(--navy); font-size: 16px; }
.cart-item__meta { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.cart-item__meta li { margin: 2px 0; }
.cart-item__price { margin-top: 8px; font-family: var(--font-title); font-size: 13px; color: var(--muted); }
.cart-item__actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-qty input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-family: var(--font-title); font-weight: 600; }
.cart-item__total { font-family: var(--font-title); font-weight: 700; color: var(--navy); font-size: 16px; }
.cart-remove { background: none; border: 0; color: var(--muted); font-family: var(--font-title); font-size: 13px; cursor: pointer; text-decoration: underline; }
.cart-remove:hover { color: #c0392b; }

.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: sticky; top: 96px; }
.cart-summary h2 { font-size: 18px; margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); margin-bottom: 12px; }
.cart-summary__row strong { font-size: 18px; color: var(--navy); }
.cart-summary__muted { color: var(--muted); font-size: 13.5px; }
.cart-checkout { width: 100%; justify-content: center; margin-top: 10px; }
.cart-continue { display: block; text-align: center; margin-top: 14px; font-family: var(--font-title); font-size: 14px; color: var(--muted); }
.cart-continue:hover { color: var(--teal-dark); }

@media (max-width: 760px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item__actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
}

/* ════════════════════════════════════════════════════════════
   Checkout
   ════════════════════════════════════════════════════════════ */
.co-wrap { padding: 36px 24px 72px; }
.co-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 26px; }
.co-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 20px; }
.co-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.co-panel h2 { font-size: 18px; margin-bottom: 16px; }
.co-panel label { display: block; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--navy); margin: 12px 0 5px; }
.co-panel input, .co-panel select, .co-panel textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); font-size: 15px; background: #fff; }
.co-panel input:focus, .co-panel select:focus, .co-panel textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111, 199, 218, .25); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-pay { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 10px; cursor: pointer; font-family: var(--font-title); font-size: 14px; transition: border-color .15s; }
.co-pay:hover { border-color: var(--teal); }
.co-pay input { width: auto; flex: 0 0 auto; }
.co-pay__txt { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.35; }
.co-pay__logo { flex: 0 0 auto; max-height: 38px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.co-pay input:checked + .co-pay__txt { color: var(--navy); font-weight: 600; }

.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: sticky; top: 96px; }
.co-summary h2 { font-size: 18px; margin-bottom: 14px; }
.co-items { list-style: none; padding: 0; margin: 0 0 16px; font-family: var(--font-title); font-size: 13.5px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.co-items__name em { color: var(--muted); font-style: normal; }
.co-coupon { display: flex; gap: 8px; }
.co-coupon input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); }
.co-coupon button { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 600; cursor: pointer; }
.co-coupon-msg { font-size: 12.5px; margin: 8px 0 0; min-height: 16px; }
.co-coupon-msg.is-ok { color: #137a43; }
.co-coupon-msg.is-err { color: #c0392b; }
.co-sum-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); padding: 9px 0; border-top: 1px solid var(--line); }
.co-sum-desc { color: #137a43; }
.co-sum-total { font-size: 18px; }
.co-sum-total strong { font-size: 20px; color: var(--navy); }
.co-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-family: var(--font-title); font-size: 14px; color: var(--navy); cursor: pointer; }
.co-check input { width: auto; }
.co-empresa { margin-top: 12px; }
.co-terms { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-family: var(--font-title); font-size: 13px; color: var(--ink); line-height: 1.4; }
.co-terms input { width: auto; margin-top: 2px; }
.co-terms a { color: var(--teal-dark); text-decoration: underline; }
.co-pay-btn { width: 100%; justify-content: center; margin-top: 16px; }
.co-back { display: block; text-align: center; margin-top: 12px; font-family: var(--font-title); font-size: 14px; color: var(--muted); }
.co-back:hover { color: var(--teal-dark); }

@media (max-width: 760px) {
    .co-layout { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .co-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   Páginas de contenido (Nosotros, Contacto, Legales)
   ════════════════════════════════════════════════════════════ */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 70px 24px; text-align: center; }
.page-hero__script { font-family: var(--font-script); color: var(--teal); font-size: clamp(26px, 3.5vw, 38px); display: block; margin-bottom: 4px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.page-hero p { color: #c8d0e6; max-width: 60ch; margin: 12px auto 0; }

.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; color: #3a4255; line-height: 1.8; }
.prose h2 { color: var(--navy); font-size: 22px; margin: 32px 0 12px; }
.prose h3 { color: var(--navy); font-size: 17px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--navy); }
.prose .updated { color: var(--muted); font-size: 13.5px; }

/* Nosotros */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.about-value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.about-value h3 { font-size: 17px; margin-bottom: 8px; }
.about-value p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Sedes / contacto */
.sedes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.sede { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.sede h3 { font-size: 17px; margin-bottom: 6px; }
.sede p { color: var(--muted); font-size: 14px; margin: 0 0 14px; line-height: 1.6; }
.sede a.btn { font-size: 13px; padding: 9px 18px; }
.contacto-cta { text-align: center; padding: 0 24px 60px; }

@media (max-width: 760px) {
    .about-values, .sedes { grid-template-columns: 1fr; }
}

/* Calidad y telas */
.telas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 36px; }
.tela-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.tela-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.tela-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.tela-card ul { margin: 0 0 16px; padding-left: 18px; font-size: 13.5px; }
.tela-card .btn { font-size: 13px; padding: 9px 16px; }
.tabla-scroll { overflow-x: auto; margin-bottom: 8px; }
@media (max-width: 680px) { .telas-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   Cuenta de cliente
   ════════════════════════════════════════════════════════════ */
.auth-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth-card h2 { font-size: 20px; margin-bottom: 16px; }
.auth-card label { display: block; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--navy); margin: 12px 0 5px; }
.auth-card input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); font-size: 15px; }
.auth-card input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111, 199, 218, .25); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 20px; }

.cuenta { max-width: 920px; margin: 0 auto; padding: 28px 24px 72px; }
.cuenta__head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.cuenta-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-bottom: 22px; }
.cuenta-panel h2 { font-size: 18px; margin-bottom: 14px; }
.cuenta-muted { color: var(--muted); }
.cuenta-table { width: 100%; border-collapse: collapse; font-family: var(--font-title); font-size: 14px; }
.cuenta-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.cuenta-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.cuenta-est { font-size: 12px; font-weight: 600; background: var(--bg-alt); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.cuenta-form label { display: block; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--navy); margin: 0 0 5px; }
.cuenta-form input, .cuenta-form select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-title); font-size: 15px; }
.cuenta-form input:focus, .cuenta-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111, 199, 218, .25); }
.cuenta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cuenta-form .btn { margin-top: 8px; }
@media (max-width: 680px) { .auth-wrap { grid-template-columns: 1fr; } .cuenta-row { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   Favoritos y reseñas
   ════════════════════════════════════════════════════════════ */
.pdp-fav { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: var(--font-title); font-size: 14px; color: var(--muted); cursor: pointer; margin-bottom: 18px; transition: .15s; }
.pdp-fav:hover, .pdp-fav.is-fav { border-color: #e2574c; color: #e2574c; }
.pdp-fav__icon { font-size: 16px; }

.pc__fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #9aa2bd; font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.pc__fav:hover { color: #e2574c; transform: scale(1.1); }
.pc__fav.is-fav { color: #e2574c; }

.reviews-section { background: var(--bg-alt); }
.reviews-avg { font-size: 16px; color: var(--teal-dark); margin-left: 8px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.review__stars { color: #f3b53f; letter-spacing: 2px; }
.review p { margin: 8px 0 0; color: #3a4255; }
.review__reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-alt); border-radius: 8px; font-size: 14px; color: var(--navy); }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 22px; }
.review-form h3 { margin: 0 0 12px; font-size: 17px; }
.review-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: 15px; margin-bottom: 12px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin-bottom: 6px; }
.stars-input input { display: none; }
.stars-input label { font-size: 28px; color: #d8dce4; cursor: pointer; padding: 0 2px; transition: color .1s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #f3b53f; }

/* Resultado de pago */
.co-result { text-align: center; padding: 64px 24px; }
.co-result__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; margin: 0 auto 20px; color: #fff; }
.co-result__icon--ok { background: #137a43; }
.co-result__icon--fail { background: #c0392b; }
.co-result__icon--wait { background: var(--teal); color: var(--navy); }
.co-result h1 { font-size: 28px; margin-bottom: 10px; }
.co-result > p { color: var(--muted); }
.co-result__box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; max-width: 380px; margin: 22px auto; display: flex; flex-direction: column; gap: 10px; }
.co-result__box div { display: flex; justify-content: space-between; font-family: var(--font-title); }
.co-result__box span { color: var(--muted); }
.co-result__box strong { color: var(--navy); }
.co-result__muted { font-size: 13.5px; }
.co-result__actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
