/* Estudio LAV — hoja de estilos principal (mobile-first, sin dependencias)
   Paleta y tipografía tomadas del Squarespace de la marca:
   Poppins (300 cuerpo / 500 títulos) · negro #24252A · terracota #A5432A
   · caramelo #B57E5F · arena #D9C7B9 · arena clara #ECE8E5 · blanco */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --brand: #A5432A;        /* terracota: títulos, enlaces, botones (6.1:1 sobre blanco) */
  --brand-strong: #86341F; /* hover */
  --ink: #24252A;          /* negro de marca: texto, header, logo y footer (15.3:1) */
  --caramel: #B57E5F;      /* decorativo, no usar para texto pequeño */
  --sand: #D9C7B9;         /* bordes y detalles */
  --sand-light: #ECE8E5;   /* fondos alternos */
  --white: #FFFFFF;
  --text: var(--ink);
  --text-soft: #55565C;    /* secundario (7.3:1 sobre blanco, 6:1 sobre arena clara) */
  --footer: var(--ink);
  --error: #9B1C1C;
  --success: #1F6B3A;

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-display: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);
  --fs-small: 0.875rem;

  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -12px rgb(74 42 31 / 0.25);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-weight: 300; font-size: var(--fs-body); line-height: 1.75; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
strong, b { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }
main:focus, section:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--space-section); }
.section--sand { background: var(--sand-light); }
.center { text-align: center; margin-top: 2.5rem; }
.rounded { border-radius: var(--radius-lg); }

/* ---------- tipografía ---------- */
.eyebrow { font-size: var(--fs-small); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.eyebrow--light { color: var(--white); }
.display { font-size: var(--fs-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--brand); text-wrap: balance; }
.display em { font-style: italic; font-weight: 300; }
.display--page { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.25; color: var(--brand); text-wrap: balance; }
.h2--light { color: var(--white); }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; color: var(--brand); margin-bottom: .5rem; }
.lead { font-size: var(--fs-lead); color: var(--text-soft); max-width: 60ch; margin-top: 1.25rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--white); font-weight: 500; font-size: .95rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: var(--white); }
.btn--small { min-height: 44px; padding: .55rem 1.2rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--arrow { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow, .link-arrow:hover .icon--arrow, .card:hover .icon--arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; min-height: 44px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(236 232 229 / .95); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--sand); box-shadow: 0 6px 24px -18px rgb(74 42 31 / .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 48px; padding-block: .5rem; }
.brand__logo { height: clamp(26px, 24px + .6vw, 32px); width: auto; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav-toggle__bars { position: relative; width: 24px; height: 16px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.site-nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); background: var(--sand-light); padding: 2rem var(--gutter); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.site-nav__list { display: flex; flex-direction: column; gap: .25rem; }
.site-nav__list a:not(.btn) { display: flex; align-items: center; min-height: 56px; font-size: 1.375rem; font-weight: 400; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); }
.site-nav__list a[aria-current="page"]:not(.btn) { font-weight: 500; }
.site-nav__list .btn { margin-top: 1.5rem; width: 100%; }
html.nav-open { overflow: hidden; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { position: static; height: auto; visibility: visible; opacity: 1; transform: none; padding: 0 0 1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; height: auto; visibility: visible; opacity: 1; transform: none; padding: 0; overflow: visible; background: none; }
  .site-nav__list { flex-direction: row; align-items: center; gap: clamp(1rem, .5rem + 1.5vw, 2.25rem); }
  .site-nav__list a:not(.btn) { min-height: 44px; font-size: .95rem; border: 0; position: relative; }
  .site-nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .site-nav__list a:not(.btn):hover::after, .site-nav__list a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .site-nav__list .btn { margin: 0; width: auto; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--space-section); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero__media { position: relative; padding-bottom: 2.5rem; max-width: 560px; justify-self: center; width: 100%; }
.hero__img--main { width: 86%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); margin-left: auto; }
.hero__img--accent { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--white); box-shadow: var(--shadow); }
.hero__media::before { content: ""; position: absolute; top: 8%; left: 6%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--sand-light); z-index: -1; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 3rem); background: linear-gradient(180deg, var(--sand-light), var(--white)); }
.page-hero--center { text-align: center; padding-bottom: var(--space-section); }
.page-hero--center .lead { margin-inline: auto; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: var(--fs-small); color: var(--text-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--caramel); }
.breadcrumb a { color: var(--text-soft); }

