/* ════════════════════════════════════════════════════════════
   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: 50; 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; }
    .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; }
}
