/* ==========================================================================
   JFLYstudio — hoja de estilos principal
   ========================================================================== */

:root {
  --ink: #171310;
  --ink-2: #2b2521;
  --ink-3: #3a332c;
  --muted: #6b6259;
  --cream: #f7f3ec;
  --cream-2: #efe7da;
  --paper: #fffdf9;
  --accent: #b86a49;
  --accent-dark: #94523a;
  --accent-soft: #d8a37f;
  --green: #2f6b4f;
  --green-dark: #234a37;
  --green-soft: #a9cbb6;
  --line: rgba(23, 19, 16, 0.13);
  --line-light: rgba(247, 243, 236, 0.18);
  --shadow: 0 24px 70px -30px rgba(23, 19, 16, 0.35);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1220px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.1vw, 3.5rem);
}

h2 em,
h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.sprite {
  display: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.16em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 44px);
}

/* --------------------------------------------------------------------------
   Botones y etiquetas
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(23, 19, 16, 0.5);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--accent-dark);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-light:hover {
  background: #d3ba82;
}

.btn-ghost {
  background: transparent;
  color: #6f4d4d;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow-light {
  color: var(--accent-soft);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #000000;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: transparent;
  transition: background 0.35s ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(205, 193, 172, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -24px rgba(23, 19, 16, 0.4);
}

.site-header.scrolled::after {
  background: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 96;
}

.brand em {
  font-style: italic;
  color: var(--accent);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-left: 1px;
  flex: none;
}

.brand-light {
  color: var(--cream);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav > a:not(.btn) {
  position: relative;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav > a:not(.btn):hover {
  opacity: 1;
}

.nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.site-header:not(.scrolled) .nav .btn-dark {
  background: var(--cream);
  color: var(--ink);
}

.site-header:not(.scrolled) .nav .btn-dark:hover {
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 50px) 0 90px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  animation: heroZoom 18s ease-out forwards;
}

@media (max-width: 640px) {
  .hero-media img {
    animation: none;
    will-change: auto;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 12, 10, 0.82) 0%, rgba(15, 12, 10, 0.52) 46%, rgba(15, 12, 10, 0.12) 80%),
    linear-gradient(0deg, rgba(15, 12, 10, 0.6) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  padding-top: 30px;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero-content > *:nth-child(5) { animation-delay: 0.58s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.85rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--accent-soft);
}

.hero-lead {
  max-width: 46ch;
  margin-top: 28px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  max-width: 640px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.66);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.scroll-hint span {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.scroll-hint span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.62);
}

.marquee-track span:nth-child(even) {
  color: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-note {
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 6px;
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 106, 73, 0.22), transparent 68%);
  top: -260px;
  right: -150px;
  pointer-events: none;
}

.section-head-light .section-note {
  color: rgba(247, 243, 236, 0.62);
}

.section-head-light h2 em {
  color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 106, 73, 0.45);
  box-shadow: var(--shadow);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service:hover .service-media img {
  transform: scale(1.055);
}

.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 22px;
  flex: 1;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 2px;
}

.service-icon .icon {
  width: 19px;
  height: 19px;
}

.service h3 {
  font-size: 1.42rem;
  letter-spacing: -0.015em;
}

.service p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.service-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
}

.service-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}

.service-time {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-time .icon {
  width: 14px;
  height: 14px;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-includes li {
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 10px;
}

.services-foot {
  margin-top: 34px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.services-foot a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.steps li {
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.steps h3 {
  margin: 18px 0 10px;
  font-size: 1.5rem;
}

.steps p {
  color: rgba(247, 243, 236, 0.62);
  font-size: 14px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cream-2);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item.alta {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 12, 10, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Estudio
   -------------------------------------------------------------------------- */

.section-studio {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.studio-media {
  position: relative;
}

.studio-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.studio-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.studio-badge strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.studio-badge span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.62);
}

.studio-copy h2 {
  margin-bottom: 22px;
}

.studio-copy > p {
  color: var(--muted);
  max-width: 48ch;
}

.ticks {
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
}

.ticks .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Solicitud
   -------------------------------------------------------------------------- */

.section-request {
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}

.section-request::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 19, 16, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}

.request-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(23, 19, 16, 0.5);
  border: 1px solid rgba(23, 19, 16, 0.08);
}

.request-aside {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.request-aside::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 127, 0.22), transparent 70%);
  bottom: -140px;
  right: -120px;
  pointer-events: none;
}

.request-aside h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 20px;
}

.request-aside h2 em {
  color: var(--accent-soft);
}

.request-lead {
  color: rgba(247, 243, 236, 0.68);
  font-size: 14.5px;
  max-width: 34ch;
}

.request-contact {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.request-contact li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.request-contact > li > .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
  margin-top: 3px;
}

.request-contact span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.5);
  margin-bottom: 2px;
}

.request-contact a,
.request-contact p {
  font-size: 14px;
  color: var(--cream);
}

.request-contact a:hover {
  color: var(--accent-soft);
}

