/* ==========================================================================
   Farmacia Veterinaria CID · sistema visual basado en el lenguaje de GSAP
   Lienzo casi negro, tinta crema, botones píldora con contorno,
   eyebrows entre llaves { } y color como taxonomía (una categoría = un color).
   ========================================================================== */

:root {
    /* Superficies y tinta: blanco, grises y negro del logo */
    --bg: #ffffff;
    --bg-alt: #f4f4f5;
    --ink: #17171a;
    --muted: #5c5c61;
    --line: #dcdcde;
    --line-strong: #b4b4b9;
    --ink-inverse: #17171a;

    /* Marca: el rosa de la lengua y las orejas del bulldog */
    --brand: #eaa5b0;          /* rellenos, formas, acentos */
    --brand-ink: #b8425f;      /* rosa oscuro para texto e íconos (contraste AA sobre blanco) */
    --brand-soft: #fdeef1;     /* lavado suave de fondo */
    --brand-deep: #de8fa0;
    --brand-light: #f8cfd6;
    --silver: #e0e0e0;
    --steel: #606060;
    --grad: linear-gradient(114.41deg, #b8425f 20.74%, #ee9fb2 65.5%);
    --grad-text: linear-gradient(114.41deg, #b8425f 20%, #d9708a 75%);

    /* Categorías de producto: un color por categoría. Vivo para formas, oscuro (-ink) para texto */
    --blue: #00bae2;   --blue-ink: #00708c;     /* Medicamentos */
    --orange: #ff8709; --orange-ink: #b45400;   /* Alimentos */
    --green: #0ae448;  --green-ink: #0a7d31;    /* Accesorios */
    --lilac: #9d95ff;  --lilac-ink: #5e52d6;    /* Higiene y estética */
    --error: #c0392b;
    --card: var(--bg-alt);     /* fondo de tarjetas; cambia según el fondo de la sección */
    --bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cg fill='%23000'%3E%3Ccircle cx='5.5' cy='4.8' r='3.7'/%3E%3Ccircle cx='5.5' cy='11.2' r='3.7'/%3E%3Ccircle cx='26.5' cy='4.8' r='3.7'/%3E%3Ccircle cx='26.5' cy='11.2' r='3.7'/%3E%3Crect x='6' y='5.9' width='20' height='4.2' rx='1'/%3E%3C/g%3E%3C/svg%3E");

    /* Tipografía (Mori sustituida por Inter Tight, según la guía de estilo) */
    --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Espacio y forma */
    --wrap: 1280px;
    --gutter: 24px;
    --radius-card: 8px;
    --radius-pill: 100px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--brand-ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--ink); color: var(--bg);
    padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 5vw, 66px); line-height: 1.08; letter-spacing: -0.011em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.eyebrow { font-size: 19px; line-height: 1.3; margin-bottom: 20px; }
/* Huesitos a cada lado de los antetítulos (sustituyen a las llaves { }) */
.eyebrow::before, .eyebrow::after, .footer__title::before, .footer__title::after {
    content: ''; display: inline-block; width: 1.6em; height: .8em; vertical-align: -.02em;
    background: var(--brand-ink);
    -webkit-mask: var(--bone) center / contain no-repeat; mask: var(--bone) center / contain no-repeat;
}
.eyebrow::before, .footer__title::before { margin-right: .55em; transform: rotate(-22deg); }
.eyebrow::after,  .footer__title::after  { margin-left: .55em;  transform: rotate(22deg); }

.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.38; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 16px; line-height: 1.4; }
.micro { font-size: 15px; line-height: 1.4; color: var(--muted); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.c-green { color: var(--green-ink); }
.c-blue { color: var(--blue-ink); }
.c-orange { color: var(--orange-ink); }
.c-lilac { color: var(--lilac-ink); }

/* Acento rosa dentro de un título */
.hl { color: var(--brand-ink); font-style: normal; }

.stack > * + * { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Marca de dato pendiente del cliente (solo en modo borrador) */
.pend {
    display: inline-block; font-size: 14px; line-height: 1.3; letter-spacing: 0;
    color: var(--muted); border: 1px dashed var(--line-strong);
    border-radius: 6px; padding: 3px 8px; margin: 2px 0;
}

/* ---------- Iconos ---------- */
.ico { width: 24px; height: 24px; flex: none; }
.ico--wa { width: 22px; height: 22px; }

/* ---------- Botones: píldoras con contorno, nunca rellenas ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 15px 24px;
    font: 600 18px/1.05 var(--font); letter-spacing: -0.01em; text-align: center;
    color: var(--ink); text-decoration: none;
    background: transparent;
    border: 1px solid var(--ink); border-radius: var(--radius-pill);
    transition: opacity .15s ease;
}
.btn:hover { opacity: .8; }
.btn--sm { min-height: 44px; padding: 11px 20px; font-size: 16px; }
.btn--block { width: 100%; }

/* CTA principal: único control cromático, trazo degradado verde */
.btn--cta { border-color: transparent; background: var(--brand-soft); }
.btn--cta::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
    background: var(--grad); pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* ---------- Franja superior ---------- */
.topbar {
    text-align: center; font-size: 14px; line-height: 1.4; letter-spacing: -0.01em;
    padding: 10px var(--gutter); color: #dcdcdf; background: var(--ink-inverse);
}

/* ---------- Encabezado fijo ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.brand__text small { font-size: 14px; color: var(--muted); margin-top: 3px; letter-spacing: -0.01em; }

.nav { display: none; }
.nav a {
    display: block; padding: 10px 12px; font-size: 16px; line-height: 1.15;
    color: var(--muted); text-decoration: none; border-radius: var(--radius-pill);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand-ink); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.menu-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
    background: none; border: 0; border-radius: 50%;
}
.menu-toggle .ico { width: 26px; height: 26px; }
.menu-toggle .ico--close { display: none; }
.menu-toggle[aria-expanded="true"] .ico--open { display: none; }
.menu-toggle[aria-expanded="true"] .ico--close { display: block; }

/* Menú móvil: desplegable bajo el encabezado; el botón de WhatsApp queda fuera */
@media (max-width: 1079px) {
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 24px;
    }
    .nav.is-open { display: block; }
    .nav ul { max-width: var(--wrap); margin-inline: auto; }
    .nav li + li { border-top: 1px solid var(--line); }
    .nav a { padding: 16px 0; font-size: 24px; color: var(--ink); border-radius: 0; }
    .nav a[aria-current="page"] { text-decoration: none; color: var(--brand-ink); }
}
@media (max-width: 479px) {
    .brand__text small { display: none; }
    .brand__logo { width: 46px; height: 46px; }
    .header__row { gap: 8px; }
    .btn--sm { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
    .header__actions .ico--wa { display: none; }
}
@media (min-width: 1080px) {
    .nav { display: block; margin-left: auto; }
    .nav ul { display: flex; gap: 6px; }
    .header__actions { margin-left: 8px; }
    .menu-toggle { display: none; }
}

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(64px, 9vw, 108px); }
.sec + .sec::before {
    content: ''; display: block; height: 1px; background: var(--line);
    width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin: calc(clamp(64px, 9vw, 108px) * -1) auto clamp(64px, 9vw, 108px);
    transform: scaleX(var(--rule, 1)); transform-origin: 0 50%;
}
.sec--panel, .sec--gray { background: var(--bg-alt); --card: #fff; --line: #d3d3d8; }
.sec--pink { background: var(--brand-soft); --card: #fff; --line: #f0c8d1; }
.sec--pink-strong { background: var(--brand-light); --card: #fff; --line: #eab3c0; --muted: #4a4a4f; --brand-ink: #a63757; }
:is(.sec--panel, .sec--gray, .sec--pink, .sec--pink-strong) + .sec::before,
.sec + :is(.sec--panel, .sec--gray, .sec--pink, .sec--pink-strong)::before { display: none; }
.sec__head { max-width: 920px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__head h2 + .lead { margin-top: 20px; }
.sec__head .lead { color: var(--ink); }
.center { text-align: center; margin-inline: auto; }
.center .actions { justify-content: center; }

.split { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
    .split--even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Héroe ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) 0; }
.hero__grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.hero h1 { margin-bottom: 28px; }
.hero .lead { max-width: 34em; }
.hero__text { margin-top: 24px; max-width: 34em; color: var(--muted); }
.hero .actions { margin-top: 36px; }
.hero .micro { margin-top: 20px; }
@media (max-width: 559px) { .hero .actions .btn { width: 100%; } }

.hero__art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.hero__art .blob { position: absolute; }
.hero__art .b1 { width: 64%; aspect-ratio: 1; right: 0; top: 0; }
.hero__art .b2 { width: 70%; height: 22%; left: 0; bottom: 14%; transform: rotate(-22deg); }
.hero__art .b3 { width: 24%; aspect-ratio: 1; right: 8%; bottom: 2%; }
.hero__logo { position: absolute; inset: 6% 6% 6% 6%; width: 88%; height: 88%; object-fit: contain; z-index: 1; }
.hero__photo { border-radius: var(--radius-card); width: 100%; height: 100%; object-fit: cover; }

.points {
    display: grid; gap: 0; margin-top: clamp(48px, 7vw, 88px);
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
}
.points li { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; font-size: 17px; line-height: 1.3; border-bottom: 1px solid var(--line); }
.points .ico { color: var(--brand-ink); margin-top: 1px; }
@media (min-width: 720px) {
    .points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
    .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .points li { flex-direction: column; gap: 14px; border-bottom: 0; padding: 28px 24px 0 0; }
}

/* ---------- Formas 3D suaves (degradado interno, sin sombras) ---------- */
.blob {
    display: block; --c1: #abff84; --c2: #0ae448;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 36%),
        linear-gradient(150deg, var(--c1), var(--c2));
}
.blob--dome { border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; }
.blob--pill { border-radius: 999px; }
.blob--drop { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
.blob--green  { --c1: #abff84; --c2: #0ae448; }
.blob--blue   { --c1: #7fdcf2; --c2: #00bae2; }
.blob--orange { --c1: #ffd08a; --c2: #ff8709; }
.blob--lilac  { --c1: #c9c4ff; --c2: #9d95ff; }
.blob--brand  { --c1: #f8cfd6; --c2: #de8fa0; }
.blob--steel  { --c1: #c9c9cc; --c2: #606064; }
.blob--ink    { --c1: #55555b; --c2: #17171a; }

/* ---------- Barra de datos rápidos ---------- */
.databar { background: var(--bg-alt); margin-top: clamp(48px, 7vw, 88px); }
.databar__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.databar__col { padding: 32px 0; border-top: 1px solid var(--line); }
.databar__col:first-child { border-top: 0; }
.databar__label { font-size: 16px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.databar__label .ico { width: 20px; height: 20px; }
.databar__value { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.databar__value + .databar__value { margin-top: 4px; }
.databar__value--big { font-size: clamp(30px, 3.2vw, 40px); }
.databar__link { display: inline-block; margin-top: 14px; font-size: 17px; }
@media (min-width: 900px) {
    .databar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .databar__col { padding: 40px 32px; border-top: 0; border-left: 1px solid var(--line); }
    .databar__col:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.step__n { grid-row: span 2; font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.step h3 { font-size: 28px; }
.step p { color: var(--muted); }
.step .ico { display: none; }
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .step { display: block; padding: 28px 0 0; }
    .step__n { font-size: 66px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
    .step .ico { display: block; width: 32px; height: 32px; color: var(--ink); }
    .step h3 { margin-bottom: 12px; }
}
.after-steps { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }

/* ---------- Tarjetas de categoría ---------- */
.cats { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat {
    display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 320px;
    background: var(--card); border-radius: var(--radius-card); text-decoration: none;
    transition: opacity .15s ease;
}
.cat:hover { opacity: .85; }
.cat .blob { width: 96px; height: 96px; }
.cat__label { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin-top: 28px; }
.cat p { font-size: 17px; line-height: 1.35; color: var(--muted); }
.cat__go { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; margin-top: auto; padding-top: 12px; }
.cat__go .ico { width: 18px; height: 18px; }
.cats-cta { margin-top: 40px; }

/* ---------- Tabla de datos de envío ---------- */
.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 16px; color: var(--muted); }
.specs dd { font-size: 19px; line-height: 1.35; }
@media (min-width: 640px) { .specs > div { grid-template-columns: 200px minmax(0, 1fr); } }
.coverage-note { margin-top: 28px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 44em; }

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.pillar { padding-top: 24px; border-top: 1px solid var(--line); }
.pillar .ico { width: 36px; height: 36px; margin-bottom: 20px; color: var(--brand-ink); }
.pillar h3 { font-size: 28px; margin-bottom: 12px; }
.pillar p { color: var(--muted); }

/* ---------- Aviso (medicamentos con receta) ---------- */
.notice { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); background: var(--brand-soft); border: 1px solid #f0c8d1; border-radius: var(--radius-card); }
.notice .ico { width: 44px; height: 44px; color: var(--ink); }
.notice h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.notice .actions { margin-top: 24px; }
@media (min-width: 720px) { .notice { grid-template-columns: 64px minmax(0, 1fr); gap: 32px; } }

/* ---------- Ubicación y mapa ---------- */
.map { width: 100%; height: 420px; border: 0; border-radius: var(--radius-card); background: var(--card); }
@media (max-width: 719px) { .map { height: 340px; } }
.info-list { display: grid; gap: 16px; margin-top: 24px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { margin-top: 2px; color: var(--muted); }

/* ---------- Cierre ---------- */
.closing h2 { font-size: clamp(40px, 7.4vw, 101px); line-height: 1; letter-spacing: -0.011em; max-width: 12em; margin-inline: auto; }
.closing .lead { max-width: 30em; margin: 28px auto 0; color: var(--muted); }
.closing .actions { margin-top: 40px; }
.closing .micro { margin-top: 20px; }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 84px); max-width: 14em; margin-bottom: 24px; }
.page-hero .lead { max-width: 36em; }
.page-hero .actions { margin-top: 32px; }
.page-hero .micro { margin-top: 18px; }

/* ---------- Nosotros ---------- */
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: 38em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.list-check { display: grid; gap: 4px; margin-top: 32px; }
.list-check li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.3; }
.list-check li:first-child { border-top: 1px solid var(--line); }
.list-check .ico { color: var(--brand-ink); margin-top: 1px; }

.id-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); max-width: 720px; }
.id-card h3 { margin-bottom: 4px; }
.id-card dl { margin-top: 24px; border-top: 1px solid var(--line); }
.id-card dl > div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.id-card dt { font-size: 16px; color: var(--muted); }
@media (min-width: 640px) { .id-card dl > div { grid-template-columns: 200px 1fr; } }
.id-card .micro { margin-top: 20px; }
.lugar-foto { border-radius: var(--radius-card); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.two-ways { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .two-ways { grid-template-columns: 1fr 1fr; } }
.way { background: var(--card); border-radius: var(--radius-card); padding: 32px 24px; }
.way .ico { width: 36px; height: 36px; margin-bottom: 20px; color: var(--brand-ink); }
.way h3 { font-size: 28px; margin-bottom: 12px; }
.way p { color: var(--muted); }

/* ---------- Catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chip {
    min-height: 48px; padding: 12px 22px; background: transparent;
    font-size: 17px; font-weight: 600; line-height: 1.05;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    transition: opacity .15s ease;
}
.chip:hover { opacity: .8; }
.chip[aria-pressed="true"] { border-color: currentColor; }
.chip--all { color: var(--ink); }
.filters-note { font-size: 16px; color: var(--muted); }

.products { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border-radius: var(--radius-card); }
.pcard[hidden] { display: none; }
.pcard__img { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 8px; background: var(--bg); border-radius: var(--radius-card); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pcard__img .blob { width: 46%; aspect-ratio: 1; }
.pcard__cat { font-size: 16px; font-weight: 600; }
.pcard h3 { font-size: 24px; line-height: 1.15; }
.pcard__meta { font-size: 16px; color: var(--muted); }
.pcard__desc { font-size: 17px; line-height: 1.35; color: var(--ink); }
.pcard__tag {
    display: inline-flex; gap: 8px; align-items: center; align-self: flex-start;
    font-size: 14px; line-height: 1.25; padding: 6px 10px;
    border: 1px solid var(--ink); border-radius: var(--radius-card);
}
.pcard__tag .ico { width: 18px; height: 18px; }
.pcard__price { font-size: 17px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.pcard .btn { margin-top: 6px; }
.empty { margin-top: 40px; padding: 32px 24px; border: 1px dashed var(--line); border-radius: var(--radius-card); font-size: 19px; }
.empty[hidden] { display: none; }
.btn-note { margin-top: 24px; max-width: 40em; }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery figure { aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-alt); position: relative; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { display: grid; place-items: center; height: 100%; }
.gallery .ph .blob { width: 34%; aspect-ratio: 1; opacity: .9; }
.gallery .ph .pend { position: absolute; left: 12px; bottom: 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(23, 23, 26, .92); }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-card); margin-inline: auto; }
.lightbox p { text-align: center; color: #dcdcdf; font-size: 16px; margin-top: 12px; }
.lightbox .btn { display: flex; margin: 20px auto 0; background: var(--bg); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { padding: 32px 24px; background: var(--card); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { font-size: 21px; line-height: 1.35; }
.quote figcaption { font-size: 16px; color: var(--muted); margin-top: auto; }
.quote figcaption b { display: block; font-weight: 600; color: var(--ink); font-size: 18px; }
.first-words { max-width: 760px; padding: clamp(28px, 5vw, 56px); background: var(--card); border-radius: var(--radius-card); }
.first-words h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 20px; }

/* ---------- Datos de contacto ---------- */
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 16px; color: var(--muted); }
.contact-list dd { font-size: 21px; line-height: 1.3; }
.contact-list dd a { text-decoration: none; }
@media (min-width: 640px) { .contact-list > div { grid-template-columns: 220px minmax(0, 1fr); } }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 24px; max-width: 680px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 17px; font-weight: 600; }
.field .req { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 6px; }
.input, .select, .textarea {
    width: 100%; min-height: 56px; padding: 14px 16px;
    font: 400 19px/1.3 var(--font); letter-spacing: -0.01em; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-card);
    appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #7f7f85; }
.textarea { min-height: 160px; resize: vertical; }
.select {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2317171a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.select option { background: var(--bg); color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field-error { display: none; font-size: 16px; line-height: 1.35; color: var(--error); }
.field.has-error .field-error, .has-error > .field-error { display: block; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.35; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--brand-ink); }
.form__submit { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
    display: none; padding: 16px 20px; border: 1px solid var(--error); border-radius: var(--radius-card);
    color: var(--ink); font-size: 17px;
}
.form-error.is-visible { display: block; }
.confirm { max-width: 680px; padding: clamp(28px, 5vw, 48px); background: var(--card); border-radius: var(--radius-card); }
.confirm[hidden], .form[hidden] { display: none; }
.confirm .ico--big { width: 44px; height: 44px; color: var(--brand-ink); margin-bottom: 20px; }
.confirm h3 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.confirm .actions { margin-top: 28px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0; cursor: pointer; list-style: none;
    font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 24px; height: 24px; transition: transform .15s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq__a { padding: 0 0 28px; max-width: 40em; color: var(--muted); }
.faq__a p + p { margin-top: 10px; }

/* ---------- Pie ---------- */
.site-footer {
    --bg: #17171a; --bg-alt: #222227; --ink: #f4f4f5; --muted: #a9a9b0;
    --line: #38383e; --line-strong: #5a5a62; --brand-ink: #eaa5b0;
    background: var(--bg); color: var(--ink); padding: 72px 0 120px; margin-top: 0;
}
.footer__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.4fr 1fr; gap: 48px; } }
.footer__lema { margin: 20px 0 8px; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; max-width: 14em; }
.footer__title { font-size: 16px; font-weight: 400; color: var(--muted); margin-bottom: 16px; }
.footer__list { display: grid; gap: 10px; font-size: 16px; line-height: 1.3; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: inline-flex; align-items: center; justify-content: center; flex-direction: row-reverse; gap: 12px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--bg); text-decoration: none;
}
.wa-float::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: var(--grad); pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float__label {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    display: none; white-space: nowrap; padding: 10px 18px; font-size: 16px; font-weight: 600;
    background: var(--bg); border: 1px solid var(--ink); border-radius: var(--radius-pill);
}
.wa-float { transition: opacity .2s ease, visibility .2s ease; }
.wa-float.is-oculto { opacity: 0; visibility: hidden; pointer-events: none; }
@media (hover: hover) {
    .wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { display: block; }
}

/* ---------- Aviso de privacidad ---------- */
.legal-page .prose { max-width: 720px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
@media print {
    .wa-float, .site-header, .topbar { display: none; }
}

/* ---------- Ajustes finales ---------- */
.field .check { font-weight: 400; }
.photo-slot {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--bg-alt); border-radius: var(--radius-card);
}
.photo-slot .blob { position: absolute; }
.photo-slot .blob--dome { width: 44%; aspect-ratio: 1; left: 12%; top: 14%; }
.photo-slot .blob--pill { width: 56%; height: 22%; right: 6%; bottom: 20%; transform: rotate(-20deg); }
.photo-slot .pend { position: absolute; left: 16px; bottom: 16px; }

/* ==========================================================================
   Animaciones (GSAP). Solo actúan con la clase .js-anim, que se pone si la persona
   no pidió menos movimiento; si GSAP no carga, la clase se quita y todo queda visible.
   ========================================================================== */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .16em; margin: -.12em -.04em -.16em; }
.wi { display: inline-block; }

/* Estado inicial del bloque superior de cada página: evita el parpadeo antes de animar */
.js-anim :is(.hero, .page-hero) :is(.eyebrow, h1, .lead, .hero__text, .actions, .micro, .hero__art, .photo-slot, .lugar-foto) { visibility: hidden; }

.wa-float__ring {
    position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    border: 1.5px solid var(--brand); opacity: 0;
}
