/* ==========================================================
   Juan José Óptico — Atelier Óptico Salamanca
   Tokens basados en DESIGN.md (exportado de Stitch)
   ========================================================== */

:root {
  /* Superficies */
  --surface: #fcf9f8;
  --surface-low: #f6f3f2;
  --surface-mid: #f0eded;
  --surface-high: #eae7e7;
  --surface-highest: #e5e2e1;

  /* Tinta */
  --ink: #1c1b1b;
  --ink-muted: #44474d;
  --outline: #75777e;
  --outline-soft: rgba(197, 198, 206, 0.45);
  --rule: rgba(26, 26, 26, 0.08);

  /* Marca */
  --primary: #041632;
  --primary-container: #1b2b48;
  --primary-hover: #14213d;
  --on-primary-container: #8393b5;
  --terracotta: #9c4328;
  --terracotta-light: #c86446;
  --terracotta-fixed: #ffdbd1;

  /* Tipografía */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado */
  --gutter: 1.25rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --section-y: 3.5rem;

  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --shadow-soft: 0 20px 40px -15px rgba(27, 43, 72, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 4rem;
  --tabbar-h: 4rem;
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --section-y: 5rem; }
}
@media (min-width: 1024px) {
  :root { --gutter: 3.5rem; --section-y: 7rem; --header-h: 5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--terracotta-fixed); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--primary); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

.material-symbols-outlined {
  font-size: 1.15em;
  line-height: 1;
  font-variation-settings: "wght" 400, "opsz" 24;
  user-select: none;
}

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--serif); font-weight: 400; color: var(--primary);
  font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.12; letter-spacing: -0.02em;
}
.headline {
  font-family: var(--serif); font-weight: 400; color: var(--primary);
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.18; letter-spacing: -0.015em;
}
.title-editorial { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.35; letter-spacing: 0.01em; color: var(--primary); }
.lead-serif { font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.45; color: var(--ink-muted); }
.body { font-size: 15px; line-height: 1.6; }
@media (min-width: 1024px) { .body { font-size: 1.0625rem; line-height: 1.65; } }
.body-sm { font-size: 13px; line-height: 1.55; }
.label-caps { font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; }
.label-ui { font-size: 13px; font-weight: 500; line-height: 1.25; }

.muted { color: var(--ink-muted); }
.text-primary { color: var(--primary); }
.text-terracotta { color: var(--terracotta); }
.text-outline { color: var(--outline); }
.text-right { text-align: right; }
.text-on-ink { color: #fff; }
.text-ink-soft { color: var(--on-primary-container); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.75rem;
}
.eyebrow .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--terracotta); flex: none; }
.eyebrow-light { color: var(--terracotta-fixed); }
.eyebrow .material-symbols-outlined { font-size: 1.25rem; }