.request-crosslink {
  margin-top: 26px;
  padding: 13px 15px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  font-size: 12.5px;
  color: rgba(247, 243, 236, 0.62);
  position: relative;
  z-index: 1;
}

.request-crosslink a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request-crosslink a:hover {
  color: #fff;
}

.request-quote {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  color: rgba(247, 243, 236, 0.55);
  position: relative;
  z-index: 1;
}

.request-quote .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
  margin-top: 2px;
}

.request-body {
  padding: clamp(28px, 4vw, 52px);
}

.form-block + .form-block {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.form-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-title span {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(184, 106, 73, 0.4);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.field label > span {
  color: var(--accent);
}

.field label .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fbf8f2;
  border: 1px solid rgba(23, 19, 16, 0.16);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.55;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236b6259' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a59c91;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(23, 19, 16, 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 106, 73, 0.16);
  background: #fff;
}

.field input[type="date"],
.field input[type="time"] {
  min-height: 46px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0392b;
  background: #fdf4f3;
}

.field-error {
  font-size: 12px;
  color: #b23a2e;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.counter {
  font-size: 11px;
  color: var(--muted);
  flex: none;
  padding-top: 2px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1.5px dashed rgba(23, 19, 16, 0.25);
  border-radius: 9px;
  background: #fbf8f2;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--accent);
  background: #fff;
}

.file-drop > .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.file-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.file-text strong {
  font-size: 13.5px;
  font-weight: 500;
}

.file-text small {
  font-size: 11.5px;
  color: var(--muted);
}

.file-name {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent.invalid span {
  color: #b23a2e;
}

.form-submit {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-submit .btn {
  border: 0;
}

.form-submit .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-footnote {
  font-size: 12px;
  color: var(--muted);
  max-width: 24ch;
}

.form-global-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdf0ee;
  border: 1px solid rgba(192, 57, 43, 0.28);
  color: #a5342a;
  font-size: 13px;
}

.form-global-error:empty {
  display: none;
}

.form-success {
  padding: clamp(10px, 3vw, 30px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(184, 106, 73, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.success-icon .icon {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.form-success > p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 14.5px;
}

.form-success > p strong {
  color: var(--ink);
}

.success-next {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 8px 0 10px;
}

.success-next div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 14px;
}

.success-next span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Registro de pago (constancia)
   -------------------------------------------------------------------------- */

.section-constancia {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-constancia::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(47, 107, 79, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
}

.constancia-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(23, 19, 16, 0.5);
  border: 1px solid rgba(47, 107, 79, 0.18);
}

.constancia-aside {
  background: linear-gradient(155deg, var(--green-dark), var(--green));
  color: var(--cream);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.constancia-aside::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 203, 182, 0.28), transparent 70%);
  bottom: -140px;
  right: -120px;
  pointer-events: none;
}

.constancia-aside h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 20px;
}

.constancia-aside h2 em {
  color: var(--green-soft);
}

.constancia-lead {
  color: rgba(247, 243, 236, 0.72);
  font-size: 14.5px;
  max-width: 36ch;
}

.constancia-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.constancia-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(247, 243, 236, 0.66);
}

.constancia-list .icon {
  width: 18px;
  height: 18px;
  color: var(--green-soft);
  margin-top: 2px;
}

.constancia-list strong {
  display: block;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 2px;
}

.constancia-note {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  color: rgba(247, 243, 236, 0.62);
  position: relative;
  z-index: 1;
}

.constancia-note .icon {
  width: 18px;
  height: 18px;
  color: var(--green-soft);
  margin-top: 2px;
}

