/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f3f0e5;
  --bg-2:      #e7e2cf;
  --paper:     #ffffff;
  --ink:       #1c2118;
  --ink-soft:  #2b3123;
  --ink-mute:  #6c705f;
  --accent:    #4a6741;
  --accent-2:  #b3714a;
  --accent-blue: #2c4956;
  --accent-blue-soft: rgba(44, 73, 86, 0.14);
  --cream:     #f3f0e5;
  --line:      rgba(28, 33, 24, 0.12);
  --line-soft: rgba(28, 33, 24, 0.07);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

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

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  font-size: 106%; /* base lift for readability — everything in rem scales from here */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 400; color: var(--ink); }
em { font-style: italic; color: var(--accent); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: .6rem; }
.section-head p { margin-top: 1rem; color: var(--ink); font-size: 1.2rem; max-width: 38rem; }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(28,33,24,0.08), 0 1px 3px rgba(28,33,24,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 22px 44px rgba(28,33,24,0.16), 0 10px 20px rgba(74,103,65,0.18); }
.btn:active { transform: translateY(-1px) scale(1); transition-duration: .12s; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover { background: var(--paper); box-shadow: 0 14px 30px rgba(28,33,24,0.1); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1rem; }
.btn-arrow { display: inline-block; transition: transform .45s var(--ease-soft); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.link-underline { position: relative; padding-bottom: .2rem; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 1.3rem 0;
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(243, 240, 229, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 2px 0 var(--accent-blue-soft);
  padding: .85rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .8rem; font-family: var(--sans); font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.nav-brand em { color: var(--accent); }
.nav-logo { width: 54px; height: 50px; object-fit: contain; flex: none; }
.nav-links { display: none; gap: 2.1rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line);
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,240,229,.3);
  display: grid; place-items: center; font-size: 1.4rem;
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 62% center;
  animation: ambientZoom 32s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero-bg img { object-position: 40% center; }
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04) translate3d(0,0,0); }
  50%      { transform: scale(1.12) translate3d(-1%,-1%,0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,33,24,.15) 0%, rgba(28,33,24,.1) 40%, rgba(20,24,17,.82) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 7vh, 5rem);
  color: var(--cream);
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .98rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  margin-bottom: 1.4rem;
}
.hero-kicker::before, .hero-kicker::after { content: ""; width: 26px; height: 1px; background: rgba(255,255,255,.6); }
.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  color: var(--cream);
  max-width: 20ch;
  margin-inline: auto;
  line-height: .98;
}
.hero-title em { color: #cfd9a1; font-style: italic; }
.hero-sub {
  margin: 1.6rem auto 0; max-width: 34rem;
  font-size: 1.1rem; color: rgba(243,240,229,.82);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.hero-actions .btn-secondary { color: var(--cream); border-color: rgba(243,240,229,.3); }
.hero-actions .btn-secondary:hover { background: rgba(243,240,229,.12); }
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(243,240,229,.7); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero-scroll-cue span { width: 1px; height: 30px; background: linear-gradient(180deg, rgba(243,240,229,.7), transparent); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =============================================================
   7. About / manifesto
   ============================================================= */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .95fr 1.05fr; gap: 5rem; } }
.about-figure { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.about-figure:hover img { transform: scale(1.05); }
.about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.4rem; }
.about-text p { color: var(--ink); font-size: 1.2rem; margin-bottom: 1.1rem; max-width: 40rem; }
.about-text p:last-child { margin-bottom: 0; }

/* =============================================================
   8. Services — bento grid (signature: tilt + halo)
   ============================================================= */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px;
  height: 100%;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.card.has-tilt:hover { transition-duration: .15s; }
.card-img {
  position: absolute; inset: 0; z-index: -2;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-soft), filter .55s;
}
.card:hover .card-img img { transform: scale(1.1); filter: saturate(1.12) brightness(.96); }
.card-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,33,24,0) 30%, rgba(20,24,17,.82) 100%);
}
.card.has-photo .card-name, .card.has-photo .card-desc { color: var(--cream); }
.card.has-photo .card-desc { color: rgba(243,240,229,.82); }
.card-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.card-desc { font-size: 1.05rem; margin-top: .5rem; color: var(--ink); max-width: 32ch; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(74,103,65,.28), transparent 62%);
  opacity: 0; transition: opacity .35s; mix-blend-mode: multiply;
}
.card.has-photo::before { mix-blend-mode: screen; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(207,217,161,.35), transparent 62%); }
.card:hover::before { opacity: 1; }
.card:hover {
  box-shadow: 0 40px 80px -20px rgba(28,33,24,0.28), 0 0 0 1px rgba(74,103,65,0.18);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.012);
}

