/* ==========================================================================
   Milenial Theme — estilos
   --------------------------------------------------------------------------
   1. Tokens          5. Header / nav       9.  Páginas interiores
   2. Base            6. Hero / stats       10. Contacto / formularios
   3. Layout          7. Secciones          11. Blog / prose
   4. Botones         8. Tarjetas           12. Footer / utilidades
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Identidad milenial.cl: rosado #ec84b5, grises #222/#333, logo morado → rosado → cian */
    --ink: #222222;
    --ink-2: #2b2b2b;
    --ink-3: #3a3a3a;
    --text: #333333;
    --muted: #6b6b6b;
    --line: #ececec;
    --bg: #ffffff;
    --bg-muted: #f8f5f7;
    --primary: #ec84b5;
    --primary-600: #de6aa3;
    --primary-50: #fdeef5;
    --primary-ink: #b8417a;   /* rosado oscuro para texto sobre blanco (legible) */
    --purple: #7a2e90;        /* morado del logo */
    --accent: #48c0c0;        /* cian del logo */
    --success: #0f9d6b;
    --danger: #d23b3b;

    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Poppins", "Open Sans", system-ui, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--muted { background: var(--bg-muted); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }

/* 4. Botones --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .975rem/1.2 var(--font-body); cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn--sm { padding: .6em 1.05em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .12); box-shadow: 0 8px 20px -8px rgba(236, 132, 181, .55); }
.btn--primary:hover { background: var(--primary-600); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--primary-50); color: var(--primary-ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.hero .btn--outline, .page-hero .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn--outline:hover { border-color: #fff; }

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(34, 34, 34, .94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .5); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: auto; height: 44px; }
.brand__name { font: 700 1.5rem/1 var(--font-head); letter-spacing: -.02em; }
.brand__name small { margin-left: 5px; font-size: .62em; font-weight: 500; letter-spacing: 0; opacity: .75; }
.site-footer .brand__mark { height: 52px; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.custom-logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__menu { display: flex; gap: 4px; list-style: none; }
.site-nav__menu a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: #e6e6e6; font-weight: 600; font-size: .95rem;
}
.site-nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a { color: var(--primary); }
.site-nav__menu .sub-menu { display: none; }

.nav-toggle {
    display: none; background: none; border: 0; padding: 8px; margin-right: -8px;
    color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 20px var(--gutter) 28px; background: #222;
        border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
    .site-nav__menu { flex-direction: column; }
    .site-nav__menu a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .nav-open .nav-toggle__open { display: none; }
    .nav-open .nav-toggle__close { display: block; }
}

/* 6. Hero / stats ---------------------------------------------------------- */
.hero, .page-hero {
    position: relative; overflow: hidden; color: #d9d9d9;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(236, 132, 181, .32), transparent 60%),
        radial-gradient(600px 300px at 0% 110%, rgba(122, 46, 144, .35), transparent 60%),
        #1c1c1c;
}
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero > .container, .page-hero > .container { position: relative; }

.hero { padding-block: clamp(64px, 10vw, 120px) clamp(72px, 10vw, 128px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 599px) { .hero__panel { display: none; } }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: .4em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 36em; color: #bdbdbd; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .93rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--accent); }

.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font: 600 .8rem/1.3 var(--font-body); letter-spacing: .09em; text-transform: uppercase;
    color: var(--primary-ink);
}
.eyebrow a { color: inherit; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--primary); }
.eyebrow--pill {
    padding: 6px 14px; border-radius: 999px; letter-spacing: .05em;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}

