/* =============================================================
   LOEMCO RIVER — Inmobiliaria · Editorial Cream
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg:        #f4efe6;   /* crema cálida */
  --bg-2:      #ece3d4;   /* arena */
  --paper:     #fbf8f2;
  --ink:       #211d16;   /* casi negro cálido */
  --ink-soft:  #3b352b;
  --ink-mute:  #7a7263;
  --accent:    #6d2231;   /* vino / burdeos (del logo) */
  --accent-d:  #551b26;
  --accent-2:  #a8814a;   /* dorado bronce (del logo) */
  --gold:      #c39a54;
  --line:      rgba(33, 29, 22, 0.13);
  --line-2:    rgba(33, 29, 22, 0.08);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 14px;
}

/* 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.015em; font-weight: 500; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* Defensive: reveal + split never invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* 3. Typography ----------------------------------------------- */
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
.section-num {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.4rem;
}
em { font-style: italic; font-family: var(--serif); }

/* 4. Layout utils --------------------------------------------- */
main { display: block; }
section { position: relative; padding-inline: var(--gutter); }

/* 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .5s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #f6f3ec;
  box-shadow: 0 10px 24px -12px rgba(109, 34, 49, 0.7);
}
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 16px 34px -12px rgba(109, 34, 49, 0.85); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(33,29,22,.03); }
.btn-block { width: 100%; }

/* 6. Splash --------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-out), opacity .6s ease;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  clip-path: inset(0 0 100% 0);
  opacity: 0; pointer-events: none;
}
@keyframes splashSafety {
  to { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
}
.splash-inner { display: grid; place-items: center; }
.splash-logo {
  width: min(320px, 62vw); height: auto;
  animation: splashFloat 2.6s var(--ease-soft) infinite;
}
@keyframes splashFloat { 0%,100% { transform: scale(1); opacity: .96; } 50% { transform: scale(1.04); opacity: 1; } }

/* 7. Cursor --------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1500;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  mix-blend-mode: multiply;
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s var(--ease-out);
}
.cursor.is-hover .cursor-ring {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  background: rgba(109, 34, 49, 0.08);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 8. NAV ------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
  transition: padding .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-2);
}
.nav.is-solid .nav-inner { padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; }
.brand-mark {
  display: block; width: 44px; height: 44px; object-fit: contain;
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand-mark { transform: scale(1.06) rotate(-3deg); }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -0.01em; }
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  position: relative; font-size: 0.94rem; color: var(--ink-soft);
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; padding: 0.7rem 1.35rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu a { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.mobile-menu .btn { font-family: var(--sans); font-size: 1rem; margin-top: 0.5rem; }

/* 9. HERO ----------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 7.5rem; padding-bottom: 3rem;
  max-width: var(--container); margin: 0 auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem); width: 100%;
  align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 1.3rem 0 1.6rem;
}
.hero-title em { color: var(--accent); font-weight: 500; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft); max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2.1rem 0 2.4rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-trust strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.hero-trust span { font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.02em; }

.hero-figure { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -30px rgba(33, 29, 22, 0.4);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem; border-radius: 100px;
  font-size: 0.8rem; color: var(--ink-soft); font-weight: 500;
}
.hero-figure .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(109,34,49,.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(109,34,49,.5); }
  70% { box-shadow: 0 0 0 8px rgba(109,34,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(109,34,49,0); }
}

/* 10. MARQUEE ------------------------------------------------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 1.15rem; margin-top: 1rem;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; align-items: center; gap: 1.4rem; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--ink-soft); font-style: italic; white-space: nowrap;
}
.marquee-track .sep { color: var(--accent-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 11. MANIFESTO ----------------------------------------------- */
.manifesto {
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.manifesto-lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.02em;
}
.manifesto-lead em { color: var(--accent); display: inline-block; }
.manifesto-body { display: flex; flex-direction: column; gap: 1.2rem; max-width: 54ch; }
.manifesto-body p { color: var(--ink-soft); font-size: 1.05rem; }
.manifesto-body strong { color: var(--ink); font-weight: 600; }