/* Curtain reveal — used on service card photos and portfolio cards */
.curtain { position: relative; }
.curtain::after {
  content: ""; position: absolute; inset: 0; z-index: 6;
  background: var(--bg);
  transform-origin: left;
  transition: transform 1.05s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.curtain.is-revealed::after { transform: scaleX(0); }
.card-glow {
  background: linear-gradient(150deg, var(--accent-blue) 0%, #15242c 100%);
  color: var(--cream);
}
.card-glow .card-name, .card-glow .card-desc { color: var(--cream); }
.card-glow .card-desc { color: rgba(243,240,229,.78); }
.card-glow::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(243,240,229,.08) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(243,240,229,.08) 0 1px, transparent 1px 26px);
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.9) 55%);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.9) 55%);
}
.card-glow::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(159,196,214,.3), transparent 70%);
  z-index: 0; filter: blur(10px);
}
.card-glow .card-name, .card-glow .card-desc { position: relative; z-index: 1; }
.card-icon { width: 30px; height: 30px; margin-bottom: .9rem; color: rgba(243,240,229,.85); position: relative; z-index: 1; }

.card-glow--green {
  background: linear-gradient(150deg, var(--accent) 0%, #1c2617 100%);
}
.card-glow--green::after {
  background: radial-gradient(circle, rgba(207,217,161,.32), transparent 70%);
}
.card-glow--terracotta {
  background: linear-gradient(150deg, var(--accent-2) 0%, #3a2116 100%);
}
.card-glow--terracotta::after {
  background: radial-gradient(circle, rgba(232,192,163,.32), transparent 70%);
}

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee { overflow: hidden; position: relative; background: var(--accent-blue); padding-block: 1.3rem; margin-top: clamp(3rem, 6vw, 5rem); white-space: nowrap; cursor: default; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--accent-blue), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--accent-blue), transparent); }
.marquee-track { display: inline-flex; gap: 2.2rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.marquee-track span.dot { color: var(--accent-2); font-size: 1rem; }

/* =============================================================
   10. Portfolio — grouped showcase, captions below the image
   ============================================================= */
.portfolio-group { margin-top: clamp(2.8rem, 5vw, 4.5rem); }
.portfolio-group:first-child { margin-top: 0; }
.portfolio-group-title {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--serif); font-size: 1.35rem; color: var(--accent);
  margin-bottom: 1.5rem;
}
.portfolio-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.portfolio-group-title.is-comercial { color: var(--accent-2); }
.portfolio-group-title.is-team { color: var(--accent-blue); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem 1.4rem;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.pf-item { display: flex; flex-direction: column; }
.pf-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 5; isolation: isolate;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.pf-item:hover .pf-frame { box-shadow: 0 30px 60px -20px rgba(28,33,24,.32); }
.pf-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.pf-item:hover .pf-frame img { transform: scale(1.08); }
.pf-caption { margin-top: .9rem; }
.pf-tag { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pf-tag--comercial { color: var(--accent-2); }
.pf-tag--team { color: var(--accent-blue); }
.pf-name { font-family: var(--serif); font-size: 1.25rem; margin-top: .35rem; color: var(--ink); }

/* =============================================================
   11. Process
   ============================================================= */
#proceso { background: var(--paper); border-top: 1px solid var(--line); }
.process-list { display: grid; gap: 0; border-top: 1px solid var(--line); position: relative; }
.process-track {
  position: absolute; top: 0; bottom: 0; left: 1.74rem; width: 2px;
  background: var(--line); z-index: 0; overflow: hidden;
}
.process-track-fill {
  position: absolute; inset: 0; background: var(--accent-blue);
  transform: scaleY(0); transform-origin: top;
}
@media (min-width: 720px) { .process-track { left: 2.49rem; } }
.process-item {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem;
  padding-block: 2rem; border-bottom: 1px solid var(--line);
  align-items: center; position: relative; z-index: 1;
}
.process-desc { grid-column: 2; }
@media (min-width: 720px) {
  .process-item { grid-template-columns: 5rem 1fr 2fr; }
  .process-desc { grid-column: 3; }
}
.process-n {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink-mute);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: color .4s var(--ease-out), background .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-soft);
}
.process-item.is-active .process-n {
  color: var(--cream); background: var(--accent-blue); border-color: var(--accent-blue);
  transform: scale(1.08);
}
.process-name { font-family: var(--serif); font-size: 1.5rem; }
.process-desc { color: var(--ink); max-width: 34rem; font-size: 1.1rem; }
.process-desc + .process-desc { margin-top: .9rem; }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testi-grid { display: grid; gap: 1.5rem; }
@media (min-width: 780px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
.testi-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.6rem;
}
.testi-quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.testi-quote::before { content: open-quote; color: var(--accent); }
.testi-quote::after { content: close-quote; color: var(--accent); }
.testi-person { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.testi-avatar { width: 3.1rem; height: 3.1rem; border-radius: 50%; overflow: hidden; flex: none; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-avatar.is-initials {
  display: grid; place-items: center; background: var(--accent); color: var(--cream);
  font-family: var(--serif); font-size: 1.1rem;
}
.testi-name { font-weight: 700; font-size: 1.05rem; }
.testi-role { font-size: 1rem; color: var(--ink); }

/* =============================================================
   13. Final CTA + form
   ============================================================= */
.cta-section {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 26px; margin-inline: var(--gutter);
  padding: clamp(2.5rem, 6vw, 5rem);
  color: var(--cream);
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.cta-bg-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(15,18,13,.94), rgba(20,24,17,.88)); }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.cta-copy h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--cream); }
.cta-copy p { color: rgba(243,240,229,.82); margin-top: 1.1rem; max-width: 30rem; font-size: 1.15rem; }
.cta-contact { margin-top: 2.2rem; display: flex; flex-direction: column; gap: .6rem; font-size: 1.08rem; align-items: flex-start; }
.cta-contact a { color: var(--cream); }
.whatsapp-link { display: inline-flex; align-items: center; gap: .55rem; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1.1rem .7rem; border-radius: 10px;
  border: 1.5px solid rgba(28,33,24,.15); background: rgba(255,255,255,.96); color: var(--ink);
  font-family: var(--sans); font-size: 1.18rem;
  box-shadow: 0 2px 10px rgba(15,18,13,.18);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 2px 14px rgba(15,18,13,.22), 0 0 0 3px rgba(74,103,65,.18);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute; left: 1.1rem; top: 1.1rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: 1.12rem; font-weight: 500;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .5rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.cta-form { display: grid; gap: 1.1rem; position: relative; }
.cta-form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .cta-form-row { grid-template-columns: 1fr 1fr; } }
.cta-submit { position: relative; justify-content: center; width: 100%; background: var(--cream); color: var(--ink); }
.cta-submit:hover { background: #fff; }
.cta-form-label, .cta-form-spinner, .cta-form-check { transition: opacity .3s; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(28,33,24,.25); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form { transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }
.cta-success {
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .7s var(--ease-out) .15s, transform .7s var(--ease-soft) .15s;
}
.cta-success.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cta-success h3 { color: var(--cream); font-size: 1.6rem; }
.cta-success p { color: rgba(243,240,229,.82); margin-top: .6rem; }
.cta-error { margin-top: 1.2rem; }
.cta-error h3 { color: var(--accent-2); }
.cta-error a { color: var(--cream); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--ink); color: var(--cream);
}
.footer-main {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-end;
}
.footer-identity { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; max-width: 22rem; }
.footer-logo {
  width: 64px; height: 64px; object-fit: contain;
  background: var(--cream); border-radius: 50%; padding: 6px;
  margin-bottom: .3rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); line-height: 1.25; }