/* Consola decorativa del hero */
.console {
    border-radius: var(--radius); overflow: hidden;
    background: rgba(17, 17, 17, .88); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
    font: .86rem/1.7 var(--font-mono); color: #d9d9d9;
}
.console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console__bar span { width: 11px; height: 11px; border-radius: 50%; background: #444444; }
.console__bar span:first-child { background: #ff5f57; }
.console__bar span:nth-child(2) { background: #febc2e; }
.console__bar span:nth-child(3) { background: #28c840; }
.console__bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: #777777; }
.console__body { padding: 20px 22px 18px; overflow-x: auto; }
.console__body p { margin: 0; white-space: nowrap; }
.console__body b { color: var(--accent); font-weight: 600; }
.console__body ul { list-style: none; margin: 12px 0 14px; }
.console__body li { white-space: nowrap; display: flex; align-items: center; color: #fff; }
.console__body li span { color: #9a9a9a; }
.console__body i.ok { width: 7px; height: 7px; border-radius: 50%; background: #28c840; margin-right: 12px; box-shadow: 0 0 0 3px rgba(40, 200, 64, .15); }
.console__cursor { animation: blink 1.1s steps(1) infinite; color: #fff; }
@keyframes blink { 50% { opacity: 0; } }

/* Cifras */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats__grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); margin: 0;
}
@media (min-width: 800px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stats__item { display: flex; flex-direction: column-reverse; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__item dt { color: var(--muted); font-size: .92rem; }
.stats__item dd { margin: 0 0 2px; font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
@media (min-width: 800px) {
    .stats__item { border-bottom: 0; }
    .stats__item:last-child { border-right: 0; }
}
@media (max-width: 799px) {
    .stats__item:nth-child(2n) { border-right: 0; }
    .stats__item:nth-last-child(-n + 2) { border-bottom: 0; }
}
.stats__grid--compact { box-shadow: none; }
@media (min-width: 800px) {
    .stats__grid--compact { grid-template-columns: repeat(2, 1fr); }
    .stats__grid--compact .stats__item { border-bottom: 1px solid var(--line); }
    .stats__grid--compact .stats__item:nth-child(2n) { border-right: 0; }
    .stats__grid--compact .stats__item:nth-last-child(-n + 2) { border-bottom: 0; }
    .stats__grid--compact .stats__item:last-child { border-right: 0; }
}

/* 7. Secciones ------------------------------------------------------------- */
.section-heading { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading__title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; }
.section-heading__text { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-heading-row .section-heading { margin-bottom: 0; }

.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps__number { display: inline-block; font: 700 .85rem/1 var(--font-mono); color: var(--primary-ink); background: var(--primary-50); padding: 7px 10px; border-radius: 8px; margin-bottom: 18px; }
.steps__title { font-size: 1.15rem; }
.steps__text { color: var(--muted); margin: 0; font-size: .96rem; }

.features { list-style: none; display: grid; gap: 24px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features h3 { font-size: 1.08rem; margin-bottom: 4px; }
.features p { color: var(--muted); margin: 0; font-size: .96rem; }
.features__icon {
    display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px;
    border-radius: 12px; background: var(--primary-50); color: var(--primary-ink);
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li, .tags a {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--bg-muted); border: 1px solid var(--line);
    font-size: .88rem; font-weight: 500; color: var(--text);
}
.section--muted .tags li { background: #fff; }

.cta-band {
    display: grid; gap: 24px; align-items: center;
    padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 6px);
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff3f9;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.cta-band__text { margin: 0; max-width: 40em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 8. Tarjetas -------------------------------------------------------------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
    display: flex; flex-direction: column; padding: 28px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #f3c2da; box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
    border-radius: 12px; background: linear-gradient(135deg, var(--purple), var(--primary)); color: #fff;
}
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 1.2rem; }
.card__text { color: var(--muted); flex-grow: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.card__link .icon { width: 1em; height: 1em; transition: transform .2s; }
.card:hover .card__link .icon { transform: translateX(3px); }

.projects { display: grid; gap: 20px; }
@media (min-width: 800px) { .projects { grid-template-columns: repeat(3, 1fr); } .projects--two { grid-template-columns: repeat(2, 1fr); } }
.project { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.project__client { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--primary-ink); margin-bottom: 8px; }
.project__title { font-size: 1.18rem; }
.project__text { color: var(--muted); flex-grow: 1; font-size: .96rem; }
.project__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.project__tags li { font: 500 .78rem/1 var(--font-mono); padding: 6px 9px; border-radius: 6px; background: var(--bg-muted); color: var(--ink-3); }

.posts { display: grid; gap: 24px; }
@media (min-width: 680px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--bg-muted); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: #e7b9cf; }
.post-card__placeholder .icon { width: 40px; height: 40px; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card__title { font-size: 1.15rem; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--primary-ink); }
.post-card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }

/* 9. Páginas interiores ---------------------------------------------------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.03em; max-width: 18em; }
.page-hero__intro { font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 40em; margin: 0; color: #bdbdbd; }
.error-page .page-hero__title { color: var(--ink); }
.error-page .page-hero__intro { color: var(--muted); }

.service-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.service-index a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 500; font-size: .93rem;
}
.service-index a:hover { border-color: var(--primary); color: var(--primary-ink); }
.service-index .icon { width: 18px; height: 18px; }
.service-list { display: grid; gap: 20px; }
.service {
    display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
@media (min-width: 860px) { .service { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; } }
.service__title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
.service__summary { color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
    background: var(--bg-muted); border-radius: var(--radius-sm); font-weight: 500;
}
.checklist .icon { color: var(--success); margin-top: 2px; }

.landing > * { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.landing > .alignfull { max-width: none; padding-inline: 0; }

.error-page { text-align: center; }
.error-page__code { font: 700 clamp(4rem, 12vw, 7rem)/1 var(--font-head); color: var(--primary-50); -webkit-text-stroke: 2px var(--primary); margin-bottom: 16px; }
.error-page__search { max-width: 420px; margin: 28px auto 0; }
.error-page .hero__actions { justify-content: center; }

/* 10. Contacto / formularios ----------------------------------------------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } }
.contact-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary-ink); }

.contact__form { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; color: var(--muted); font-size: .85rem; text-align: center; }

.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label span[aria-hidden] { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea,
.search-form .search-field {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a7b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form .search-field:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(236, 132, 181, .22);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: .86rem; font-weight: 500; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .92rem; cursor: pointer; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert p { margin: 2px 0 0; }
.alert--success { background: #e8f8f1; color: #0b5e41; border: 1px solid #bfe8d6; }
.alert--success .icon { color: var(--success); margin-top: 2px; }
.alert--error { background: #fdeeee; color: #8c2323; border: 1px solid #f5c9c9; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 12px 18px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }

/* 11. Blog / prose --------------------------------------------------------- */
.prose { max-width: 760px; font-size: 1.06rem; }
.prose--wide { max-width: none; }
.prose--small { font-size: .96rem; color: var(--muted); }
.prose h2 { font-size: 1.65rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--ink-3); font-style: italic; }
.prose pre { background: var(--ink); color: #eeeeee; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; }
.prose code { font-family: var(--font-mono); font-size: .9em; }
.prose :not(pre) > code { background: var(--bg-muted); padding: 2px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.page-hero--article .page-hero__title { max-width: none; }
.article__meta { color: #9a9a9a; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.article__cover { margin-top: -32px; position: relative; }
.article__cover img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article__footer { padding-bottom: 48px; }
.article__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }

.pagination { margin-top: 48px; }
.pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; max-width: 480px; margin-inline: auto; }
.empty-state p { color: var(--muted); }

/* Alineaciones de Gutenberg */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 8px; }

/* 12. Footer / utilidades -------------------------------------------------- */
.site-footer { background: var(--ink); color: #a8a8a8; padding-top: clamp(56px, 7vw, 80px); font-size: .95rem; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr .8fr 1.2fr; } }
.site-footer__brand p { margin-top: 18px; max-width: 30em; }
.site-footer__title { color: #fff; font: 700 .82rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 18px; }
.site-footer__list { list-style: none; display: grid; gap: 10px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem;
}
.site-footer__bottom p { margin: 0; }

.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
    transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
.whatsapp-float .icon { width: 28px; height: 28px; }

/* 13. Cotizador -------------------------------------------------------------- */
.quote-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px; order: 3;
    padding: 8px 12px; border-radius: 999px; color: #e6e6e6; font-weight: 600; font-size: .95rem;
    border: 1px solid rgba(255, 255, 255, .14);
}
.quote-link:hover { color: #fff; border-color: var(--primary); }
.quote-link .icon { width: 20px; height: 20px; }
.quote-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700;
}
.quote-count[hidden] { display: none; }
.site-nav { order: 2; }
.nav-toggle { order: 4; }
@media (max-width: 900px) {
    .quote-link { margin-left: auto; padding: 8px; border: 0; }
    .quote-link__label { display: none; }
    .quote-link .quote-count { position: absolute; top: -2px; right: -6px; }
}

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; height: 44px; }
.qty__btn { width: 40px; border: 0; background: var(--bg-muted); font-size: 1.25rem; line-height: 1; color: var(--ink); cursor: pointer; }
.qty__btn:hover { background: var(--primary-50); color: var(--primary-ink); }
.qty__input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.qty__unit { display: inline-flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; white-space: nowrap; }

.add-to-quote { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.add-to-quote.is-loading .add-to-quote__btn { opacity: .65; }
.add-to-quote__btn .icon { width: 1.15em; height: 1.15em; }
.service__head .add-to-quote { margin-top: 4px; }

.quote-catalog { display: grid; gap: 24px; }
@media (min-width: 860px) { .quote-catalog { grid-template-columns: repeat(2, 1fr); } }
.quote-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.5vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm); }
.quote-card__head { display: flex; gap: 16px; align-items: center; }
.quote-card__head .card__icon { margin: 0; flex-shrink: 0; }
.quote-card__title { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin: 0; }
.quote-card__price { margin: 2px 0 0; color: var(--primary-ink); font-weight: 600; font-size: .95rem; }
.quote-card__text { color: var(--muted); margin: 0; }
.quote-card__list { list-style: none; display: grid; gap: 8px; margin: 0 0 4px; flex-grow: 1; }
.quote-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.quote-card__list .icon { color: var(--success); width: 18px; height: 18px; margin-top: 3px; }
.quote-card__cta { padding-top: 16px; border-top: 1px solid var(--line); }
.quote-catalog__note { margin: 32px 0 0; text-align: center; color: var(--muted); }

.quote-layout { display: grid; gap: 28px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 88px); align-items: start; }
@media (min-width: 960px) { .quote-layout { grid-template-columns: 240px 1fr; gap: 48px; } }
.quote-steps ol { list-style: none; display: grid; gap: 6px; }
@media (min-width: 960px) { .quote-steps ol { position: sticky; top: calc(var(--header-h) + 24px); } }
.quote-steps__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; }
.quote-steps__number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-muted); border: 1.5px solid var(--line); font-size: .88rem; }
.quote-steps__number .icon { width: 16px; height: 16px; }
.quote-steps__item.is-active { background: var(--primary-50); color: var(--ink); }
.quote-steps__item.is-active .quote-steps__number { background: var(--primary); border-color: var(--primary); color: #fff; }
.quote-steps__item.is-done .quote-steps__number { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote-steps__item.is-done a { color: var(--ink); }
.quote-steps__item.is-done a:hover { color: var(--primary-ink); }
@media (max-width: 959px) {
    .quote-steps ol { grid-template-columns: repeat(3, 1fr); }
    .quote-steps__item { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; font-size: .85rem; }
}

.quote-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quote-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.quote-item:last-child { border-bottom: 0; }
.quote-item.is-removing { opacity: .4; pointer-events: none; }
.quote-item__icon { margin: 0; width: 44px; height: 44px; }
.quote-item__name { margin: 0; font: 600 1.08rem/1.3 var(--font-head); color: var(--ink); }
.quote-item__text { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.quote-item__fixed { color: var(--muted); font-weight: 600; white-space: nowrap; }
.quote-item__remove { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: .9rem; padding: 8px; cursor: pointer; }
.quote-item__remove:hover { color: var(--danger); }
.quote-item__remove .icon { width: 18px; height: 18px; }
@media (max-width: 700px) {
    .quote-item { grid-template-columns: auto 1fr; }
    .quote-item .qty, .quote-item__fixed { grid-column: 2; justify-self: start; }
    .quote-item__remove { grid-column: 2; justify-self: start; padding-left: 0; }
}

.quote-options { margin: 28px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .quote-options { grid-template-columns: 1fr 1fr; } }
.quote-options__title { grid-column: 1 / -1; margin-bottom: 4px; font: 600 1.15rem/1.3 var(--font-head); color: var(--ink); }
.quote-options__option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; background: #fff; }
.quote-options__option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.quote-options__option input { accent-color: var(--primary); width: 18px; height: 18px; }

.quote-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.quote-panel { padding: clamp(22px, 3.5vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm); }
.quote-panel .form__row { margin-bottom: 0; }

.quote-empty { padding: 56px 24px; text-align: center; background: var(--bg-muted); border-radius: var(--radius); }
.quote-empty[hidden] { display: none; }
.quote-empty__title { font: 600 1.4rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.quote-empty p { color: var(--muted); }

.quote-customer { display: grid; gap: 16px; margin-bottom: 24px; box-shadow: none; }
@media (min-width: 760px) { .quote-customer { grid-template-columns: 1fr 1.3fr auto; gap: 24px; align-items: start; } }
.quote-customer__name { margin: 0; font: 600 1.3rem/1.25 var(--font-head); color: var(--ink); }
.quote-customer__sub { margin: 4px 0 0; color: var(--muted); }
.quote-customer__info { list-style: none; display: grid; gap: 4px; font-size: .95rem; word-break: break-word; }
.quote-customer__info span { color: var(--muted); }
.quote-customer__edit { font-weight: 600; font-size: .95rem; white-space: nowrap; }

.quote-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; }
.quote-table th { text-align: left; padding: 12px 16px; background: var(--bg-muted); font: 600 .85rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quote-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.quote-table td small { color: var(--primary-ink); }
.quote-table .num { text-align: right; font-weight: 600; white-space: nowrap; }
.quote-note { margin-top: 16px; padding: 14px 16px; background: var(--bg-muted); border-radius: var(--radius-sm); font-size: .95rem; }

.quote-thanks { max-width: 680px; text-align: center; }
.quote-thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--primary)); color: #fff; }
.quote-thanks__icon .icon { width: 40px; height: 40px; }
.quote-thanks__number { font-size: 1.15rem; }
.quote-thanks__actions { justify-content: center; }
.quote-thanks .btn--outline { background: #fff; }

.quote-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.quote-modal[hidden] { display: none; }
.quote-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .6); }
.quote-modal__dialog { position: relative; width: min(480px, 100%); padding: 32px 28px 28px; background: #fff; border-top: 4px solid var(--primary); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.quote-modal__close { position: absolute; top: 10px; right: 10px; border: 0; background: none; padding: 6px; color: var(--muted); cursor: pointer; }
.quote-modal__close .icon { width: 22px; height: 22px; }
.quote-modal__title { font: 700 1.35rem/1.2 var(--font-head); color: var(--ink); margin: 0 28px 18px 0; }
.quote-modal__item { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--primary-50); border-radius: var(--radius-sm); margin-bottom: 22px; }
.quote-modal__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; }
.quote-modal__name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.quote-modal__meta { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.quote-modal__actions { display: grid; gap: 10px; }
@media (min-width: 480px) { .quote-modal__actions { grid-template-columns: 1fr 1fr; } }

/* 14. Catálogo de productos (portado de J&J) ---------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 14px; font-weight: 500; background: #fff;
}
.chip:hover { border-color: var(--primary); color: var(--primary-ink); }
.chips--sub { margin-bottom: 20px; }
/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-top: 48px; padding-bottom: 88px; }
.catalog__aside { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: calc(var(--header-h) + 56px); }
.catalog__search { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.catalog__search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; }
.catalog__search input:focus { outline: none; }
.catalog__search:focus-within { border-color: var(--ink); }
.catalog__search button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; }
.catalog__search--wide { max-width: 560px; margin: 24px 0; }
.filter { border: 1px solid var(--line); border-radius: var(--radius); }
.filter__title { padding: 14px 16px; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.filter__title::-webkit-details-marker { display: none; }
.filter__list { list-style: none; padding: 8px 0; }
.filter__list a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 16px; font-size: 15px; border-left: 3px solid transparent; }
.filter__list a.is-active { border-left-color: var(--primary); color: var(--primary-ink); font-weight: 600; background: var(--bg-muted); }
.filter__count { color: var(--muted); font-size: 13px; }
.aside-cta { padding: 20px; background: var(--ink); color: #C9CED6; border-radius: var(--radius); font-size: 15px; }
.aside-cta__title { margin-bottom: 6px; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #fff; }
.catalog__count { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.product-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { display: block; aspect-ratio: 1; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__noimg, .gallery__noimg { display: block; width: 100%; height: 100%; background: var(--bg-muted); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product-card__brand { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--primary-ink); }
.product-card__title { font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--primary-ink); }
.product-card__sku { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.product-card__cta { margin-top: auto; align-self: flex-start; }
.breadcrumbs { padding: 18px 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #B5BCC6; }
.breadcrumbs a:hover { color: var(--primary-ink); }
.breadcrumbs [aria-current] { color: var(--text); }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-bottom: 64px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 56px); }
.gallery__main { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.gallery__stage { position: absolute; inset: 0; display: block; padding: 24px; cursor: zoom-in; }
.gallery__image { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.gallery__image.is-loading { opacity: .35; }
/* Lupa: la foto grande se mueve con el mouse (solo con mouse) */
.gallery__lens {
    position: absolute; inset: 0; background-color: #fff; background-repeat: no-repeat; background-size: 250%;
    opacity: 0; pointer-events: none; transition: opacity .15s;
}
.gallery.is-zooming .gallery__lens { opacity: 1; }
.gallery__hint {
    position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px; background: rgba(34, 34, 34, .8); color: #fff; font-size: 12px; pointer-events: none;
    transition: opacity .2s;
}
.gallery__hint .icon { width: 14px; height: 14px; }
.gallery__hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
    .gallery__hint-desk { display: none; }
    .gallery__hint-touch { display: inline; }
}
.gallery.is-zooming .gallery__hint { opacity: 0; }
.gallery__nav {
    position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: background .15s, color .15s, opacity .15s;
}
.gallery__nav:hover, .gallery__nav:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery__nav .icon { width: 22px; height: 22px; }
.gallery__nav--prev { left: 10px; } .gallery__nav--prev .icon { transform: rotate(90deg); }
.gallery__nav--next { right: 10px; } .gallery__nav--next .icon { transform: rotate(-90deg); }
.gallery.is-zooming .gallery__nav { opacity: 0; }
.gallery__counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; list-style: none; }
.gallery__thumb { display: block; width: 100%; aspect-ratio: 1; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }

/* ---------- Vista ampliada (lightbox) ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 18, 18, .96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(18, 18, 18, .96); }
.lightbox[open] { display: block; }
.lightbox__stage { position: absolute; inset: 64px 72px 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lightbox__stage > img { flex: 0 1 auto; min-width: 0; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: transform .25s ease; transform-origin: 50% 50%; }
.lightbox.is-zoomed .lightbox__img { cursor: zoom-out; transform: scale(var(--lb-scale, 2.5)); transition: transform .25s ease, transform-origin 0s; }
.lightbox.is-panning .lightbox__img { transition: none; }
.lightbox__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px 0 24px; }
.lightbox__counter { font-size: 14px; color: #C9CCE0; }
.lightbox__tip { margin-right: auto; font-size: 13px; color: #9EA2C2; }
.lightbox__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--primary); border-color: var(--primary); }
.lightbox__btn svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -22px; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--prev svg { transform: rotate(90deg); }
.lightbox__nav--next { right: 16px; } .lightbox__nav--next svg { transform: rotate(-90deg); }
.lightbox__thumbs { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; padding: 0 16px; overflow-x: auto; }
.lightbox__thumb { flex: 0 0 auto; width: 56px; height: 56px; padding: 4px; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__thumb:hover { opacity: .9; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--primary); }
html.has-lightbox { overflow: hidden; }
@media (max-width: 700px) {
    .lightbox__stage { inset: 56px 0 84px; }
    .lightbox__bar { height: 56px; padding: 0 8px 0 16px; }
    .lightbox__tip { display: none; }
    .lightbox__counter { margin-right: auto; }
    .lightbox__nav { display: none; }
    .lightbox__thumb { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox__img, .gallery__lens { transition: none; } }

.product__title { font-size: clamp(30px, 3.2vw, 42px); color: var(--ink); }
.product__excerpt { font-size: 17px; color: var(--muted); }
.specs { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.specs__title { margin: 0; padding: 12px 18px; font-size: 18px; background: var(--bg-muted); border-bottom: 1px solid var(--line); color: var(--ink); }
.specs__list { margin: 0; }
.specs__row { display: grid; grid-template-columns: 40% 60%; border-bottom: 1px solid var(--line); }
.specs__row:last-child { border-bottom: 0; }
.specs__row dt { padding: 11px 18px; font-weight: 600; color: var(--ink); }
.specs__row dd { margin: 0; padding: 11px 18px; color: var(--text); }
.specs__row dd a { color: var(--primary-ink); }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.product__actions > :first-child { grid-column: 1 / -1; }
.product__actions > :nth-child(2):last-child { grid-column: 1 / -1; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
.product-detail > :only-child { grid-column: 1 / -1; max-width: 860px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; border-radius: var(--radius); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .3s; }
.yt:hover img { opacity: .75; transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 10px; background: var(--primary); }
.yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Ajustes Milenial */
.page-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-hero__logo { max-height: 80px; max-width: 200px; background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.catalog { padding-top: clamp(32px, 5vw, 48px); padding-bottom: clamp(56px, 8vw, 88px); }
.catalog__search button { cursor: pointer; display: grid; place-items: center; }
.catalog__search button .icon { width: 18px; height: 18px; }
.filter { background: #fff; }
.filter__title { font-size: 1rem; }
.filter__list a { color: var(--text); }
.aside-cta { background: var(--ink); }
.aside-cta__title { font-size: 1.05rem; }
.product-card { border-radius: var(--radius); overflow: hidden; }
.product-card__noimg, .gallery__noimg { display: grid; place-items: center; color: #d6c3cf; }
.product-card__noimg .icon, .gallery__noimg .icon { width: 48px; height: 48px; }
.product-card__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.product-card__cta { width: 100%; }
.add-to-quote--card { flex-direction: column; align-items: stretch; }
.add-to-quote--card .add-to-quote__btn { width: 100%; padding: .7em 1em; font-size: .9rem; }
.add-to-quote--product { margin: 24px 0 12px; }
.add-to-quote--product .add-to-quote__btn { flex: 1; min-width: 220px; }
.breadcrumbs { padding: 18px 0; }
.breadcrumbs a { color: var(--muted); }
.product__title { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
.product__excerpt p { margin: 0 0 .6em; }
.specs { overflow: hidden; }
.specs__title { font-size: 1rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.product__note { color: var(--muted); font-size: .9rem; margin: 0; }
.product-detail { padding-top: 0; }
.product-detail .prose h2:first-child, .specs__heading { margin-top: 0; font-size: 1.4rem; }
.quote-item__thumb { display: block; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.quote-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.quote-item__name a { color: var(--ink); }
.quote-item__name a:hover { color: var(--primary-ink); }
.quote-item__sku { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.quote-actions__more { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-table small.muted { color: var(--muted); }
.lightbox [hidden] { display: none !important; }
@media (max-width: 1000px) {
    .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .product, .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .catalog { grid-template-columns: 1fr; gap: 24px; }
    .catalog__aside { position: static; }
    .product__gallery { position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card__body { padding: 12px; }
    .product-card__title { font-size: .98rem; }
    .specs__row { grid-template-columns: 42% 58%; }
    .specs__row dt, .specs__row dd { padding: 10px 12px; }
    .page-hero__inner { flex-direction: column; align-items: flex-start; }
}

/* 15. Clientes y reseñas ------------------------------------------------------ */
.reviews { display: grid; gap: 20px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.review::before { content: "“"; position: absolute; top: 6px; right: 22px; font: 700 4.5rem/1 var(--font-head); color: var(--primary-50); }
.review__stars { margin: 0; color: #f2a900; letter-spacing: 2px; font-size: 1.05rem; }
.review__stars-off { color: #e3e3e3; }
.review__text { margin: 0; flex-grow: 1; }
.review__text p { margin: 0; font-size: 1.02rem; color: var(--text); }
.review__author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__author strong { display: block; color: var(--ink); font-size: .98rem; }
.review__author small { color: var(--muted); font-size: .86rem; }
.review__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review__photo--logo { border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.review__initial { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--primary)); color: #fff; font: 700 1.1rem/1 var(--font-head); }

.client-logos-wrap { margin-top: 40px; }
.client-logos { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .client-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .client-logos { grid-template-columns: repeat(6, 1fr); } }
.client-logos__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.client-logos__item a { display: flex; align-items: center; justify-content: center; width: 100%; color: var(--ink); }
.client-logos__item img { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.client-logos__item:hover img { transform: scale(1.04); }
.client-logos__item--dark { background: var(--ink); border-color: var(--ink); }
.client-logos__item--dark .client-logos__name { color: #fff; }
.client-logos__item--dark .client-logos__sector { color: #bdbdbd; }
.client-logos__name { font: 600 .98rem/1.25 var(--font-head); color: var(--ink); }
.client-logos__sector { color: var(--muted); font-size: .78rem; }

/* Formulario de reseñas */
.reviews__cta { text-align: center; margin: 32px 0 0; }
.section-heading-row__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-form { margin-top: 8px; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.star-input legend span { color: var(--danger); }
.star-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input__stars label { font-size: 2rem; line-height: 1; color: #dcdcdc; cursor: pointer; transition: color .15s, transform .15s; }
.star-input__stars label:hover, .star-input__stars label:hover ~ label,
.star-input__stars input:checked ~ label { color: #f2a900; }
.star-input__stars label:hover { transform: scale(1.1); }
.star-input__stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.star-input.field--error .star-input__stars label { color: #f3c4c4; }

/* Animación de aparición (solo si hay JS y el usuario no pidió menos movimiento) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .console__cursor { animation: none; }
}
