/* ================================================================
   EMPANADEANDO — Vitrina de inversión · Paleta de marca
   Verde profundo + naranja + crema. Instrument Serif + Archivo.
   ================================================================ */

:root {
  /* Paleta oficial de marca (manual): Verde Esmeralda, Naranja Crocante,
     Blanco Cremoso, Amarillo Cremoso */
  --bg:        #00332D;               /* verde esmeralda profundo (derivado) */
  --bg-2:      #004643;               /* verde esmeralda #004643 */
  --bg-card:   #015450;
  --cream:     #FFFBF3;               /* blanco cremoso #FFFBF3 */
  --cream-2:   #EDE4D3;
  --cream-mut: #9FB0A8;
  --accent:    #F35B04;               /* naranja crocante #F35B04 */
  --accent-2:  #D14E03;
  --gold:      #FCB63A;               /* amarillo cremoso #FCB63A */
  --line:      rgba(255, 251, 243, 0.16);
  --paper:     #FFFBF3;               /* secciones claras: blanco cremoso */
  --ink:       #004643;
  --ink-mut:   #4C6660;
  --line-ink:  rgba(0, 70, 67, 0.16);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --font-disp: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash-sello { width: clamp(90px, 14vw, 150px); animation: selloSpin 12s linear infinite; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes selloSpin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-solid {
  background: rgba(12, 26, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.6rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.8rem; }
.nav-logo-chip {
  display: inline-flex; align-items: center;
  background: var(--cream); border-radius: 12px; padding: 0.4rem 0.8rem;
}
.nav-logo-chip img { height: 34px; width: auto; }
.nav-tagline { font-style: normal; font-weight: 400; font-size: 0.72rem; color: var(--cream-mut); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 700px) { .nav-tagline { display: none; } .nav-logo-chip img { height: 28px; } }
.nav-links { display: flex; gap: 1.6rem; font-size: 0.86rem; letter-spacing: 0.04em; }
.nav-links a { position: relative; padding-block: 0.3rem; color: var(--cream-2); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(232, 114, 44, 0.28); }
.btn-solid:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 38px rgba(232, 114, 44, 0.4); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--gold); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; }
.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.82rem; }
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6.5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4rem) 4rem;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(45% 40% at 75% 35%, rgba(232, 114, 44, 0.16), transparent 70%),
    radial-gradient(38% 42% at 18% 70%, rgba(232, 184, 75, 0.10), transparent 72%);
  filter: blur(70px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 1240px; margin-inline: auto; width: 100%;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.kicker {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-disp); font-weight: 640;
  font-size: clamp(2.5rem, 5.6vw, 4.7rem);
  line-height: 1.05; text-wrap: balance;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}
.hero-title em { color: var(--accent); font-weight: 600; }
.hero-sub { max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--cream-2); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero-note { font-size: 0.78rem; color: var(--cream-mut); letter-spacing: 0.02em; }

.hero-figure { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.hero-figure img { aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.06); }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.4rem 1.1rem;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--cream-2);
  background: linear-gradient(180deg, transparent, rgba(12, 26, 18, 0.85));
}
@media (max-width: 900px) { .hero-figure { max-width: 460px; } }

.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px;
}
.scroll-hint span {
  position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--accent); border-radius: 2px;
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 0.9rem; background: var(--bg-2); }
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content; align-items: center;
  font-family: var(--font-disp); font-size: 1.15rem; color: var(--cream-2); white-space: nowrap;
  animation: marqueeMove 34s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--accent); font-size: 0.7rem; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.2rem, 5vw, 4rem); }
.section > * { max-width: 1240px; margin-inline: auto; }
.section-dark { background: var(--bg-2); }

/* Secciones claras: oportunidad, activos, traspaso */
#oportunidad, #activos, #traspaso { background: var(--paper); color: var(--ink); }
#oportunidad .kicker, #activos .kicker, #traspaso .kicker { color: var(--accent-2); }

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head h2 {
  font-family: var(--font-disp); font-weight: 640;
  font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.12; text-wrap: balance;
  letter-spacing: -0.01em;
}
.section-head h2 em { color: var(--accent); }
#oportunidad h2 em, #activos h2 em, #traspaso h2 em { color: var(--accent-2); }
@media (max-width: 700px) { .br-desk { display: none; } }

/* ---------- Oportunidad ---------- */
.opp-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 860px) { .opp-grid { grid-template-columns: 1fr; } }
.opp-lede {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.6; color: var(--ink);
  font-weight: 400; margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
}
.opp-lede strong { font-weight: 700; color: var(--accent-2); }
.opp-points { list-style: none; display: flex; flex-direction: column; }
.opp-points li {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.4rem 0.2rem; border-top: 1px solid var(--line-ink);
}
.opp-points li:last-child { border-bottom: 1px solid var(--line-ink); }
.opp-num {
  font-family: var(--font-disp); font-weight: 700;
  font-size: 1.9rem; line-height: 1; color: var(--accent);
  min-width: 2.6rem;
}
.opp-points strong { display: block; color: var(--ink); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.opp-points p { font-size: 0.95rem; color: var(--ink-mut); }
.opp-mascota { text-align: center; }
.opp-mascota img {
  width: clamp(240px, 26vw, 380px); margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 70, 67, 0.18));
  animation: mascotaFloat 5s ease-in-out infinite;
}
@keyframes mascotaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.opp-mascota figcaption { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-mut); }
@media (max-width: 860px) { .opp-mascota { order: -1; } .opp-mascota img { width: 220px; } }

