/* =========================================================
   Atención con Intención — Astrid Borges
   Paleta: piel / salmón / vinotinto (placeholder hasta marca final)
   ========================================================= */

:root {
  --piel: #f2c9a8;
  --piel-suave: #f8ddc4;
  --salmon: #e9977a;
  --salmon-suave: #f3b6a0;
  --vinotinto: #6e2436;
  --vinotinto-oscuro: #4a1824;
  --crema: #fbf3ec;
  --blanco: #ffffff;
  --texto: #3a2620;
  --texto-suave: #6b564e;
  --borde: #e7d3c2;

  --font-titulo: Georgia, "Times New Roman", serif;
  --font-cuerpo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radio: 14px;
  --radio-grande: 26px;
  --sombra: 0 10px 30px rgba(110, 36, 54, 0.12);
  --sombra-suave: 0 4px 14px rgba(110, 36, 54, 0.08);
  --sombra-flotante: 0 24px 60px rgba(74, 24, 36, 0.25);

  /* easing "luxury" — desaceleración suave, sin rebote, sensación premium */
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cuerpo);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.contenedor {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.seccion { padding: 72px 0; }
.seccion--suave { background: var(--piel-suave); }
.seccion--vinotinto { background: var(--vinotinto); color: var(--crema); }

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinotinto);
  background: var(--piel);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 18px;
}

.etiqueta::before {
  content: "✳";
  font-size: 0.85em;
  color: var(--salmon);
}

.etiqueta--clara { background: rgba(255,255,255,0.16); color: var(--crema); }
.etiqueta--clara::before { color: var(--piel); }

/* Divisor fino bajo titulares — firma visual del sitio */
.divisor {
  width: 64px;
  height: 2px;
  background: var(--salmon);
  border: none;
  margin: 22px 0 26px;
}
.divisor--centro { margin-left: auto; margin-right: auto; }

h1, h2, h3 {
  font-family: var(--font-titulo);
  color: var(--vinotinto-oscuro);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { color: var(--texto-suave); }

.centro { text-align: center; }
.max-ancho { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav__marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  color: var(--vinotinto);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav__marca::before {
  content: "✳";
  font-size: 1.05rem;
  color: var(--salmon);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--texto);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--vinotinto); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--vinotinto);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--crema);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--borde);
  }
  .nav__links.abierto { max-height: 260px; }
  .nav__links a { padding: 14px 24px; border-top: 1px solid var(--borde); }
  .nav__toggle { display: block; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux), background 0.4s var(--ease-lux);
  will-change: transform;
}

.boton--primario {
  background: var(--vinotinto);
  color: var(--crema);
  box-shadow: var(--sombra);
}
.boton--primario:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(110,36,54,0.28); }

.boton--salmon {
  background: var(--salmon);
  color: var(--vinotinto-oscuro);
  box-shadow: var(--sombra-suave);
}
.boton--salmon:hover { transform: translateY(-3px); background: var(--salmon-suave); box-shadow: 0 16px 34px rgba(233,151,122,0.35); }

.boton--secundario {
  background: transparent;
  color: var(--vinotinto);
  border: 2px solid var(--vinotinto);
}
.boton--secundario:hover { background: var(--vinotinto); color: var(--crema); }

.boton--ancho { width: 100%; }

/* ---------- Hero cálido (sin foto) — se usa en /metodo y /equipo-elite ---------- */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(233,151,122,0.35), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(242,201,168,0.55), transparent 55%),
    var(--crema);
  padding: 64px 0;
}

.hero__eyebrow {
  font-size: 1.05rem;
  color: var(--vinotinto);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.15rem;
  max-width: 620px;
}

/* ---------- Hero de lujo con foto (hub) ---------- */
.hero-lux {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 220px;
  isolation: isolate;
}

.hero-lux__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-lux__fondo img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
}

.hero-lux__velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(74,24,36,0.72) 0%, rgba(74,24,36,0.42) 42%, rgba(74,24,36,0.85) 100%),
    linear-gradient(90deg, rgba(74,24,36,0.55) 0%, rgba(74,24,36,0.05) 62%);
}

.hero-lux__contenido { max-width: 640px; }

.hero-lux h1 { color: var(--crema); }

.hero-lux__sub {
  color: var(--piel-suave);
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 34px;
}

/* Tarjeta flotante superpuesta al hero — estilo "welcome / core services" */
.card-flotante {
  position: relative;
  z-index: 2;
  margin-top: -140px;
  background: var(--blanco);
  border-radius: var(--radio-grande);
  box-shadow: var(--sombra-flotante);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 480px;
}

.card-flotante img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--piel);
  flex-shrink: 0;
}

.card-flotante__nombre { color: var(--vinotinto-oscuro); font-weight: 700; font-family: var(--font-titulo); font-size: 1.05rem; }
.card-flotante__rol { color: var(--texto-suave); font-size: 0.9rem; }

@media (max-width: 768px) {
  .hero-lux { padding: 120px 0 100px; min-height: auto; }
  .card-flotante { margin-top: 40px; flex-direction: column; text-align: center; max-width: 100%; }
}

/* ---------- Placeholder de imagen ---------- */
.placeholder-img {
  background: linear-gradient(135deg, var(--piel), var(--salmon-suave));
  border: 2px dashed var(--vinotinto);
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--vinotinto-oscuro);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 24px;
  min-height: 280px;
  aspect-ratio: 4 / 5;
}