/* 12. SERVICES ------------------------------------------------ */
.services {
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.services-head { max-width: 60ch; margin-bottom: 3rem; }
.services-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em;
}
.services-intro { color: var(--ink-mute); margin-top: 0.9rem; font-size: 1.05rem; }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.15rem;
}
.service-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  box-shadow: 0 30px 60px -34px rgba(33, 29, 22, 0.45);
}
.service-media { overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.06); filter: saturate(1.08); }
.service-info { padding: 1.5rem 1.5rem 1.7rem; }
.service-kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.service-info h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; margin: 0.5rem 0 0.6rem;
}
.service-info p { color: var(--ink-soft); font-size: 0.96rem; }
.services-foot {
  margin-top: 2rem; padding: 1.3rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-soft); font-size: 1rem;
}
.services-foot span { color: var(--accent-2); font-weight: 700; margin-right: 0.4rem; }
.services-foot strong { color: var(--ink); }

/* --- Service card clickable + Saber más --- */
.service-card { cursor: pointer; }
.service-more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-size: .85rem; font-weight: 600;
  color: var(--accent); letter-spacing: .02em;
}
.service-more span { transition: transform .4s var(--ease-out); }
.service-card:hover .service-more span { transform: translateX(5px); }

/* --- Service modal --- */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(920px, 92vw); max-width: 92vw; max-height: 90vh; margin: auto;
}
.modal::backdrop { background: rgba(20,15,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card {
  position: relative; display: grid; grid-template-columns: 1fr;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  max-height: 90vh; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
}
.modal-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(251,248,242,.92); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .35s var(--ease-out), background .3s;
}
.modal-close:hover { transform: rotate(90deg); background: #fff; }
.modal-media { overflow: hidden; aspect-ratio: 16/10; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(1.5rem, 3vw, 2.4rem); overflow-y: auto; }
.modal-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.modal-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .45rem 0 .85rem; }
.modal-text { color: var(--ink-soft); }
.modal-list { display: grid; gap: .65rem; margin: 1.4rem 0 1.8rem; }
.modal-list li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.modal-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fbf8f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/64% no-repeat;
}
@media (min-width: 760px) {
  .modal-card { grid-template-columns: 0.92fr 1.08fr; }
  .modal-media { aspect-ratio: auto; height: 100%; min-height: 460px; }
}


/* 13. ABOUT / STATS ------------------------------------------- */
.about {
  background: var(--ink); color: var(--bg);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.about-grid {
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-img-wrap {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .section-num { color: rgba(244,239,230,.55); }
.about-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.about-copy h2 em { color: var(--gold); }
.about-copy > p { color: rgba(244,239,230,.72); max-width: 42ch; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1rem; margin-top: 2.6rem;
  padding-top: 2rem; border-top: 1px solid rgba(244,239,230,.16);
}
.stat-num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1;
  color: var(--gold); display: block;
}
.stat-label { font-size: 0.82rem; color: rgba(244,239,230,.6); letter-spacing: 0.02em; }

/* 14. PROCESS ------------------------------------------------- */
.process {
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.process-head { margin-bottom: 3rem; }
.process-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em;
}
.process-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.5rem;
  padding: 1.8rem 0; border-top: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--serif); font-size: 1.1rem; color: var(--accent-2);
  font-weight: 600; padding-top: 0.3rem;
}
.process-step h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.5rem;
  grid-column: 2; margin-bottom: 0.3rem;
}
.process-step p { grid-column: 2; color: var(--ink-soft); max-width: 52ch; }

