/* ==========================================================================
   Pocheville Catering — tema de WordPress (basado en la versión intermedia)
   Paleta inspirada en el logotipo caligráfico (tinta) y en sus fotos:
   marfil de mantel, verde salvia de jardín y porcelana, latón de las bandejas.
   ========================================================================== */

:root {
  --ivory: #f6f1e8;
  --paper: #fbf8f2;
  --white: #ffffff;
  --ink: #1f1b16;
  --ink-soft: #5b534a;
  --ink-mute: #8a8177;
  --sage: #5d6a4c;
  --sage-deep: #37402c;
  --sage-soft: #e3e6da;
  --brass: #a67c46;
  --brass-soft: #efe3d0;
  --line: #e4dccd;
  --danger: #a3402f;
  --ok: #4c6b3c;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --shadow: 0 20px 50px -24px rgba(31, 27, 22, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em.serif, .serif-italic { font-family: var(--serif); font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--sage-deep); --bd: var(--sage-deep); }
.btn:active { transform: translateY(1px); }
.btn--light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--light:hover { --bg: var(--brass-soft); --bd: var(--brass-soft); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.7); }
.btn--ghost-light:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--brass { --bg: var(--brass); --fg: var(--white); --bd: var(--brass); }
.btn--brass:hover { --bg: #8d6737; --bd: #8d6737; }
.btn--whatsapp { --bg: #1f7a4d; --fg: #fff; --bd: #1f7a4d; }
.btn--whatsapp:hover { --bg: #17613c; --bd: #17613c; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .72rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 248, 242, .96); border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.brand .logo-light { display: none; }
.has-hero .site-header:where(:not(.is-scrolled)) { background: transparent; border-color: transparent; }
.has-hero .site-header:where(:not(.is-scrolled)) .logo-dark { display: none; }
.has-hero .site-header:where(:not(.is-scrolled)) .logo-light { display: block; }
.has-hero .site-header:where(:not(.is-scrolled)) .nav a, .has-hero .site-header:where(:not(.is-scrolled)) .nav-toggle { color: var(--white); }
.has-hero .site-header:where(:not(.is-scrolled)) .nav .btn { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.7); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(31,27,22,.4); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a:not(.btn) {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--ivory); padding: 100px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink) !important; }
  .nav .btn { --bg: var(--ink) !important; --fg: var(--white) !important; --bd: var(--ink) !important; margin-top: 10px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle { color: var(--ink) !important; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open .site-header .logo-dark { display: block; }
  body.nav-open .site-header .logo-light { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; transform: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,17,13,.62) 0%, rgba(20,17,13,.35) 45%, rgba(20,17,13,0) 75%),
    linear-gradient(180deg, rgba(20,17,13,.55) 0%, rgba(20,17,13,.1) 30%, rgba(20,17,13,.25) 60%, rgba(20,17,13,.8) 100%);
}
.hero__content { padding-block: calc(var(--header-h) + 60px) clamp(56px, 9vw, 110px); }
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.3); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85);
}

.page-hero {
  position: relative; color: var(--white); isolation: isolate;
  min-height: clamp(380px, 58vh, 560px); display: flex; align-items: flex-end;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,17,13,.5), rgba(20,17,13,.2) 40%, rgba(20,17,13,.72)); }
.page-hero .container { padding-block: calc(var(--header-h) + 40px) clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
.page-hero p { max-width: 52ch; margin: 16px 0 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.breadcrumb { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--split h2 { margin: 0; max-width: 16ch; }
.section-head--split .lead { margin: 0; max-width: 44ch; }

/* Intro / sobre nosotros */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media .inset {
  position: absolute; width: 46%; right: -8%; bottom: -10%;
  border: 10px solid var(--paper); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow);
}
.section--ivory .split__media .inset { border-color: var(--ivory); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 500; line-height: 1; color: var(--sage-deep); }
.stat span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media .inset { right: 4%; }
  .split__media { margin-bottom: 40px; }
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.services--3 { grid-template-columns: repeat(3, 1fr); }
.service { display: flex; flex-direction: column; text-decoration: none; }
.service__img { overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.service__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service .num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.1rem; }
.service h3 { margin: 4px 0 10px; }
.service p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.service .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) { .services, .services--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services, .services--3 { grid-template-columns: 1fr; } .service__img img { aspect-ratio: 4 / 3; } }

/* Detalle de servicio (páginas de servicios) */
.service-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 1px; background: var(--brass); }
.checklist strong { font-weight: 600; }
@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__media { order: 0; }
}