.placeholder-img--ancho { aspect-ratio: 16 / 9; min-height: 220px; }

/* ---------- Foto real con caption flotante ---------- */
.foto-marco {
  position: relative;
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.foto-marco img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease-lux);
}

.foto-marco:hover img { transform: scale(1.04); }

.caption-flotante {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(251, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radio);
  padding: 16px 20px;
  box-shadow: var(--sombra-suave);
}

.caption-flotante__nombre { font-family: var(--font-titulo); color: var(--vinotinto-oscuro); font-weight: 700; }
.caption-flotante__rol { font-size: 0.85rem; color: var(--vinotinto); }

/* ---------- Grid genérico ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-2col { grid-template-columns: 1fr; }
}

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--borde);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }

.tarjeta--para { border-left: 4px solid var(--vinotinto); }
.tarjeta--no-para { border-left: 4px solid var(--texto-suave); opacity: 0.92; }

.lista-check { list-style: none; }
.lista-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--texto);
}
.lista-check--para li::before { content: "✓"; position: absolute; left: 0; color: var(--vinotinto); font-weight: 700; }
.lista-check--no-para li::before { content: "✕"; position: absolute; left: 0; color: var(--texto-suave); font-weight: 700; }

.lista-dolor { list-style: none; }
.lista-dolor li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--borde);
}
.lista-dolor li::before { content: "—"; position: absolute; left: 0; color: var(--salmon); font-weight: 700; }

/* ---------- Testimonios ---------- */
.testimonio {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--borde);
  position: relative;
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.testimonio:hover { transform: translateY(-4px); box-shadow: var(--sombra); }

.testimonio__marca-ejemplo {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--salmon);
  color: var(--blanco);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.testimonio__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--salmon), var(--vinotinto));
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.testimonio__nombre { font-weight: 700; color: var(--vinotinto-oscuro); }
.testimonio__rol { font-size: 0.85rem; color: var(--texto-suave); margin-bottom: 10px; }

/* ---------- Timeline (B2B) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--piel);
}

.timeline__paso {
  position: relative;
  padding-bottom: 36px;
}
.timeline__paso:last-child { padding-bottom: 0; }

.timeline__punto {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vinotinto);
  border: 3px solid var(--crema);
  box-shadow: 0 0 0 2px var(--piel);
}

.timeline__semana {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--salmon);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- FAQ acordeón ---------- */
.faq-item {
  border-bottom: 1px solid var(--borde);
}

.faq-pregunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-cuerpo);
  font-weight: 700;
  font-size: 1rem;
  color: var(--vinotinto-oscuro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icono { transition: transform 0.25s ease; font-size: 1.3rem; color: var(--salmon); flex-shrink: 0; }
.faq-item.abierto .faq-icono { transform: rotate(45deg); }

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.abierto .faq-respuesta { max-height: 300px; padding-bottom: 20px; }

/* ---------- Precio ---------- */
.precio-caja {
  background: var(--vinotinto);
  color: var(--crema);
  border-radius: var(--radio);
  padding: 40px;
  text-align: center;
  box-shadow: var(--sombra);
}

.precio-caja__monto { font-family: var(--font-titulo); font-size: 3rem; margin: 8px 0; }
.precio-caja__nota { font-size: 0.9rem; opacity: 0.85; }

.inversion-nota {
  background: var(--piel-suave);
  border: 1px solid var(--piel);
  border-radius: var(--radio);
  padding: 26px;
  text-align: center;
  font-weight: 600;
  color: var(--vinotinto-oscuro);
}

/* ---------- Nota de placeholder / técnica ---------- */
.nota-tecnica {
  font-size: 0.75rem;
  color: var(--texto-suave);
  background: repeating-linear-gradient(45deg, #fff, #fff 8px, var(--piel-suave) 8px, var(--piel-suave) 16px);
  border: 1px dashed var(--salmon);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  display: inline-block;
}

/* ---------- Banda CTA con imagen de fondo ---------- */
.cta-banda {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  isolation: isolate;
}

.cta-banda__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-banda__fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.cta-banda__velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(74,24,36,0.88), rgba(110,36,54,0.8));
}

.cta-banda h2 { color: var(--crema); }

/* ---------- Footer ---------- */
.footer {
  background: var(--vinotinto-oscuro);
  color: var(--piel-suave);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a { color: var(--salmon-suave); }

/* ---------- Animaciones de scroll ---------- */
/* Progressive enhancement: el contenido es visible por defecto.
   Solo se oculta antes de animar si la clase "js" está presente en <html>
   (la añade un script inline en el <head>, así que si JS falla o se
   bloquea, la página nunca se queda en blanco). */
.animar { opacity: 1; transform: none; }

.js .animar {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}
.js .animar.visible { opacity: 1; transform: translateY(0); }

.js .animar--izq { transform: translateX(-40px); }
.js .animar--izq.visible { transform: translateX(0); }

.js .animar--der { transform: translateX(40px); }
.js .animar--der.visible { transform: translateX(0); }

.js .animar--escala { transform: scale(0.92) translateY(20px); }
.js .animar--escala.visible { transform: scale(1) translateY(0); }

.stagger > * { transition-delay: calc(var(--i, 0) * 0.12s); }

@media (prefers-reduced-motion: reduce) {
  .js .animar, .js .animar--izq, .js .animar--der, .js .animar--escala {
    opacity: 1; transform: none; transition: none;
  }
}