.rule-accent { display: block; width: 3rem; height: 1px; background: var(--terracotta); opacity: 0.4; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.75rem 1.25rem;
  font-size: 13px; font-weight: 500; line-height: 1.2;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .material-symbols-outlined { font-size: 1.125rem; }
.btn-sm { padding: 0.5rem 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary-container); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-terracotta { background: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background: #87371f; transform: translateY(-1px); }
.btn-soft { background: var(--surface-mid); color: var(--primary); }
.btn-soft:hover { background: var(--surface-high); }
.btn-ink-soft { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.btn-ink-soft:hover { background: rgba(255, 255, 255, 0.14); }

.btn-row { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
@media (min-width: 560px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--primary); transition: background-color 0.2s;
}
.icon-btn:hover, .icon-btn:active { background: var(--surface-high); }
.icon-btn .material-symbols-outlined { font-size: 1.5rem; }
.icon-btn-round { border-radius: 50%; background: var(--surface-low); color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 13px; font-weight: 500; color: var(--terracotta); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(252, 249, 248, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 4px 16px rgba(0, 0, 0, 0.03); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.625rem; color: #14213d; }
.brand-mark { width: 45px; height: 15px; flex: none; overflow: visible; }
@media (min-width: 400px) { .brand-mark { width: 54px; height: 18px; } }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
@media (min-width: 400px) { .brand-name { letter-spacing: 0.14em; } }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: 11px; color: var(--terracotta); line-height: 1; }
@media (min-width: 1024px) {
  .brand-mark { width: 66px; height: 22px; }
  .brand-name { font-size: 12px; }
  .brand-tag { font-size: 12px; }
}

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; gap: 2.25rem; }
  .main-nav a {
    position: relative; font-size: 13px; font-weight: 500; color: var(--ink-muted); padding: 0.5rem 0;
    transition: color 0.2s;
  }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px;
    background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .main-nav a:hover, .main-nav a.is-active { color: var(--primary); }
  .main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
  .menu-toggle { display: none; }
}
.header-actions { display: flex; align-items: center; gap: 0.25rem; }

/* ---------- Menú móvil ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); overflow-y: auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform 0.45s var(--ease); }
.drawer-top { padding: 0.75rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.drawer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.drawer-nav a {
  font-family: var(--serif); font-size: 1.75rem; line-height: 1.3; font-weight: 500;
  color: var(--ink-muted); min-height: 44px; display: flex; align-items: center; transition: color 0.2s;
}
.drawer-nav a:hover, .drawer-nav a.is-active { color: var(--terracotta); font-style: italic; }
.drawer-bottom { padding: 1.5rem var(--gutter); background: var(--surface-low); display: flex; flex-direction: column; gap: 1rem; }
.drawer-bottom p { margin-top: 0.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 600px; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 2rem;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, rgba(252, 249, 248, 0.8) 45%, rgba(252, 249, 248, 0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-card {
  animation: hero-in 0.9s var(--ease) both;
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(252, 249, 248, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--outline-soft); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-soft);
}
.hero-card .eyebrow { margin-bottom: 0; }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin-top: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--outline-soft);
}
.hero-foot-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 13px; }

@media (min-width: 768px) {
  .hero { min-height: 680px; }
  .hero-card { max-width: 600px; padding: 2rem; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(92vh, 860px); align-items: center; padding-bottom: 4rem; }
  .hero-media { left: 38%; }
  .hero-media img { object-position: center; }
  .hero-media::after {
    background: linear-gradient(to right, var(--surface) 0%, rgba(252, 249, 248, 0.55) 22%, rgba(252, 249, 248, 0) 55%);
  }
  .hero-card {
    max-width: 620px; padding: 0; gap: 1.5rem;
    background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hero-card .lead-serif { font-size: 1.375rem; }
  .hero-foot { max-width: 520px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface-low); }
.section-tint-2 { background: var(--surface-mid); }

.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) {
  .section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
}

/* Manifiesto */
.manifesto { display: grid; gap: 2rem; }
.manifesto-text { display: flex; flex-direction: column; gap: 1rem; }
.manifesto-text .eyebrow { margin-bottom: -0.25rem; }
.stats {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.stats > div { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.3; }
.stats-rule { width: 1px; height: 2.5rem; background: var(--outline-soft); }

.quote-figure { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-mid); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.quote-figure img { width: 100%; height: 16rem; object-fit: cover; }
.quote-figure figcaption { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.875rem 1rem; background: var(--surface-high); }
.quote { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: var(--primary); }

@media (min-width: 768px) {
  .manifesto { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .quote-figure img { height: 26rem; }
}
@media (min-width: 1024px) {
  .manifesto { grid-template-columns: 7fr 5fr; gap: 6rem; }
  .manifesto-text { max-width: 620px; gap: 1.25rem; }
  .quote-figure img { height: 34rem; }
  .stat-num { font-size: 1.75rem; }
}

/* Chips */
.chips {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 1rem; padding: 0 var(--gutter) 0.25rem;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 0.6rem 1rem; border-radius: 999px; min-height: 36px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--surface-mid); color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.chip:hover { background: var(--surface-high); }
.chip.is-active { background: var(--primary); color: #fff; }

/* Productos */
.product-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06); border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.product[hidden] { display: none; }
.product-media { position: relative; height: 14rem; background: var(--surface-mid); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.product-media img { height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
@media (min-width: 1024px) { .product-media { height: 17rem; } }

.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(252, 249, 248, 0.9); color: var(--terracotta);
}
.badge-ink { color: var(--primary); }
.badge-terracotta { background: var(--terracotta); color: #fff; }
.product-material {
  position: absolute; top: 0.85rem; right: 0.75rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--outline);
}
.product-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; }
.swatches { display: flex; gap: 0.375rem; }
.swatches i { width: 0.875rem; height: 0.875rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }

.empty-state { padding: 2rem 1rem; text-align: center; color: var(--ink-muted); font-family: var(--serif); font-style: italic; }

.catalog-banner {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: var(--surface-mid);
  transition: background-color 0.25s ease;
}
.catalog-banner:hover { background: var(--surface-high); }
.catalog-banner > .material-symbols-outlined:first-child { font-size: 1.5rem; }
.catalog-banner > .material-symbols-outlined:last-child { margin-left: auto; transition: transform 0.3s var(--ease); }
.catalog-banner:hover > .material-symbols-outlined:last-child { transform: translateX(4px); }
.catalog-text { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .catalog-banner { margin-top: 1.5rem; padding: 1.5rem 2rem; } }

/* Servicios */
.services { display: grid; gap: 1.5rem; }
.services-intro .eyebrow { margin-bottom: 0.75rem; }
.services-photo { display: none; }
.pillars { display: flex; flex-direction: column; gap: 0.5rem; }
.pillar {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pillar > div { display: flex; flex-direction: column; gap: 0.25rem; }
.pillar-num { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.25; color: var(--terracotta); }

@media (min-width: 1024px) {
  .services { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .services-photo { display: block; margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
  .services-photo img { width: 100%; height: 22rem; object-fit: cover; }
  .pillars { gap: 1rem; }
  .pillar { padding: 2rem; gap: 1.5rem; }
  .pillar-num { font-size: 2rem; }
  .pillar .title-editorial { font-size: 1.375rem; }
  .pillar .body-sm { font-size: 15px; line-height: 1.6; }
}

/* CTA cita previa */
.cta {
  display: grid; gap: 1rem;
  background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: 0 10px 30px -12px rgba(4, 22, 50, 0.35);
}
.cta-main { display: flex; flex-direction: column; gap: 0.75rem; }
.cta-main .eyebrow { margin-bottom: 0; }
.cta-info {
  display: flex; flex-direction: column; gap: 0.875rem;
  padding: 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05);
  color: var(--surface-highest); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.info-row { display: flex; gap: 0.625rem; align-items: flex-start; }
.info-row > .material-symbols-outlined { color: var(--terracotta-fixed); font-size: 1.25rem; margin-top: 0.1rem; }
.info-row .label-caps { color: var(--on-primary-container); display: block; margin-bottom: 0.15rem; }
.info-link { display: inline-block; margin-top: 0.35rem; font-size: 13px; color: var(--terracotta-fixed); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) { .cta { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .cta { grid-template-columns: 7fr 5fr; gap: 4rem; padding: 4rem; align-items: center; }
  .cta-main { gap: 1.25rem; }
  .cta-info { padding: 2rem; gap: 1.5rem; }
  .cta-info .body-sm { font-size: 15px; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--surface-low); padding-block: 2rem; margin-top: var(--section-y); }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 13px; font-weight: 500; color: var(--primary); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.375rem; }
.footer-links a:hover { color: var(--terracotta); }
.footer-links .material-symbols-outlined { color: var(--terracotta); }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .site-footer { padding-block: 3rem; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 1.5rem; }
  .footer-tag, .footer-legal { grid-column: span 1; }
  .footer-legal { text-align: right; }
}

/* ---------- Barra inferior (móvil) ---------- */
.tabbar {
  position: fixed; inset: auto 0 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 0.25rem env(safe-area-inset-bottom, 0px);
  background: rgba(252, 249, 248, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.04);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 0.5rem;
  font-size: 11px; font-weight: 500; line-height: 1.2; color: var(--ink-muted); transition: color 0.2s;
}
.tabbar a .material-symbols-outlined { font-size: 1.25rem; margin-bottom: 0.15rem; }
.tabbar a.is-active { color: var(--terracotta); font-weight: 600; }
.tabbar a.is-active .material-symbols-outlined { font-variation-settings: "FILL" 1, "wght" 400; }
@media (min-width: 1024px) { .tabbar { display: none; } }

/* ---------- Animaciones ---------- */
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Páginas interiores (WordPress) ---------- */
.page-content { padding-top: calc(var(--header-h) + 3rem); min-height: 60vh; }
.prose { max-width: 760px; }
.prose .headline { margin-bottom: 1.5rem; }
.entry > * + * { margin-top: 1rem; }
.entry h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--primary); margin-top: 2rem; }
.entry h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--primary); margin-top: 1.5rem; }
.entry a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.25rem; list-style: revert; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Sección partida: texto + foto a sangre ---------- */
.split { display: grid; grid-template-columns: 1fr; }
.split-text { padding: var(--section-y) var(--gutter); display: flex; align-items: center; }
.split-media { position: relative; margin: 0; min-height: 22rem; order: -1; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; flex-direction: column; gap: 0.3rem; max-width: 26rem;
  padding: 0.875rem 1rem; border-radius: var(--radius);
  background: rgba(252, 249, 248, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .split-media { order: 0; min-height: 100%; }
  .split-text {
    justify-content: flex-end;
    padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
    padding-right: clamp(2rem, 5vw, 6rem);
  }
  .split-text .manifesto-text { width: 100%; max-width: 600px; }
  .split-caption { left: 2.5rem; bottom: 2.5rem; }
}
@media (min-width: 1024px) { .split { min-height: 760px; } }

/* ---------- Tarjetas de gafas (sin filtro) ---------- */
.product-body > .label-caps { margin-bottom: -0.1rem; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 1.5rem; align-items: center; }
.reviews-score {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-low);
  border: 1px solid rgba(26, 26, 26, 0.06);
}
.reviews-num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--primary); }
.reviews-stars { color: var(--terracotta-light); letter-spacing: 0.15em; font-size: 1.125rem; }
.reviews-text { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.reviews-text .eyebrow { margin-bottom: 0; }
@media (min-width: 900px) {
  .reviews { grid-template-columns: 4fr 8fr; gap: 4rem; }
  .reviews-score { padding: 2.5rem; }
  .reviews-num { font-size: 4.5rem; }
}

/* Fotos reales en tarjetas: a sangre */
.product-media-photo { padding: 0; height: auto; aspect-ratio: 4 / 3; }
.product-media-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
@media (min-width: 1024px) { .product-media-photo { height: auto; } }

/* Fachada en el hero: centrar el rótulo */
.hero-media img { object-position: 50% 40%; }
@media (min-width: 1024px) { .hero-media img { object-position: 45% 35%; } }

/* Hero con la fachada: en móvil y tablet la foto va arriba, visible */
@media (max-width: 1023px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: var(--header-h) 0 1.5rem; }
  .hero-media { position: relative; inset: auto; height: clamp(260px, 64vw, 520px); }
  .hero-media img { object-position: 22% 30%; }
  .hero-media::after { background: linear-gradient(to top, var(--surface) 0%, rgba(252, 249, 248, 0) 40%); }
  .hero-inner { margin-top: -4.5rem; }
}
@media (min-width: 1024px) {
  .hero-media { left: 40%; }
  .hero-media img { object-position: 0% 30%; }
  .hero-media::after { background: linear-gradient(to right, var(--surface) 0%, rgba(252, 249, 248, 0.4) 14%, rgba(252, 249, 248, 0) 32%); }
}