/* ---------- audiencias / pilares / proceso ---------- */
.audiences { display: grid; gap: 1.25rem; }
.audience { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--sand); border-radius: var(--radius-lg); background: var(--white); display: flex; flex-direction: column; gap: .75rem; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.audience:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.audience .link-arrow { margin-top: auto; }
@media (min-width: 768px) { .audiences { grid-template-columns: repeat(2, 1fr); } }

.checklist { display: grid; gap: .4rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: .9rem; height: .5rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.values { display: grid; gap: 2rem; }
.value { padding-top: 1.5rem; border-top: 1px solid var(--sand); }
.pillar__num, .num, .process__num { display: block; font-size: .95rem; font-weight: 500; color: var(--brand); letter-spacing: .1em; margin-bottom: .75rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }

.process { display: grid; gap: 1.25rem; }
.process__step { position: relative; padding: 1.75rem; background: var(--white); border-radius: var(--radius-lg); }
.process__num { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--white); letter-spacing: 0; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* ---------- servicios ---------- */
.service-detail { display: grid; gap: 0; border-top: 1px solid var(--sand); }
.service-detail__item { display: grid; gap: 1rem; padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); border-bottom: 1px solid var(--sand); }
@media (min-width: 900px) { .service-detail__item { grid-template-columns: 4rem 1.3fr 1fr; gap: 2.5rem; align-items: start; } }

.faq { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1rem 1.25rem; font-weight: 500; color: var(--brand); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.25rem 1.25rem; }

/* ---------- tarjetas ---------- */
.card-grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid > li { display: flex; }
.card { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand-light); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-4px); }
.card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card__meta { font-size: var(--fs-small); color: var(--text-soft); }
.card__title { font-size: var(--fs-h3); font-weight: 500; color: var(--brand); line-height: 1.35; }
.card__text { color: var(--text); }
.card__more { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--brand); }