/* Estilos / valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.section--ivory .value { background: var(--ivory); }
.value .num { font-family: var(--serif); font-size: 2.6rem; color: var(--brass); line-height: 1; display: block; margin-bottom: 18px; font-style: italic; }
.value p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Galería */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 14px; color: var(--white); font-size: .8rem; letter-spacing: .08em;
  background: linear-gradient(transparent, rgba(20,17,13,.7)); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }
.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 22vw)); gap: 14px; }
.gallery-strip figure { margin: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; position: relative; }
.gallery-strip figure:first-child { grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 160px 160px; }
  .gallery-strip figure:first-child { grid-column: span 2; grid-row: auto; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  background: none; border: 1px solid var(--line); border-radius: 40px; padding: 8px 18px; cursor: pointer;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
  transition: .25s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery figure.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 60px 16px;
  background: rgba(20,17,13,.94); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; max-width: min(92vw, 1400px); width: auto; object-fit: contain; border-radius: 2px; }
.lightbox__caption { color: rgba(255,255,255,.8); text-align: center; margin-top: 14px; font-size: .9rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 2rem; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Banda CTA */
.cta-band { position: relative; isolation: isolate; color: var(--white); text-align: center; padding-block: clamp(90px, 13vw, 170px); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(31, 36, 25, .66); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 48ch; margin: 0 auto 36px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { color: var(--brass-soft); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); }
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.contact-list a { text-decoration: none; font-size: 1.08rem; }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--sage-soft); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) sepia(.12); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Formulario */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; color: var(--ink-soft); padding: 0; }
.field .req { color: var(--brass); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b534a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc3ae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 3px rgba(93,106,76,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fdf6f4; }
.field .error { display: none; color: var(--danger); font-size: .82rem; margin-top: 6px; }
.field.has-error .error { display: block; }
.field .hint { font-size: .8rem; color: var(--ink-mute); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.field label.check { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--sage-deep); flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 40px; font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 500;
  background: var(--paper); color: var(--ink); transition: .2s var(--ease);
}
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); font-size: .95rem; }
.form-status.is-error { display: block; background: #fbeeea; color: var(--danger); }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .tick svg { width: 28px; height: 28px; }
.demo-note { font-size: .78rem; color: var(--ink-mute); margin-top: 16px; }

/* Pie */
.site-footer { background: var(--ink); color: rgba(246,241,232,.75); padding-top: clamp(64px, 8vw, 100px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); font-weight: 700; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(246,241,232,.25); border-radius: 50%; display: grid; place-items: center; transition: .25s var(--ease); }
.socials a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(246,241,232,.14); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .8rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #1f7a4d; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Portátiles con poca altura de pantalla ----------
   Windows escala la pantalla al 125–150 % (1366×768, 1536×864, 1920×1080…),
   y con la barra de Chrome quedan solo 600–800 px útiles. Se ajusta todo a la altura. */
@media (min-width: 961px) and (max-height: 860px) {
  :root { --header-h: 70px; --section: clamp(60px, 11vh, 110px); }
  .brand img { height: 36px; }
  h2 { font-size: clamp(2rem, 6.4vh, 3.4rem); }
  .eyebrow { margin-bottom: 14px; }
  .hero { min-height: 100vh; min-height: 100svh; align-items: center; }
  .hero__content { padding-block: calc(var(--header-h) + 2vh) 4vh; }
  .hero h1 { font-size: clamp(2.4rem, 9vh, 5rem); max-width: 16ch; margin-bottom: 2vh; }
  .hero p { font-size: clamp(1rem, 2.4vh, 1.15rem); margin-bottom: 3.4vh; max-width: 54ch; }
  .hero .btn { min-height: 46px; }
  .hero__meta { margin-top: 3.6vh; padding-top: 2vh; }
  .page-hero { min-height: clamp(300px, 54vh, 480px); }
  .page-hero h1 { font-size: clamp(2.4rem, 8vh, 4.2rem); }
  .page-hero .container { padding-block: calc(var(--header-h) + 28px) clamp(28px, 5vh, 56px); }
  .split__media img:not(.inset) { aspect-ratio: auto; height: min(76vh, 620px); }
  .service__img img { aspect-ratio: auto; height: clamp(220px, 42vh, 380px); }
  .service-detail__media img { max-height: 70vh; }
  .gallery-strip { grid-template-rows: repeat(2, clamp(150px, 30vh, 280px)); }
  .lightbox img { max-height: 78vh; }
}

/* ==========================================================================
   Capa WordPress
   Los bloques de Gutenberg envuelven las imágenes en <figure class="wp-block-image">
   y usan <p> donde el diseño tenía <span>. Estas reglas adaptan el diseño a ese HTML
   para que el resultado sea idéntico. (Mayor especificidad a propósito: así ganan a
   los estilos que WordPress carga para cada bloque, se carguen en el orden que sea.)
   ========================================================================== */

figure.wp-block-image { margin: 0; }
.wp-block-group.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Textos que en el diseño eran <span> y aquí son párrafos */
p.eyebrow { margin-top: 0; }
.hero p.eyebrow, .page-hero p.eyebrow, .cta-band p.eyebrow {
  font-size: .74rem; max-width: none; margin: 0 0 20px; color: var(--brass-soft);
}
.page-hero p.breadcrumb { font-size: .75rem; max-width: none; margin: 0 0 18px; color: rgba(255,255,255,.75); }
.hero .hero__meta p { margin: 0; font-size: inherit; max-width: none; color: inherit; }

/* Enlace con flecha cuando es un párrafo con un enlace dentro */
p.arrow-link { margin: 0; }
.arrow-link a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.arrow-link a::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link a:hover::after { transform: translateX(4px); }

/* Botones de Gutenberg con el aspecto de .btn */
.wp-block-buttons.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button .wp-block-button__link {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; height: auto;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.wp-block-button .wp-block-button__link:hover { --bg: var(--sage-deep); --bd: var(--sage-deep); }
.wp-block-button .wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button.is-style-light .wp-block-button__link { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.wp-block-button.is-style-light .wp-block-button__link:hover { --bg: var(--brass-soft); --bd: var(--brass-soft); }
.wp-block-button.is-style-ghost .wp-block-button__link { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { --bg: var(--ink); --fg: var(--white); }
.wp-block-button.is-style-ghost-light .wp-block-button__link { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.7); }
.wp-block-button.is-style-ghost-light .wp-block-button__link:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.wp-block-button.is-style-brass .wp-block-button__link { --bg: var(--brass); --fg: var(--white); --bd: var(--brass); }
.wp-block-button.is-style-brass .wp-block-button__link:hover { --bg: #8d6737; --bd: #8d6737; }
.wp-block-button.is-style-whatsapp .wp-block-button__link { --bg: #1f7a4d; --fg: #fff; --bd: #1f7a4d; }
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { --bg: #17613c; --bd: #17613c; }
.has-wa-icon .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--wa-icon) no-repeat center / contain; mask: var(--wa-icon) no-repeat center / contain;
}
:root {
  --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E");
}

/* Fotos de fondo (cabeceras y banda final) */
figure.hero__media img, figure.page-hero__media img, figure.cta-band__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Quiénes somos / Nosotros: foto grande + foto pequeña superpuesta */
.split__media figure:not(.inset) img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media figure.inset { overflow: hidden; border-radius: var(--radius); }
.split__media figure.inset img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* Tarjetas de servicio: toda la tarjeta es clicable (enlace "Descubrir" estirado) */
.service { position: relative; }
.service figure.service__img img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover figure.service__img img { transform: scale(1.05); }
.service p.num { margin: 0; }
.service p.arrow-link { margin-top: auto; align-self: flex-start; }
.service p.arrow-link, .section-head--split p.arrow-link { display: flex; }
.service figure.service__img { margin-bottom: 22px; }
.service .arrow-link a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 560px) { .service figure.service__img img { aspect-ratio: 4 / 3; } }

/* Franja de galería y galería completa */
.gallery-strip figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.wp-block-image { margin: 0 0 16px; }
.gallery figure.wp-block-image img { width: 100%; height: auto; vertical-align: bottom; }
.gallery figure.wp-block-image figcaption { margin: 0; }

/* Detalle de servicio: dos fotos, la segunda más baja */
.service-detail__media figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.service-detail__media > figure:first-child img { height: auto; }
.service-detail__media > figure:nth-child(2) { align-self: end; height: 80%; }
.service-detail__media > figure:only-child { grid-column: 1 / -1; }
.service-detail__media > figure:only-child img { aspect-ratio: 4 / 3; }

/* Valores */
.value p.num { margin: 0 0 18px; }

/* Cifras */
.stat p { margin: 0; }
.stat .stat__num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 500; line-height: 1; color: var(--sage-deep); }
.stat .stat__label { line-height: 1.7rem; }
.stat .stat__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

/* Páginas sin foto de cabecera (textos legales, 404): dejar sitio a la cabecera fija */
body:not(.has-hero) .site-main { padding-top: var(--header-h); }
.legal-page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .6em; }
.legal-page h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.legal-page h3 { margin-top: 1.4em; }
.legal-page ul, .legal-page ol { padding-left: 1.3em; }
.legal-page li { margin-bottom: .4em; }
.legal-page figure.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--ivory); font-weight: 600; }
.legal-page .placeholder-note { background: var(--brass-soft); border-left: 3px solid var(--brass); padding: 14px 18px; font-size: .92rem; }