@media (min-width: 1024px) { .hero-card { max-width: 520px; } .hero-card .lead-serif { font-size: 1.25rem; } }

/* ---------- Marcas ---------- */
.brands {
  display: grid; gap: 1.5rem; margin-top: 1.5rem;
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-low);
  border: 1px solid rgba(26, 26, 26, 0.06);
}
.brands-group { display: flex; flex-direction: column; gap: 0.75rem; }
.brands-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.brands-list li { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink-muted); }
.brands-list li.is-featured { color: var(--primary); font-weight: 600; }
@media (min-width: 900px) {
  .brands { grid-template-columns: 2fr 1fr; gap: 3rem; padding: 2rem 2.5rem; margin-top: 1.5rem; }
  .brands-list li { font-size: 1.5rem; }
}

/* ---------- Servicios: intro ---------- */
.services-lead { margin-top: 0.75rem; max-width: 30rem; }

/* ---------- Nota de contacto ---------- */
.cta-note { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.5rem; }
.cta-note .material-symbols-outlined { font-size: 1.15rem; color: var(--terracotta-fixed); margin-top: 0.1rem; }

/* ---------- Mapa (se carga al pulsar) ---------- */
.map-embed {
  position: relative; margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06);
  aspect-ratio: 4 / 3; min-height: 280px;
}
@media (min-width: 768px) { .map-embed { aspect-ratio: 21 / 8; } }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.5rem; text-align: center;
}
.map-placeholder > .material-symbols-outlined { font-size: 2rem; }
.map-placeholder .body-sm { max-width: 26rem; }
.map-placeholder .btn { margin-top: 0.5rem; }