/* ---------- Cifras ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat { background: var(--bg-2); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.stat-num {
  display: block; font-family: var(--font-disp);
  font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; color: var(--gold); margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.88rem; color: var(--cream-mut); letter-spacing: 0.02em; }
.stats-note { margin-top: 1.6rem; font-size: 0.8rem; color: var(--cream-mut); max-width: 62ch; }

/* ---------- Activos ---------- */
.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .assets-grid { grid-template-columns: 1fr; max-width: 560px; } }
.asset-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-ink);
  box-shadow: 0 14px 40px rgba(20, 35, 27, 0.07);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.asset-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(20, 35, 27, 0.14); }
.asset-card figure { overflow: hidden; aspect-ratio: 4 / 3; }
.asset-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), filter 0.6s; }
.asset-card:hover img { transform: scale(1.07); filter: saturate(1.12); }
.asset-card h3 {
  font-family: var(--font-disp); font-weight: 600; font-size: 1.45rem;
  padding: 1.3rem 1.4rem 0.4rem; color: var(--ink);
}
.asset-card p { padding: 0 1.4rem 1.6rem; font-size: 0.92rem; color: var(--ink-mut); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; padding-left: 2.4rem; }
.timeline-line {
  position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.timeline-line span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.4rem; top: 0.45rem;
  width: 12px; height: 12px; margin-left: 3px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--accent);
}
.tl-year { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }
.tl-item h3 { font-family: var(--font-disp); font-weight: 600; font-size: 1.6rem; margin: 0.3rem 0 0.5rem; }
.tl-item p { color: var(--cream-2); font-size: 0.96rem; max-width: 58ch; }

/* ---------- Traspaso ---------- */
.handover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-bottom: clamp(2rem, 5vh, 3rem); }
@media (max-width: 760px) { .handover-grid { grid-template-columns: 1fr; } }
.hand-card {
  background: #fff; border: 1px solid var(--line-ink); border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 14px 40px rgba(20, 35, 27, 0.06);
}
.hand-card-featured { background: var(--bg); color: var(--cream); border-color: transparent; }
.hand-card-featured p { color: var(--cream-2); }
.hand-num { display: block; font-family: var(--font-disp); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); line-height: 1; margin-bottom: 0.7rem; }
.hand-card-featured .hand-num { color: var(--gold); }
.hand-card h3 { font-family: var(--font-disp); font-weight: 600; font-size: 1.5rem; margin-bottom: 0.5rem; }
.hand-card p { font-size: 0.94rem; color: var(--ink-mut); }
.fit {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 16px;
  background: rgba(232, 114, 44, 0.07); border: 1px dashed rgba(201, 94, 31, 0.4);
  font-size: 0.95rem; color: var(--ink-mut);
}
.fit strong { color: var(--ink); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.section-contact { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; margin-bottom: 1.2rem; }
.contact-copy h2 em { color: var(--accent); }
.contact-copy > p { color: var(--cream-2); max-width: 48ch; margin-bottom: 2rem; }
.contact-direct { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.5rem; }
.contact-direct span { display: block; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-mut); margin-bottom: 0.15rem; }
.contact-direct a { font-size: 1.12rem; color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact-direct a:hover { border-color: var(--gold); }
.contact-mascota { width: clamp(90px, 12vw, 140px); opacity: 0.9; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.15rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.field-row { display: flex; gap: 1.15rem; }
@media (max-width: 560px) { .field-row { flex-direction: column; } }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-mut); }
.field input, .field select, .field textarea {
  background: rgba(242, 235, 218, 0.06);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem; color: var(--cream);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.field select { appearance: none; }
.field select option { background: var(--bg-2); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(242, 235, 218, 0.09);
}
.form-note { font-size: 0.76rem; color: var(--cream-mut); text-align: center; }

/* ---------- Galería del local (cuadrados 1:1) ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
@media (max-width: 1020px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.g-item {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1 / 1;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(0, 51, 45, 0.88));
}
.g-cta {
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px dashed var(--line);
}
.g-cta > div { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; padding: 1rem; }
.g-cta span { font-family: var(--font-disp); font-weight: 600; font-size: 1.25rem; color: var(--cream); text-wrap: balance; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.2rem, 5vw, 4rem) 3.4rem;
  text-align: center; font-size: 0.85rem; color: var(--cream-mut);
}
.footer-wordmark-card {
  display: inline-block; background: var(--cream);
  border-radius: 16px; padding: 1rem 1.6rem; margin-bottom: 1.2rem;
}
.footer-wordmark-card img { width: clamp(180px, 22vw, 240px); }
.footer-sello { width: 74px; margin: 0 auto 1.1rem; }
.footer-fine { max-width: 68ch; margin: 0.6rem auto 0; font-size: 0.72rem; line-height: 1.7; }

/* ---------- Reveals (con red de seguridad) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* Si JS no carga, todo visible a los 5s */
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.reveal { animation: revealSafety 0.01s 5s forwards; }

/* Solo efectos intrusivos se apagan con reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .splash-sello { animation: none; }
}