/* Mapa bloqueado hasta aceptar cookies (aviso de Complianz con el estilo del diseño) */
.map .cmplz-placeholder-element, .map .cmplz-blocked-content-container { width: 100%; height: 100%; }
.map .cmplz-blocked-content-notice { font-family: var(--sans); border-radius: var(--radius); }

/* Formulario de presupuesto (Fluent Forms) con el aspecto del diseño */
.form-card .fluentform .ff-el-group { margin-bottom: 20px; }
.form-card .fluentform .ff-el-input--label label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft);
}
.form-card .fluentform .ff-el-is-required.asterisk-right label::after { color: var(--brass); }
.form-card .fluentform .ff-el-form-control {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 1rem; box-shadow: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-card .fluentform textarea.ff-el-form-control { min-height: 130px; resize: vertical; }
.form-card .fluentform .ff-el-form-control:hover { border-color: #cfc3ae; }
.form-card .fluentform .ff-el-form-control:focus { outline: none; border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 3px rgba(93,106,76,.15); }
.form-card .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--danger); background: #fdf6f4; }
.form-card .fluentform .error, .form-card .fluentform .text-danger { color: var(--danger); font-size: .82rem; margin-top: 6px; }
.form-card .fluentform .ff-el-form-check label, .form-card .fluentform .ff_t_c { font-size: .9rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-card .fluentform input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sage-deep); }
.form-card .fluentform .ff-btn-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; width: 100%;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink) !important; color: var(--white) !important; border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .25s var(--ease);
}
.form-card .fluentform .ff-btn-submit:hover { background: var(--sage-deep) !important; border-color: var(--sage-deep); }
.form-card .ff-message-success { background: var(--sage-soft); color: var(--sage-deep); border: 0; border-radius: var(--radius); padding: 22px; text-align: center; }
.form-card .ff-errors-in-stack { color: var(--danger); background: #fbeeea; border-radius: var(--radius); padding: 14px 18px; margin-top: 16px; }
.form-info { font-size: .82rem; color: var(--ink-mute); line-height: 1.6; margin-top: 18px; }
.form-info a { color: var(--ink-soft); }
.contact-form-section .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.contact-form-section .form-card { max-width: 860px; margin-inline: auto; }

/* Ajustes de portátiles con poca altura (equivalentes a las reglas del diseño) */
@media (min-width: 961px) and (max-height: 860px) {
  .split__media figure:not(.inset) img { aspect-ratio: auto; height: min(76vh, 620px); }
  .service figure.service__img img { aspect-ratio: auto; height: clamp(220px, 42vh, 380px); }
  .service-detail__media figure img { max-height: 70vh; }
  .hero p.eyebrow, .page-hero p.eyebrow, .cta-band p.eyebrow { margin-bottom: 14px; }
  .hero .wp-block-button .wp-block-button__link { min-height: 46px; }
}

/* Botón "Configurar cookies" del pie con aspecto de enlace (Complianz reabre el banner al pulsarlo) */
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-link-btn:hover { color: var(--white); text-decoration: underline; }
.form-card .fluentform .ff-el-form-check-label, .form-card .fluentform .ff_tc_label { display: inline-flex; align-items: flex-start; gap: 10px; }
.form-card .fluentform .ff-el-form-check-label input, .form-card .fluentform .ff_tc_checkbox input { margin-top: 3px; flex: none; }

/* Galería en cuadrícula: todas las fotos del mismo tamaño (v1.3) */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure, .gallery figure.wp-block-image { margin: 0; aspect-ratio: 4 / 5; }
.gallery figure.wp-block-image img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* ---------- v1.5: Filosofía, Equipo, Servicios, Fincas y On the Box ---------- */
/* Nota destacada (Le Cordon Bleu) */
p.quote-note {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--ink-soft);
  border-left: 2px solid var(--brass); padding: 4px 0 4px 22px; margin: 28px 0 0;
}
p.quote-note strong { font-weight: 600; color: var(--ink); }
/* Rejillas de valores de 2 y 4 columnas */
.values--2 { grid-template-columns: repeat(2, 1fr); }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.values .checklist { margin: 18px 0 24px; }
.values .value h3 { margin-bottom: 6px; }
.value p.arrow-link { margin: 0; }
@media (max-width: 1020px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .values--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values--4 { grid-template-columns: 1fr; } }
/* Tarjetas de 2 columnas (Fincas / On the Box en Servicios) */
.services--2 { grid-template-columns: repeat(2, 1fr); }
.services--2 .service figure.service__img img { aspect-ratio: 4 / 3; }
@media (max-width: 1020px) { .services--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services--2 { grid-template-columns: 1fr; } }
/* Fincas */
.fincas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.finca { background: var(--ivory); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.finca p.num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--brass); margin: 0 0 16px; }
.finca h3 { margin: 0 0 6px; }
.finca p.finca__place { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; }
.finca p { color: var(--ink-soft); }
.finca p.arrow-link { margin-top: auto; padding-top: 8px; align-self: flex-start; color: var(--ink); }
.finca figure.finca__img { margin: calc(-1 * clamp(28px, 4vw, 52px)) calc(-1 * clamp(28px, 4vw, 52px)) 28px; overflow: hidden; }
.finca figure.finca__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .fincas { grid-template-columns: 1fr; } }
/* On the Box: bloque de la carta */
.box-carta .btn-row { justify-content: center; margin-top: 8px; }
.box-carta h2 { margin-bottom: 14px; }
/* Menú con 7 enlaces: más compacto en pantallas medianas */
@media (min-width: 961px) and (max-width: 1240px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .72rem; letter-spacing: .1em; }
  .brand img { height: 36px; }
}
/* ---------- v1.5.1 ---------- */
/* Los enlaces del menú nunca se parten en dos líneas ("On the Box") */
.nav a { white-space: nowrap; }
/* Botón de menú del móvil: verde, como el botón de WhatsApp */
@media (max-width: 960px) {
  .nav-toggle {
    width: 46px; height: 46px; padding: 0; border-radius: 50%;
    display: grid; place-content: center;
    background: #1f7a4d; color: #fff !important;
    box-shadow: 0 8px 20px -10px rgba(0,0,0,.45);
    transition: background .25s var(--ease);
  }
  .nav-toggle:hover { background: #17613c; }
  .nav-toggle span { width: 22px; margin: 3px 0; }
  .has-hero .site-header:where(:not(.is-scrolled)) .nav-toggle, body.nav-open .nav-toggle { color: #fff !important; }
}
/* Menú móvil abierto: con 7 enlaces, en pantallas bajas se puede desplazar en vez de cortarse */
@media (max-width: 960px) {
  .nav { justify-content: safe center; overflow-y: auto; gap: 20px; padding-top: 90px; }
}
@media (max-width: 960px) and (max-height: 640px) {
  .nav a:not(.btn) { font-size: 1.6rem; }
  .nav { gap: 12px; }
}