/* =========================================================
   Páginas interiores
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav { gap: 1.25rem; }
  .main-nav a { font-size: 12.5px; }
}
@media (min-width: 1280px) { .main-nav { gap: 1.75rem; } }

.btn-ghost { border-color: rgba(156, 67, 40, 0.45); color: var(--primary); background: transparent; align-self: flex-start; }
.btn-ghost:hover { background: var(--surface-low); border-color: var(--terracotta); }
.section-tight { padding-top: 0; }
.section-spacer { height: var(--section-y); }

/* Cabecera de página */
.page-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: var(--header-h); }
.page-hero-media { position: relative; height: clamp(220px, 56vw, 420px); background: var(--surface-mid); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0%, rgba(252, 249, 248, 0) 45%); }
.page-hero-icon .page-hero-media { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-low), var(--surface-high)); }
.page-hero-icon .page-hero-media .material-symbols-outlined { font-size: clamp(6rem, 22vw, 11rem); color: var(--terracotta); opacity: 0.22; font-variation-settings: "wght" 200, "opsz" 48; }
.page-hero-inner { position: relative; z-index: 1; margin-top: -2.5rem; }
.page-hero-text { display: flex; flex-direction: column; gap: 1rem; max-width: 620px; }
.page-hero-text .eyebrow { margin-bottom: 0; }
.page-hero-text .display { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); }
@media (min-width: 1024px) {
  .page-hero { min-height: 520px; justify-content: center; padding-bottom: 3rem; }
  .page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 44%; height: auto; }
  .page-hero-media::after { background: linear-gradient(to right, var(--surface) 0%, rgba(252, 249, 248, 0.5) 18%, rgba(252, 249, 248, 0) 45%); }
  .page-hero-inner { margin-top: 0; padding-top: 2rem; }
  .page-hero-text { max-width: 540px; }
}

/* Fila de iconos */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem 1rem; margin: 0; padding: 2rem 0; list-style: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.features li { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; font-family: var(--serif); font-size: 1.0625rem; color: var(--primary); }
.features .material-symbols-outlined { font-size: 2rem; color: var(--terracotta); font-variation-settings: "wght" 300, "opsz" 40; }