.footer-location { font-size: 1.02rem; color: rgba(243,240,229,.62); letter-spacing: .02em; }
.footer-contact-block { display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; }
.footer-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,240,229,.5); margin-bottom: .35rem; }
.footer-contact-block a { color: var(--cream); font-size: 1.08rem; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(243,240,229,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .92rem; color: rgba(243,240,229,.55);
}
.footer-bottom a { color: rgba(243,240,229,.75); }

/* =============================================================
   15. Scroll reveal (universal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-scroll-cue span { animation: none; }
  /* Curtain wipes, hero intro and the process progress line are scroll/load
     reveals (functional, not autonomous loops) — they stay on, just driven
     with shorter durations from JS. Only autonomous/looping motion is killed here. */
}

/* =============================================================
   16.5 WhatsApp floating button
   ============================================================= */
.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 17, .28), 0 2px 8px rgba(20, 24, 17, .18);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(20, 24, 17, .32), 0 4px 10px rgba(20, 24, 17, .2);
}
.whatsapp-fab:active { transform: scale(1.02); transition-duration: .12s; }
@media (min-width: 720px) { .whatsapp-fab { right: 2rem; bottom: 2rem; width: 62px; height: 62px; } }

.instagram-fab {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + 56px + 12px); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 17, .28), 0 2px 8px rgba(20, 24, 17, .18);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.instagram-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(20, 24, 17, .32), 0 4px 10px rgba(20, 24, 17, .2);
}
.instagram-fab:active { transform: scale(1.02); transition-duration: .12s; }
@media (min-width: 720px) {
  .instagram-fab { right: 2rem; bottom: calc(2rem + 62px + 14px); width: 62px; height: 62px; }
}

/* =============================================================
   17. Credits page
   ============================================================= */
.page-credits { padding-top: 6rem; }
.credits-list { display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem; max-width: 44rem; }
.credits-list li { font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.credits-list a { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }

/* =============================================================
   18. Responsive base type
   ============================================================= */
@media (min-width: 1600px) { .container { max-width: 1400px; } }