/* ---------- caso / galería ---------- */
.gallery { display: grid; gap: 1rem; }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item--wide { grid-column: 1 / -1; } }
.case { display: grid; gap: 2rem; }
.case__copy p + p { margin-top: 1rem; }
.case__copy .h2 { margin-bottom: 1rem; }
.metrics { display: grid; gap: 1rem; align-content: start; }
.metrics div { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.metrics dt { font-size: var(--fs-small); color: var(--text-soft); }
.metrics dd { font-size: 1.5rem; font-weight: 500; color: var(--brand); }
@media (min-width: 900px) { .case { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }

/* ---------- split / cita ---------- */
.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__copy p { margin-top: 1rem; }
.split__copy .h2 { margin-bottom: .5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.quote { padding-block: var(--space-section); background: var(--sand-light); }
.quote--plain { background: var(--white); }
.quote__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.quote__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg) 200px var(--radius-lg) var(--radius-lg); }
.quote__body { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.quote__figure blockquote p { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-style: italic; line-height: 1.6; color: var(--text); }
.quote__figure figcaption { margin-top: 1rem; font-weight: 500; color: var(--brand); }
.quote__figure--center { text-align: center; max-width: 52rem; margin-inline: auto; }
.quote__figure--center blockquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); }
@media (min-width: 900px) { .quote__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- testimonios (scroll-snap, sin JS) ---------- */
.testimonials__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.testimonial { scroll-snap-align: start; display: flex; }
.testimonial figure { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 2rem; background: var(--sand-light); border-radius: var(--radius-lg); width: 100%; }
.testimonial blockquote p { font-size: 1.0625rem; font-style: italic; }
.testimonial figcaption { font-weight: 500; color: var(--brand); }
@media (min-width: 900px) { .testimonials__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* ---------- blog ---------- */
.empty { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem); border: 1px dashed var(--sand); border-radius: var(--radius-lg); }
.empty p + p { margin-top: .75rem; }
.post__cover { margin-block: 0 2.5rem; }
.post__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__back { padding-block: 2rem var(--space-section); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 500; color: var(--brand); line-height: 1.3; margin-top: 2.5rem; }
.prose h3 { font-size: var(--fs-h3); font-weight: 500; color: var(--brand); margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose blockquote { border-left: 3px solid var(--caramel); padding-left: 1.25rem; font-style: italic; }
.prose img { border-radius: var(--radius); }

/* ---------- contacto ---------- */
.contact { background: var(--brand); color: var(--white); padding-block: var(--space-section); }
.contact__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
.contact__intro > p { margin-top: 1rem; max-width: 48ch; }
.contact-list { display: grid; gap: .9rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { margin-top: .3rem; }
.contact-list--light a { color: var(--white); }
.contact-list--light a:hover { color: var(--sand-light); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }

.form { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.form__profiles { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__label { display: block; font-weight: 500; font-size: .95rem; color: var(--text); margin-bottom: .4rem; }
.req { color: var(--brand); }
.opt { font-weight: 300; color: var(--text-soft); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--sand); font-size: .95rem; font-weight: 400; transition: all .2s var(--ease); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--caramel); outline-offset: 2px; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1.5px solid var(--sand); border-radius: 12px; background: var(--white); font-size: 1rem; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgb(165 67 42 / .18); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { color: var(--error); font-size: .85rem; font-weight: 400; min-height: 0; margin-top: .3rem; }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .92rem; }
.field--check input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--brand); }
.field--check .field__error { grid-column: 1 / -1; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.form__note { font-size: .85rem; color: var(--text-soft); }
.form__status { font-weight: 400; }
.form__status:empty { display: none; }
.form__status--ok { color: var(--success); }
.form__status--error { color: var(--error); }
.js [data-show-for][hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pie ---------- */
.site-footer { background: var(--footer); color: #F3E9E4; padding-block: clamp(3rem, 2rem + 3vw, 5rem) 1.5rem; font-size: .95rem; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--sand); }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand img { width: 150px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 32ch; }
.site-footer__title { font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.site-footer__col ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.9; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); transition: background .25s, color .25s; }
.social a:hover { background: var(--white); color: var(--footer); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .2); font-size: .85rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- aviso de cookies ---------- */
.consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-inline: auto; background: var(--white); color: var(--text); border: 1px solid var(--sand); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .35); padding: 1.25rem 1.5rem; display: grid; gap: 1rem; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent__actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- animación de entrada (solo con JS y sin reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- quién soy ---------- */
.about { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.about__photo { margin: 0; max-width: 420px; }
.about__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.about__photo figcaption { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-small); }
.about__photo figcaption strong { color: var(--brand); font-size: 1rem; }
.about__quote { margin: 0 0 2rem; padding-left: 1.25rem; border-left: 3px solid var(--caramel); }
.about__quote p { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-style: italic; line-height: 1.6; }
.about__copy .h2 { margin-bottom: 1rem; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(280px, 380px) 1fr; } .about__photo { position: sticky; top: calc(var(--header-h) + 2rem); } }
.quote__img--portrait { aspect-ratio: 1; object-position: 40% 30%; max-width: 520px; }

/* ---------- experiencia en interiorismo ---------- */
.card__media { position: relative; }
.tag { position: absolute; left: .85rem; top: .85rem; background: rgb(255 255 255 / .94); color: var(--brand); font-size: .78rem; font-weight: 500; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; }
.notice { display: flex; gap: .75rem; align-items: flex-start; background: var(--sand-light); border: 1px solid var(--sand); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .95rem; }
.notice a { white-space: nowrap; }
.notice__icon { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 600; font-size: .85rem; font-style: italic; }
.section-head__text { margin-top: .75rem; max-width: 60ch; color: var(--text-soft); }
.center-text { text-align: center; }
.lead--center { margin-inline: auto; }
.masonry { columns: 1; column-gap: 1rem; }
.masonry__item { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.masonry__item img { width: 100%; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }

/* ---------- mi experiencia ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; }
.subnav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.1rem; border: 1.5px solid var(--sand); border-radius: 999px; text-decoration: none; font-weight: 400; }
.subnav a:hover { border-color: var(--brand); }
.subnav__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--sand-light); font-size: .8rem; font-weight: 500; }

/* ---------- header en negro de marca ---------- */
.site-nav__list a:not(.btn):hover { color: var(--brand); }
.site-nav__list .btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.site-nav__list .btn:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.site-footer__title { color: var(--sand); }

/* Franja de contacto separada del footer por fondo blanco: misma distancia
   que el padding inferior de la última sección de cada página. */
.contact { margin-bottom: calc(var(--space-section) - .75rem); } /* -.75rem compensa el interlineado del último texto de arriba */