/* Tarjeta partida (imagen + texto) */
.split-card { display: grid; gap: 1.5rem; align-items: center; }
.split-card-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-mid); }
.split-card-media img { width: 100%; height: 100%; object-fit: cover; }
.split-card-icon { display: flex; align-items: center; justify-content: center; }
.split-card-icon .material-symbols-outlined { font-size: 6rem; color: var(--terracotta); opacity: 0.35; font-variation-settings: "wght" 200, "opsz" 48; }
.split-card-text { display: flex; flex-direction: column; gap: 1rem; }
.split-card-tint { background: var(--surface-low); border-radius: var(--radius-lg); padding: 1rem; }
@media (min-width: 900px) {
  .split-card { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-card-tint { padding: 0 3rem 0 0; gap: 3.5rem; }
  .split-card-tint .split-card-media { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
}

/* Rejilla de servicios */
.service-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.service-media { aspect-ratio: 16 / 10; background: var(--surface-mid); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-media-icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-mid), var(--surface-high)); }
.service-media-icon .material-symbols-outlined { font-size: 4.5rem; color: var(--terracotta); opacity: 0.55; font-variation-settings: "wght" 200, "opsz" 48; }
.service-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; flex: 1; }
.service-body .link-arrow { margin-top: auto; padding-top: 0.5rem; }

.also { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.also ul { display: grid; gap: 0.75rem 2rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.also li { display: flex; gap: 0.6rem; align-items: center; font-size: 15px; }
.also .material-symbols-outlined { color: var(--terracotta); font-size: 1.3rem; }
@media (min-width: 768px) { .also ul { grid-template-columns: 1fr 1fr; } }

/* Proceso + precio */
.process { display: grid; gap: 1.5rem; }
.process-steps .headline { margin-bottom: 1.25rem; }
.process .pillar { background: var(--surface-low); }
.price-card { align-self: start; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06); }
.price { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--primary); margin: 0.5rem 0; }
.price-note { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.price-note .material-symbols-outlined { color: var(--terracotta); font-size: 1.1rem; }
@media (min-width: 900px) { .process { grid-template-columns: 7fr 4fr; gap: 4rem; } .price-card { margin-top: 4rem; } }

/* Acordeón (lentillas, baja visión) */
.lens-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .lens-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.accordion { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(26, 26, 26, 0.08); background: var(--surface); }
.accordion-title { padding: 1rem 1.25rem; background: var(--surface-low); color: var(--ink-muted); margin: 0; }
.accordion details { border-top: 1px solid var(--rule); }
.accordion details:first-of-type { border-top: 0; }
.accordion-title + details { border-top: 1px solid var(--rule); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .material-symbols-outlined { color: var(--terracotta); transition: transform 0.3s var(--ease); }
.accordion details[open] summary .material-symbols-outlined { transform: rotate(45deg); }
.accordion details p { padding: 0 1.25rem 1.25rem; margin: 0; }
.lens-note { display: flex; flex-direction: column; gap: 1rem; }

/* Contacto */
.contact-layout { display: grid; gap: 1rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 5fr 7fr; gap: 1.5rem; align-items: stretch; } .contact-layout .map-embed { height: 100%; aspect-ratio: auto; margin-top: 0; } }
.contact-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06); }
.contact-card .info-row > .material-symbols-outlined { color: var(--terracotta); font-size: 1.5rem; }
.contact-card .title-editorial { margin-bottom: 0.15rem; }
.contact-card a { color: var(--primary); }
.contact-note { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--ink-muted); padding-top: 1rem; border-top: 1px solid var(--rule); }
.contact-note + .contact-note { border-top: 0; padding-top: 0; }
.contact-note .material-symbols-outlined { color: var(--terracotta); font-size: 1.1rem; margin-top: 0.1rem; }

/* Franja CTA reutilizable */
.section-cta { padding-top: 0; }
.cta-main .headline { margin: 0; }
.cta-solo { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .cta-solo { grid-template-columns: 1fr auto; } .cta-solo .cta-main { display: grid; grid-template-columns: 1fr auto; column-gap: 3rem; align-items: center; } .cta-solo .cta-main .btn-row { grid-column: 2; grid-row: 1 / span 2; } }
.services-more { margin-top: 1.25rem; }

/* ---------- Menú: 8 enlaces → se muestra completo desde 1200px ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1200px) {
  .main-nav { gap: 1.35rem; }
  .main-nav a { font-size: 13px; }
}
@media (min-width: 1360px) { .main-nav { gap: 1.75rem; } }

/* ---------- Novedades ---------- */
.page-hero-compact { min-height: 0; padding-bottom: 0; }
.page-hero-compact .page-hero-inner { margin-top: 0; padding-top: 3rem; }
@media (min-width: 1024px) { .page-hero-compact { min-height: 0; padding-bottom: 0; } .page-hero-compact .page-hero-inner { padding-top: 4.5rem; } .page-hero-compact .page-hero-text { max-width: 760px; } }
.page-hero-text .eyebrow a:hover, .single-head .eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-top-tight { padding-top: 2.5rem; }

.post-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-low); border: 1px solid rgba(26, 26, 26, 0.06); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-mid); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-mid), var(--surface-high)); }
.post-card-icon .material-symbols-outlined { font-size: 3.5rem; color: var(--terracotta); opacity: 0.45; font-variation-settings: "wght" 200, "opsz" 48; }
.post-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; flex: 1; }
.post-card-body .title-editorial a:hover { color: var(--terracotta); }
.post-card-body .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.empty-blog { padding: 3rem 0; font-family: var(--serif); font-style: italic; font-size: 1.125rem; }