/* 15. GALLERY ------------------------------------------------- */
.gallery {
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.gallery-head { margin-bottom: 2.4rem; }
.gallery-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em;
}
.gallery-strip { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.gallery-item:hover { box-shadow: 0 30px 60px -34px rgba(33,29,22,.5); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(251,248,242,.9); backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
}

/* 16. CONTACT ------------------------------------------------- */
.contact {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.contact-halo {
  position: absolute; inset: -40% -10% -30% -10%;
  background: radial-gradient(40% 40% at 30% 30%, rgba(109,34,49,.22), transparent 70%),
              radial-gradient(45% 45% at 80% 70%, rgba(195,154,84,.18), transparent 72%);
  filter: blur(70px); pointer-events: none;
}
.contact-grid {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding-block: clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem);
}
.contact-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.contact-copy h2 em { color: var(--accent); }
.contact-copy > p { color: var(--ink-soft); max-width: 40ch; }
.contact-details { margin-top: 2.4rem; display: grid; gap: 1.4rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.25rem; }
.cd-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.contact-details a, .contact-details li > span:not(.cd-label) {
  color: var(--ink); font-size: 1.02rem; line-height: 1.5;
  transition: color .3s var(--ease-out);
}
.contact-details a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -40px rgba(33,29,22,.4);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.field label { font-size: 0.8rem; color: var(--ink-mute); font-weight: 500; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.8rem 0.9rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109,34,49,.12);
}
.btn-check { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.btn-check path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.contact-form.is-sent .btn-label { display: none; }
.contact-form.is-sent .btn-check { display: block; animation: drawCheck .5s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-note { font-size: 0.82rem; color: var(--ink-mute); text-align: center; }
.contact-form.is-sent .form-note { color: var(--accent); font-weight: 500; }

/* 16b. WHATSAPP FLOAT ----------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1400;
  display: flex; align-items: center; gap: 0; justify-content: flex-end;
  color: #fff;
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.wa-float.is-in { opacity: 1; transform: none; pointer-events: auto; }
.wa-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7), 0 4px 10px rgba(0,0,0,.18);
  position: relative; flex: none;
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease-out);
}
.wa-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1;
  animation: waPulse 2.6s var(--ease-out) infinite;
}
.wa-float:hover .wa-icon { transform: scale(1.07); box-shadow: 0 16px 34px -8px rgba(37, 211, 102, .85); }
.wa-bubble {
  max-width: 0; overflow: hidden; white-space: nowrap;
  background: var(--ink); color: #f4efe6;
  font-size: 0.9rem; font-weight: 500; line-height: 1;
  border-radius: 100px;
  padding: 0; margin-right: 0;
  opacity: 0;
  transition: max-width .5s var(--ease-out), padding .5s var(--ease-out), opacity .4s var(--ease-out), margin .5s var(--ease-out);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
}
.wa-float:hover .wa-bubble, .wa-float.show-bubble .wa-bubble {
  max-width: 320px; opacity: 1;
  padding: 0.85rem 1.1rem; margin-right: 0.7rem;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 539px) {
  .wa-icon { width: 54px; height: 54px; }
  .wa-float:hover .wa-bubble, .wa-float.show-bubble .wa-bubble { max-width: 62vw; white-space: normal; }
}

/* 17. FOOTER -------------------------------------------------- */
.footer {
  background: var(--ink); color: rgba(244,239,230,.8);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
}
.footer-top, .footer-mid, .footer-bot {
  max-width: var(--container); margin: 0 auto;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(244,239,230,.14);
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-logo {
  display: grid; place-items: center; flex: none;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.footer-logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: var(--bg); }
.footer-legal { font-size: 0.8rem; color: rgba(244,239,230,.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-nav a { font-size: 0.92rem; transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-mid {
  padding-block: 1.8rem; display: grid; gap: 0.4rem;
  font-size: 0.86rem; color: rgba(244,239,230,.6);
}
.footer-bot {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  padding-top: 1.6rem; border-top: 1px solid rgba(244,239,230,.14);
  font-size: 0.8rem; color: rgba(244,239,230,.5);
}
.footer-credits a { color: rgba(244,239,230,.75); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--gold); }

/* 18. Reveal effects ------------------------------------------ */
.reveal:not([data-split]) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.split-line {
  display: inline-block; overflow: hidden;
  padding-bottom: 0.14em; margin-bottom: -0.14em; /* room for italic descenders */
  max-width: 100%;
}
.split-line > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  max-width: 100%;
}
.split-line.is-visible > span { transform: translateY(0); }

/* 19. Responsive ---------------------------------------------- */
@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .manifesto-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .process-step { grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; }
  .process-step h3, .process-step p { grid-column: 2; }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .services-head { margin-bottom: 3.5rem; }
}

/* 20. Reduced motion (solo lo intrusivo) ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .splash-word { animation: none; border-right: 0; width: auto; }
  .splash-mark { animation: none; }
  .hero-figure .dot { animation: none; }
  .wa-icon::after { animation: none; }
}

