/* ==========================================================================
   Genten Detail — Landing
   Paleta y tipografía respetadas al pie de la letra (logos/palet de colores.jpg,
   logos/tipografia.jpg). Solo estos 5 colores + opacidades derivadas.
   ========================================================================== */

:root {
  /* Paleta oficial — únicos colores del sitio */
  --spruce:  #30442F; /* Dark Spruce  */
  --cherry:  #6C1717; /* Black Cherry */
  --ash:     #C2CCBD; /* Ash Grey     */
  --indigo:  #1B264F; /* Space Indigo */
  --blue:    #274690; /* French Blue  */

  /* Derivados de la paleta (misma familia, distinta opacidad/mezcla) */
  --cherry-hover: #571212;
  --blue-hover:   #1f3873;
  --ink:          var(--indigo);
  --paper:        #eef1ea;   /* Ash Grey aclarado para fondos amplios */
  --line:         rgba(48, 68, 47, 0.18);

  /* Tipografía */
  --font-display: 'Rye', Georgia, 'Times New Roman', serif;
  --font-round:   'Varela Round', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 38, 79, 0.12);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.eyebrow {
  font-family: var(--font-round);
  color: var(--cherry);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.display { font-family: var(--font-display); color: var(--spruce); font-weight: 400; }
.subhead { font-family: var(--font-round); color: var(--cherry); }
.center { text-align: center; }
.muted { opacity: .85; }
.confirm {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cherry);
  background: rgba(108, 23, 23, .1);
  border: 1px dashed var(--cherry);
  border-radius: 6px;
  padding: 1px 7px;
  vertical-align: middle;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.02rem;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--cherry); color: #fff; box-shadow: 0 8px 20px rgba(108,23,23,.35); }
.btn--wa:hover { background: var(--cherry-hover); }
.btn--ghost {
  background: transparent;
  color: var(--ash);
  border: 2px solid rgba(194, 204, 189, .55);
}
.btn--ghost:hover { border-color: var(--ash); background: rgba(194,204,189,.1); }
.btn--lg { font-size: 1.15rem; padding: 18px 34px; }
.wa-ico { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blue);
  border-bottom: 3px solid var(--indigo);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  color: var(--ash);
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-round);
  color: var(--ash);
  font-size: .95rem;
  opacity: .9;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.header-cta { display: inline-flex; }

/* ==========================================================================
   1 · Hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--indigo) 100%);
  color: var(--ash);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero .eyebrow { color: var(--ash); opacity: .85; }
.hero h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
}
.hero .lead {
  font-family: var(--font-round);
  color: var(--ash);
  font-size: 1.2rem;
  max-width: 40ch;
  margin: 0 0 28px;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(194,204,189,.25);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   2 · Barra de confianza
   ========================================================================== */
.trust {
  background: var(--spruce);
  color: var(--ash);
}
.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 20px 20px;
}
.trust-item {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.trust-item::before { content: "◆"; color: var(--ash); opacity: .7; font-size: .7em; }

/* ==========================================================================
   3 · El problema
   ========================================================================== */
.problem { background: var(--paper); }
.problem .wrap { max-width: 820px; }
.problem h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.problem .big {
  font-family: var(--font-round);
  font-size: 1.25rem;
  color: var(--ink);
}
.problem .big strong { color: var(--cherry); }

/* ==========================================================================
   4 · Servicios
   ========================================================================== */
.services { background: var(--ash); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--blue);
}
.card--feat { border-top-color: var(--cherry); }
.card h3 { font-family: var(--font-round); color: var(--spruce); font-size: 1.4rem; }
.price {
  font-family: var(--font-display);
  color: var(--cherry);
  font-size: 1.9rem;
  margin: 6px 0 16px;
}
.card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.card li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
.card li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--blue);
  font-weight: 700;
}
.card .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   5 · Proceso
   ========================================================================== */
.process { background: var(--indigo); color: var(--ash); }
.process h2 { color: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.step {
  text-align: center;
  padding: 26px 18px;
  background: rgba(194,204,189,.06);
  border: 1px solid rgba(194,204,189,.2);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ash);
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { font-family: var(--font-round); color: #fff; font-size: 1.15rem; }
.step p { margin: 0; font-size: .95rem; opacity: .88; }

/* ==========================================================================
   6 · Antes / Después
   ========================================================================== */
.gallery { background: var(--paper); }
.ba {
  position: relative;
  max-width: 720px;
  margin: 36px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-track { display: flex; transition: transform .4s ease; }
.ba-pair { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--cherry); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; opacity: .9;
  display: flex; align-items: center; justify-content: center;
}
.ba-nav:hover { opacity: 1; }
.ba-prev { left: 12px; } .ba-next { right: 12px; }
.ba-dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.ba-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.ba-dot.is-active { background: var(--cherry); }

/* ==========================================================================
   7 · Plan de mantención
   ========================================================================== */
.plan { background: var(--spruce); color: var(--ash); }
.plan .wrap { max-width: 780px; text-align: center; }
.plan h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.plan p { font-family: var(--font-round); font-size: 1.2rem; }

/* ==========================================================================
   8 · Testimonios
   ========================================================================== */
.testimonials { background: var(--ash); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border-left: 5px solid var(--cherry);
}
.quote .stars { color: var(--blue); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-family: var(--font-round); font-size: 1.05rem; margin: 0 0 14px; }
.quote cite { font-style: normal; font-weight: 700; color: var(--spruce); }

/* ==========================================================================
   9 · FAQ
   ========================================================================== */
.faq { background: var(--paper); }
.faq .wrap { max-width: 760px; }
.faq details {
  background: #fff; border-radius: var(--radius); margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(27,38,79,.07); border: 1px solid var(--line);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-round); font-weight: 700; color: var(--spruce);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cherry); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; }

/* ==========================================================================
   10 · CTA final
   ========================================================================== */
.cta-final {
  background: linear-gradient(160deg, var(--blue) 0%, var(--indigo) 100%);
  color: var(--ash);
  text-align: center;
}
.cta-final h2 { color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
.cta-final p { font-family: var(--font-round); font-size: 1.15rem; }

/* ==========================================================================
   11 · Footer
   ========================================================================== */
.site-footer { background: var(--indigo); color: var(--ash); padding: 48px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(194,204,189,.2);
}
.footer-grid img { height: 52px; margin-bottom: 12px; }
.footer-grid h4 { font-family: var(--font-round); color: #fff; margin: 0 0 10px; }
.footer-grid a, .footer-grid p { font-size: .95rem; opacity: .88; margin: 4px 0; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 22px; font-size: .85rem; opacity: .7; }

/* ==========================================================================
   Botón WhatsApp flotante
   ========================================================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--cherry); color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(108,23,23,.5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .wa-ico { width: 30px; height: 30px; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .nav-links { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .header-cta .btn-label { display: none; }
  .ba-pair { grid-template-columns: 1fr; }
}