.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.85rem; border-radius: var(--radius); background: var(--surface-low); font-size: 13px; font-weight: 500; color: var(--primary); }
.nav-links .page-numbers.current { background: var(--primary); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.single-body { padding-top: 2rem; padding-bottom: var(--section-y); }
.single-cover { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.single-cover img { width: 100%; height: auto; }
.single-post .entry { font-size: 1.0625rem; line-height: 1.75; }
.single-post .entry img { border-radius: var(--radius-lg); }
.single-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 14px; }
.single-nav a { color: var(--terracotta); }
.single-nav span:last-child { text-align: right; margin-left: auto; }

.lens-figure { margin: 0 0 0.5rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.lens-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Mapa OpenStreetMap con tono cálido */
.map-osm iframe { filter: grayscale(0.55) sepia(0.18) contrast(0.95) brightness(1.02); }
.map-cta { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; box-shadow: var(--shadow-soft); }
.home-map .map-embed { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .home-map .map-embed { aspect-ratio: auto; height: 380px; } }

/* ---------- Texto de cuerpo más contenido (v1.6.2) ---------- */
.body { font-size: 14.5px; line-height: 1.6; }
.body-sm { font-size: 13px; line-height: 1.55; }
@media (min-width: 1024px) {
  .body { font-size: 15px; line-height: 1.6; }
  .pillar .body-sm, .cta-info .body-sm { font-size: 14px; line-height: 1.55; }
  .hero-card .lead-serif { font-size: 1.125rem; }
}
.lead-serif { font-size: 1.0625rem; }
.single-post .entry { font-size: 15.5px; line-height: 1.7; }
.entry { font-size: 15px; line-height: 1.65; }

/* =========================================================
   v1.7.0 · Titulares en Montserrat + mosaico de la portada
   ========================================================= */
:root { --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif; }
.display, .headline { font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
.display { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.page-hero-text .display { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.headline { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem); line-height: 1.12; }
.title-editorial { font-weight: 500; letter-spacing: -0.01em; }
.lead-serif, .quote, .brand-tag, .drawer-nav a:hover, .drawer-nav a.is-active, .empty-state, .empty-blog { font-style: normal; }
.lead-serif { font-weight: 300; line-height: 1.5; }
.quote { font-weight: 500; }
.brand-tag { font-weight: 500; letter-spacing: 0.02em; }
.stat-num, .pillar-num, .reviews-num, .price { font-weight: 400; letter-spacing: -0.02em; }
.brands-list li { font-weight: 400; }
.brands-list li.is-featured { font-weight: 600; }
.features li { font-weight: 500; font-size: 1rem; }

/* Mosaico */
.bento { display: grid; gap: 0.5rem; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); min-height: 340px; color: #fff; isolation: isolate; }
.tile-tall { min-height: 460px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 18, 20, 0.78) 0%, rgba(18, 18, 20, 0.35) 55%, rgba(18, 18, 20, 0.15) 100%); transition: background 0.5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile:hover::before { background: linear-gradient(to top, rgba(18, 18, 20, 0.82) 0%, rgba(18, 18, 20, 0.42) 55%, rgba(18, 18, 20, 0.2) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.tile-eyebrow { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.tile-title { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); max-width: 14ch; }
.tile-c .tile-title, .tile-d .tile-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tile-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); max-width: 30ch; }
.tile-list { margin: 0.25rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }
.tile-list li::before { content: "✓"; color: var(--terracotta-fixed); margin-right: 0.6rem; }
.tile-btn { margin-top: 0.75rem; padding: 0.85rem 1.4rem; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px; transition: background 0.25s ease; }
.tile:hover .tile-btn { background: var(--surface-low); }
.tile-link { margin-top: 0.25rem; padding-bottom: 0.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 500; }
.tile-link::after { content: " →"; }
@media (min-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-a, .tile-b { grid-column: span 1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.08fr 1fr 1fr; grid-template-rows: 320px 320px; }
  .tile { min-height: 0; }
  .tile-a { grid-column: 1; grid-row: 1 / span 2; }
  .tile-b { grid-column: 2; grid-row: 1 / span 2; }
  .tile-c { grid-column: 3; grid-row: 1; }
  .tile-d { grid-column: 3; grid-row: 2; }
  .tile-body { padding: 2.5rem; }
  .tile-c .tile-body, .tile-d .tile-body { padding: 2rem; }
}
.tile::before { background: linear-gradient(to top, rgba(16, 16, 18, 0.86) 0%, rgba(16, 16, 18, 0.5) 50%, rgba(16, 16, 18, 0.22) 100%); }
.tile-a::before { background: linear-gradient(to top, rgba(16, 16, 18, 0.9) 0%, rgba(16, 16, 18, 0.6) 55%, rgba(16, 16, 18, 0.3) 100%); }
.tile-c::before { background: linear-gradient(100deg, rgba(40, 34, 30, 0.82) 0%, rgba(40, 34, 30, 0.55) 55%, rgba(40, 34, 30, 0.2) 100%); }
.tile-c img { object-position: 70% center; }
.tile-title, .tile-text, .tile-list { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }

/* Mosaico de Servicios */
.bento-services .s3 .tile-title, .bento-services .s4 .tile-title,
.bento-services .s5 .tile-title, .bento-services .s6 .tile-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); max-width: 16ch; }
.bento-services .s4::before { background: linear-gradient(to top, rgba(16, 16, 18, 0.9) 0%, rgba(16, 16, 18, 0.6) 55%, rgba(16, 16, 18, 0.3) 100%); }
.bento-services .s3::before { background: linear-gradient(100deg, rgba(40, 34, 30, 0.85) 0%, rgba(40, 34, 30, 0.55) 60%, rgba(40, 34, 30, 0.25) 100%); }
.bento-services .s2::before { background: linear-gradient(to top, rgba(16, 16, 18, 0.9) 0%, rgba(16, 16, 18, 0.6) 55%, rgba(16, 16, 18, 0.3) 100%); }
@media (min-width: 768px) {
  .bento-services { grid-template-columns: 1fr 1fr; }
  .bento-services .s5 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento-services { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 300px 300px 320px; }
  .bento-services .tile { min-height: 0; }
  .bento-services .s1 { grid-column: 1; grid-row: 1 / span 2; }
  .bento-services .s2 { grid-column: 2; grid-row: 1 / span 2; }
  .bento-services .s3 { grid-column: 3; grid-row: 1; }
  .bento-services .s4 { grid-column: 3; grid-row: 2; }
  .bento-services .s5 { grid-column: 1 / span 2; grid-row: 3; }
  .bento-services .s6 { grid-column: 3; grid-row: 3; }
  .bento-services .s3 .tile-body, .bento-services .s4 .tile-body, .bento-services .s6 .tile-body { padding: 2rem; }
}

/* Logos Kit Digital (obligatorio por la subvención) */
.kit-digital { margin-top: 2rem; padding: 1.5rem 0; background: #fff; border-top: 1px solid var(--rule); }
.kit-digital img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }
.site-footer { padding-bottom: 0 !important; }
@media (min-width: 1024px) { .kit-digital { margin-top: 2.5rem; padding: 2rem 0; } }

.brand-tag, .brand-name { white-space: nowrap; }
@media (max-width: 399px) { .brand-tag { font-size: 10px; letter-spacing: 0; } }

/* =========================================================
   v1.7.6 · Más aire en móvil
   ========================================================= */
@media (max-width: 767px) {
  :root { --section-y: 4.25rem; }
  .body { font-size: 15px; line-height: 1.75; }
  .body-sm { line-height: 1.7; }
  .lead-serif { line-height: 1.6; }
  .headline { line-height: 1.18; }
  .display { line-height: 1.12; }
  .eyebrow { margin-bottom: 1rem; }

  .hero-card { gap: 1.25rem; padding: 1.5rem 1.25rem; }
  .manifesto, .services, .process, .lens-layout, .contact-layout { gap: 2.5rem; }
  .manifesto-text, .split-card-text, .lens-note, .reviews-text, .cta-main, .page-hero-text { gap: 1.25rem; }
  .services-intro .eyebrow { margin-bottom: 1rem; }
  .services-intro .headline { margin-bottom: 0.75rem; }
  .services-lead { margin-top: 0.5rem; }
  .section-head { gap: 1rem; margin-bottom: 2rem; }
  .stats { margin-top: 1rem; padding: 1.25rem; }

  .btn-row { gap: 0.75rem; padding-top: 0.75rem; }
  .pillars { gap: 1rem; }
  .pillar { padding: 1.25rem; gap: 1rem; }
  .pillar > div { gap: 0.5rem; }

  .bento { gap: 1rem; }
  .tile-body { gap: 0.9rem; padding: 1.5rem; }
  .tile-list { gap: 0.55rem; }
  .product-grid, .post-grid, .service-grid { gap: 1.25rem; }
  .product-body, .post-card-body, .service-body { gap: 0.65rem; padding: 1.25rem; }
  .brands { gap: 1.75rem; margin-top: 1.5rem; padding: 1.5rem 1.25rem; }
  .brands-list { gap: 0.6rem 1.5rem; }

  .reviews { gap: 2rem; }
  .cta { gap: 1.75rem; padding: 1.75rem 1.25rem; }
  .cta-info { gap: 1.25rem; padding: 1.25rem; }
  .cta-note { margin-top: 0.75rem; }
  .contact-card { gap: 1.5rem; }
  .features { gap: 2rem 1rem; padding: 2.25rem 0; }
  .split-card { gap: 2rem; }
  .split-card-tint { padding: 1rem 1rem 1.75rem; }
  .accordion summary { padding: 1.2rem 1.25rem; }
  .also ul { gap: 1rem; }
  .page-hero-inner { margin-top: -2rem; }
  .footer-inner { gap: 1.25rem; }
}

/* =========================================================
   v1.8.0 · Hero en móvil y tablet: texto sobre la foto
   ========================================================= */
@media (max-width: 1023px) {
  .hero { min-height: calc(100svh - var(--tabbar-h)); max-height: 760px; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 2rem) 0 2.25rem; }
  .hero-media { position: absolute; inset: 0; height: auto; }
  .hero-media img { object-position: 20% 30%; }
  .hero-media::after { background: linear-gradient(to top, rgba(14, 16, 22, 0.88) 0%, rgba(14, 16, 22, 0.62) 45%, rgba(14, 16, 22, 0.2) 75%, rgba(14, 16, 22, 0.05) 100%); }
  .hero-inner { margin-top: 0; }
  .hero-card {
    background: transparent; border: 0; box-shadow: none; padding: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff;
  }
  .hero-card .display { color: #fff; }
  .hero-card .lead-serif { color: rgba(255, 255, 255, 0.9); }
  .hero-card .body { color: rgba(255, 255, 255, 0.82); }
  .hero-card .display, .hero-card .lead-serif, .hero-card .body { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25); }
  .hero-card .btn-primary { background: var(--terracotta); }
  .hero-card .btn-soft { background: rgba(255, 255, 255, 0.95); color: var(--primary); }
  .hero-foot { border-top-color: rgba(255, 255, 255, 0.25); }
  .hero-foot-item { color: rgba(255, 255, 255, 0.88); }
  .hero-foot-item .material-symbols-outlined { color: var(--terracotta-fixed); }
  .hero-foot .hero-rating { color: rgba(255, 255, 255, 0.75); }
}
@media (max-width: 1023px) {
  .hero-media::after { background: linear-gradient(to top, rgba(14, 16, 22, 0.92) 0%, rgba(14, 16, 22, 0.78) 40%, rgba(14, 16, 22, 0.45) 62%, rgba(14, 16, 22, 0.08) 85%, rgba(14, 16, 22, 0) 100%); }
  .hero-media img { object-position: 22% 12%; }
}
@media (max-width: 767px) {
  .hero-card > .body { display: none; }
}

