/* =================================================================
   PONLO EN SU SITIO — hoja de estilos (v2: sistema plano + líneas)
   Sin fondos fotográficos de escena. Paleta plana + tipografía como
   protagonista + líneas finas de 1px como único recurso decorativo.
   Los recuadros ".niche" son huecos listos para alojar una imagen
   SUELTA (como hero-object-stack.png) el día que la tengas — nunca
   un fondo de escena completo.
   ================================================================= */

:root {
  --paper: #eee5da;
  --paper-alt: #e2d5c3;
  --card: #faf6f0;
  --ink: #211f1c;
  --muted: #635c51;
  --accent: #276f59;
  --line: rgba(33, 31, 28, 0.18);
  --line-soft: rgba(33, 31, 28, 0.1);

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
::selection { background: var(--accent); color: var(--card); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.font-serif { font-family: var(--font-serif); }
.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; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.bg-paper { background: var(--paper); }
.bg-alt { background: var(--paper-alt); }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }
.rule-v { width: 1px; background: var(--line); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid transparent; cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.95rem;
  transition: gap 200ms ease, opacity 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent); color: var(--card); }
.btn-primary:hover { opacity: 0.88; gap: 0.8rem; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 250ms ease; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container); margin: 0 auto;
}
.logo { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-desktop { display: none; align-items: center; gap: 2.25rem; font-size: 0.9rem; font-weight: 500; }
.nav-desktop a:not(.btn) { color: var(--ink); opacity: 0.72; transition: opacity 150ms ease; }
.nav-desktop a:not(.btn):hover { opacity: 1; }
.nav-desktop .btn-primary { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.menu-toggle span { width: 22px; height: 1px; background: var(--ink); display: block; }

.mobile-menu { display: none; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 0.25rem clamp(1.25rem,4vw,2.5rem) 1.5rem; gap: 1rem; font-size: 0.95rem; font-weight: 500; }
.mobile-menu a.accent { color: var(--accent); font-weight: 700; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Kicker ---------- */
.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }

/* ---------- Niche: hueco para una imagen suelta ---------- */
.niche {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 60%, var(--line-soft) 100%);
}
.niche img { width: 68%; height: auto; }
.niche.is-empty { align-items: center; justify-content: center; }
.niche-label { font-family: var(--font-serif); font-size: 1.6rem; color: var(--muted); opacity: 0.55; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; padding-top: 6.5rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; padding-top: 0; min-height: 100svh; } }
.hero-text { max-width: 32rem; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.08; letter-spacing: 0; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.15rem; color: var(--ink); opacity: 0.75; max-width: 27rem; margin-bottom: 2.2rem; }
.hero-visual { aspect-ratio: 3/4; max-height: 62vh; background: none; border: none; }
.hero-visual img { width: 100%; }

/* ---------- Servicios ---------- */
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.servicios-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .servicios-row { grid-template-columns: repeat(3, 1fr); } }
.service-col { display: flex; flex-direction: column; padding: 2rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .service-col { padding: 0 2.25rem; border-top: none; }
  .service-col + .service-col { border-left: 1px solid var(--line); }
  .service-col:first-child { padding-left: 0; }
  .service-col:last-child { padding-right: 0; }
}
.service-col .num { font-family: var(--font-serif); font-size: 1.7rem; color: var(--accent); display: block; margin-bottom: 0.75rem; }
.service-col h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 0.6rem; }
.service-col p { color: var(--ink); opacity: 0.75; margin-bottom: 1.5rem; }
.service-col .niche { aspect-ratio: 3/4; background: none; border: none; margin-top: auto; }
.service-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; margin-bottom: 1.25rem; width: fit-content; transition: opacity 0.2s ease; }
.service-link:hover { opacity: 0.7; }
.service-col .niche img { width: 84%; }

/* ---------- Metodología ---------- */
.metodologia-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .metodologia-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.metodologia-intro h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.metodologia-intro p { color: var(--ink); opacity: 0.75; max-width: 26rem; }

.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; text-align: left; font-weight: 600; font-size: 1.02rem; }
.accordion-icon { font-family: var(--font-serif); font-size: 1.3rem; color: var(--accent); transition: transform 300ms ease; }
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 450ms ease; }
.accordion-item.is-open .accordion-panel { max-height: 14rem; }
.accordion-panel p { padding-bottom: 1.15rem; font-size: 0.94rem; line-height: 1.65; color: var(--ink); opacity: 0.72; max-width: 34rem; }