.constancia-note a {
  color: var(--green-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.constancia-note a:hover {
  color: #fff;
}

.constancia-body {
  padding: clamp(28px, 4vw, 52px);
}

.constancia-obs {
  margin-top: 18px;
}

.pago-group {
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf8f2;
}

.pago-group legend {
  padding: 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.pago-group legend span {
  color: var(--accent);
}

.pago-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(23, 19, 16, 0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pago-option + .pago-option {
  margin-top: 9px;
}

.pago-option:hover {
  border-color: rgba(47, 107, 79, 0.55);
}

.pago-option:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.14);
}

.pago-option input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
  cursor: pointer;
}

.pago-option span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.pago-option strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.pago-option small {
  font-size: 11.5px;
  color: var(--muted);
}

.pago-group.invalid {
  border-color: #c0392b;
  background: #fdf4f3;
}

.pago-group .field-error {
  margin-top: 9px;
}

.section-constancia .success-icon {
  background: rgba(47, 107, 79, 0.12);
  color: var(--green);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.faq-head h2 {
  margin-bottom: 20px;
}

.faq-head > p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 30ch;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  flex: none;
}

.faq-list details[open] summary .icon {
  transform: rotate(-90deg);
}

.faq-list details p {
  padding: 0 40px 24px 4px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 7vw, 88px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 56px;
}

.footer-brand p {
  margin: 20px 0 18px;
  color: rgba(247, 243, 236, 0.58);
  font-size: 14px;
  max-width: 32ch;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(247, 243, 236, 0.08);
  transition: all 0.2s ease;
}

.footer-ig:hover {
  background: rgba(247, 243, 236, 0.18);
  color: var(--cream);
  transform: translateY(-1px);
}

.footer-ig .icon {
  width: 16px;
  height: 16px;
}

.footer-sociales {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.footer-sociales .footer-ig {
  font-size: 13px;
  gap: 8px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col h4,
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
  margin-top: 0;
}

.footer-col a,
.footer-col p {
  color: rgba(247, 243, 236, 0.68);
  font-size: 13.5px;
  line-height: 1.55;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-note {
  font-size: 11.5px !important;
  color: rgba(247, 243, 236, 0.55) !important;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  font-size: 12px;
  color: rgba(247, 243, 236, 0.58);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Lightbox y modal
   -------------------------------------------------------------------------- */

.lightbox,
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox::backdrop,
.modal::backdrop {
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(6px);
}

.lightbox {
  width: min(1100px, 92vw);
  margin: auto;
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover,
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal {
  width: min(560px, 92vw);
  margin: auto;
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 40px);
  position: relative;
}

.modal h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-close {
  top: 12px;
  right: 12px;
  color: var(--ink);
  border-color: var(--line);
}

.modal-close:hover {
  background: var(--cream);
}

/* --------------------------------------------------------------------------
   Animación de aparición
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .request-card {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .constancia-card {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .site-header {
    color: var(--cream);
    background: transparent;
    box-shadow: none;
  }

  body.menu-open .site-header .brand em {
    color: var(--accent-soft);
  }

  .nav > a:not(.btn) {
    opacity: 1;
  }

  .nav .btn {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--cream) !important;
    color: var(--ink) !important;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 95;
  }

  body.menu-open .menu-toggle {
    color: var(--cream);
    border-color: rgba(247, 243, 236, 0.5);
  }

  .menu-toggle .icon {
    transition: transform 0.25s ease;
  }

  body.menu-open .menu-toggle .icon {
    transform: rotate(0);
  }

  .section-head,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-media {
    max-width: 480px;
    margin-inline: auto;
  }

  .studio-badge {
    right: 12px;
  }

  .request-card {
    grid-template-columns: 1fr;
  }

  .constancia-card {
    grid-template-columns: 1fr;
  }

  .request-aside {
    padding-bottom: 40px;
  }

  .constancia-aside {
    padding-bottom: 40px;
  }

  .request-quote {
    margin-top: 30px;
  }

  .constancia-note {
    margin-top: 30px;
  }

  .gallery {
    grid-auto-rows: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  /* Secciones más compactas en móvil */
  .section {
    padding: clamp(48px, 8vw, 64px) 0;
  }

  .hero {
    min-height: 92svh;
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.5rem);
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 34px;
  }

  .hero-meta strong {
    font-size: 21px;
  }

  .scroll-hint {
    display: none;
  }

  /* Oculta elementos decorativos en móvil para aligerar la vista */
  .marquee {
    display: none;
  }

  .constancia-list {
    display: none;
  }

  /* Contacto del aside: solo WhatsApp y correo en móvil */
  .request-contact > li:nth-child(3),
  .request-contact > li:nth-child(4),
  .request-quote {
    display: none;
  }

  .services {
    grid-template-columns: 1fr;
  }

  /* Tarjetas de servicio horizontales y compactas en móvil */
  .service {
    flex-direction: row;
    height: auto;
    min-height: 150px;
  }

  .service-media {
    width: 150px;
    height: 110px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .service-media img {
    transition: none;
  }

  .service-body {
    padding: 16px 14px;
    gap: 8px;
  }

  .service-body .service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
  }

  .service-body .service-icon .icon {
    width: 16px;
    height: 16px;
  }

  .service h3 {
    font-size: 1.15rem;
    margin: 0;
  }

  .service p {
    font-size: 13px;
    margin: 0;
  }

  .service-meta {
    margin-top: 6px;
    gap: 10px;
    font-size: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item.alta {
    grid-row: span 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .form-submit .btn {
    width: 100%;
  }

  .request-body,
  .request-aside {
    padding: 26px 22px;
  }

  .constancia-body,
  .constancia-aside {
    padding: 26px 22px;
  }

  .pago-group {
    padding: 13px;
  }

  .pago-option {
    padding: 11px 12px;
  }

  .file-drop {
    flex-wrap: wrap;
  }

  .file-name {
    max-width: 100%;
    margin-left: 36px;
  }

  /* Footer en 2 columnas: marca y equipo cruzan */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-list summary {
    font-size: 1.08rem;
  }

  .faq-list details p {
    padding-right: 10px;
  }

  /* Áreas de toque más grandes en móvil (mínimo 44px) */
  a, button, summary {
    min-height: 44px;
    min-width: 44px;
  }

  .nav > a, .menu-toggle {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-content > * {
    opacity: 1;
    transform: none;
  }
}