/* Aviso de cookies */
.cookie-banner {
  position: fixed; left: 0.75rem; right: 0.75rem; z-index: 70;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
  background: var(--surface); border: 1px solid rgba(26, 26, 26, 0.1); border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -12px rgba(4, 22, 50, 0.28);
  opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.cookie-inner p { margin: 0; color: var(--ink-muted); }
.cookie-inner a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-actions .btn { flex: 1; }
@media (min-width: 1024px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* =========================================================
   v1.9.0 · Gestor de consentimiento + mapa estático
   ========================================================= */
.cookie-banner { max-height: calc(100vh - var(--tabbar-h) - 2rem); overflow-y: auto; }
.cookie-title { margin: 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--primary); }
.cookie-inner { gap: 0.85rem; }
.cookie-prefs { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.25rem 0; border-top: 1px solid var(--rule); }
.cookie-pref { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: 0.75rem; }
.cookie-pref + .cookie-pref { border-top: 1px solid var(--rule); }
.cookie-pref-title { margin: 0 0 0.2rem; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.cookie-pref .body-sm { margin: 0; }
.cookie-always { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--outline); padding-top: 0.15rem; }
.cookie-switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-highest); position: relative; cursor: pointer; transition: background 0.2s; margin-top: 0.1rem; }
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease); }
.cookie-switch:checked { background: var(--primary-container); }
.cookie-switch:checked::after { transform: translateX(18px); }
.cookie-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cookie-actions { flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 auto; }
.btn-ghost-sm { background: transparent; border-color: rgba(26, 26, 26, 0.18); color: var(--primary); }
.btn-ghost-sm:hover { background: var(--surface-low); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (min-width: 1024px) { .cookie-banner { max-width: 500px; } }

/* Mapa estático */
.map-static { display: block; position: relative; overflow: hidden; }
.map-static img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.map-static:hover img { transform: scale(1.02); }
.map-static .map-cta { pointer-events: none; }
.contact-layout .map-static { min-height: 320px; }

/* Tablas en páginas legales */
.entry .wp-block-table { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.entry th, .entry td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
.entry thead th { background: var(--surface-low); font-weight: 600; color: var(--primary); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.entry td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }

.cookie-banner [hidden] { display: none !important; }

/* Tabla de cookies legible sin desplazamiento */
.page .prose { max-width: 980px; }
.entry table { min-width: 0; table-layout: fixed; }
.entry table th:nth-child(1), .entry table td:nth-child(1) { width: 20%; }
.entry table th:nth-child(2), .entry table td:nth-child(2) { width: 19%; }
.entry table th:nth-child(3), .entry table td:nth-child(3) { width: 11%; }
.entry table th:nth-child(4), .entry table td:nth-child(4) { width: 36%; }
.entry table th:nth-child(5), .entry table td:nth-child(5) { width: 14%; }
.entry td:first-child { white-space: normal; word-break: break-word; }
.entry .wp-block-table td, .entry .wp-block-table th { border: 0; border-bottom: 1px solid var(--rule); }
.entry .wp-block-table thead { border-bottom: 2px solid var(--primary); }
@media (max-width: 767px) {
  .entry table { min-width: 620px; table-layout: auto; }
}