/* ---------- Conectar ---------- */
.conectar-wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 760px) { .conectar-wrap { grid-template-columns: auto 1fr; gap: 3rem; align-items: center; } }
.conectar-avatars { display: flex; gap: 1.25rem; }
.avatar-niche { width: 11rem; aspect-ratio: 5/6; background: none; border: none; }
.avatar-niche .niche-label { font-size: 1.3rem; }
.niche-photo { align-items: center; justify-content: center; }
.niche-photo img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 760px) { .avatar-niche { width: 13rem; } }
.conectar-text h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.1rem; }
.conectar-text p { color: var(--ink); opacity: 0.78; line-height: 1.7; max-width: 34rem; }
.conectar-text p + p { margin-top: 1rem; }

/* ---------- IA Scanner ---------- */
.scanner-head { max-width: 34rem; margin-bottom: 3rem; }
.scanner-head h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 2.75rem); }
.scanner-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 920px) { .scanner-grid { grid-template-columns: 1.1fr 1fr; } }
.scanner-main { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 920px) { .scanner-main { padding: 0 3rem 0 0; border-bottom: none; border-right: 1px solid var(--line); } }
.scanner-side { padding-top: 2.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 920px) { .scanner-side { padding: 0 0 0 3rem; } }
.scanner-side h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.6rem; }
.scanner-side p { font-size: 0.94rem; color: var(--ink); opacity: 0.75; line-height: 1.6; }
.scanner-side .num { font-family: var(--font-serif); color: var(--accent); margin-right: 0.4rem; }

.scanner-main h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.6rem; }
.scanner-main > p { font-size: 0.96rem; color: var(--ink); opacity: 0.78; line-height: 1.6; margin-bottom: 1.5rem; max-width: 30rem; }

/* Campos estilo línea, sin cajas */
.field {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  background: transparent; padding: 0.8rem 0.1rem; font-size: 0.96rem;
  margin-bottom: 1.1rem; border-radius: 0;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent); }
textarea.field { resize: vertical; min-height: 5rem; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px dashed var(--line); border-radius: 4px;
  padding: 1.75rem 1rem; text-align: center; cursor: pointer;
  margin-bottom: 1.1rem; transition: border-color 200ms ease;
}
.dropzone.is-dragover { border-color: var(--accent); }
.dropzone .icon { font-size: 1.5rem; }
.dropzone .hint { font-size: 0.9rem; color: var(--muted); }
.dropzone .filename { font-size: 0.8rem; font-weight: 600; color: var(--accent); display: none; }
.scanner-preview { display: none; width: 100%; max-height: 9rem; object-fit: cover; border-radius: 4px; margin-bottom: 1.1rem; }
.form-note { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.6rem; }
.form-success { display: none; font-size: 0.9rem; color: var(--accent); font-weight: 600; }

/* ---------- Testimonio ---------- */
.testimonio-content { max-width: 34rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.testimonio-mark { font-family: var(--font-serif); font-size: 2.4rem; color: var(--accent); opacity: 0.6; margin-bottom: 0.4rem; }
.testimonio-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.4; color: var(--ink); opacity: 0.9; }
.testimonio-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Tarifas ---------- */
.tarifas-note { font-size: 0.85rem; color: var(--muted); font-style: italic; text-align: center; max-width: 30rem; margin: 0 auto 3rem; }
.tarifas-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tarifas-row { grid-template-columns: repeat(3, 1fr); } }
.price-col { padding: 2rem 0; border-top: 1px solid var(--line); text-align: left; }
@media (min-width: 760px) {
  .price-col { padding: 0 2.25rem; border-top: none; text-align: center; }
  .price-col + .price-col { border-left: 1px solid var(--line); }
  .price-col:first-child { padding-left: 0; }
  .price-col:last-child { padding-right: 0; }
}
.price-col h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.4rem; }
.price-col .price { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--accent); margin-bottom: 0.2rem; }
.price-col .duration { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.price-col .desc { font-size: 0.86rem; color: var(--ink); opacity: 0.75; line-height: 1.5; }
.tarifas-footnote { font-size: 0.78rem; color: var(--muted); text-align: center; max-width: 32rem; margin: 3rem auto 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4.5rem; } }
.contact-intro h2 { font-family: var(--font-serif); font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: 1rem; }
.contact-intro p { color: var(--ink); opacity: 0.75; max-width: 22rem; }
.contact-form { max-width: 30rem; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 2rem; padding-bottom: 2rem; }

/* ---------- Animaciones de aparición ---------- */
.reveal, .object-stack { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 750ms ease, transform 750ms ease; }
html.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.reveal-ready .reveal.d1 { transition-delay: 90ms; }
html.reveal-ready .reveal.d2 { transition-delay: 180ms; }
html.reveal-ready .reveal.d3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
