/* ============================================================
   DESPEDIDAS LAS CONDES · Cotización
   Tokens idénticos a despedidaslascondes.cl para que el cliente
   vea la misma marca desde el anuncio hasta la transferencia.
   ============================================================ */

:root {
  /* Fondos · oscuros cálidos (hue 15-20°) */
  --bg:           #0F0806;
  --bg-soft:      #1A100C;
  --bg-card:      #241814;
  --bg-elevated:  #2F231D;

  /* Coral · monocromática (hue 12°) */
  --coral:        #FF6B47;
  --coral-bright: #FF8264;
  --coral-soft:   #FFA08A;
  --coral-deep:   #D9533A;
  --coral-glow:   rgba(255, 107, 71, 0.15);

  /* Texto · blancos cálidos */
  --text:         #FFFFFF;
  --text-soft:    rgba(255, 240, 235, 0.82);
  --text-muted:   rgba(255, 240, 235, 0.66);

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.skip {
  position: absolute; left: -9999px;
  background: var(--coral); color: #1A0D08;
  padding: 12px 20px; z-index: 100; font-weight: 500;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 760px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 25px); }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--coral-soft);
  margin-bottom: 14px;
}

.sub {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 62ch;
  line-height: 1.75;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--coral);
  color: #1A0D08;
}
.btn-primary:hover { background: var(--coral-bright); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-soft); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 8, 6, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-row {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}
/* ============================================================
   MENÚ ÚNICO · mismo header que el resto del sitio (ver /nav.php)
   Antes esta página tenía .topbar/.brand propios y la clase .nav
   significaba el menú interior, lo que chocaba con el CSS global.
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0;
  background: rgba(15, 8, 6, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-strong);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: #0F0806; }
}
/* El .btn de esta pagina es mas grande que el del resto del sitio.
   En el encabezado se iguala, para que las cinco paginas midan lo mismo. */
.nav .btn { padding: 14px 26px; font-size: 14px; gap: 10px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 22px; color: var(--coral); letter-spacing: -0.01em; line-height: 1;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--text-soft); letter-spacing: 0.02em; transition: color .2s ease; }
.nav-links a:hover { color: var(--coral-soft); }
.nav-links a.is-current { color: var(--coral-soft); position: relative; }
.nav-links a.is-current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1.5px; background: var(--coral); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; transition: color .2s ease;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--coral); flex: none; }
.nav-phone:hover, .nav-phone:hover svg { color: var(--coral-soft); }
.nav-cta-desktop svg { width: 16px; height: 16px; }
.menu-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--text); position: relative; transition: all .3s ease; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; width: 22px; height: 1.5px;
  background: var(--text); transition: all .3s ease;
}
.menu-toggle span::before { top: -7px; left: 0; }
.menu-toggle span::after { top: 7px; left: 0; }
.nav.menu-open { background: rgba(15, 8, 6, 0.98); }
.nav.menu-open .menu-toggle span { background: transparent; }
.nav.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 720px) {
  /* OJO: aqui NO va position:relative. Eso rompia el sticky del
     encabezado en telefono. position:sticky ya sirve de referencia
     para el panel desplegable, que es absolute. */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15, 8, 6, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; padding: 12px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
  .nav-links { align-items: stretch; }
  .nav-links.open a { padding: 16px var(--pad); font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open a { text-align: left; width: 100%; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .nav-links.open a.is-current::after { display: none; }
  .nav-links.open a.is-current { border-left: 3px solid var(--coral); padding-left: calc(var(--pad) - 3px); }
  .menu-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-actions { gap: 12px; }
  .logo { font-size: 18px; }
  .nav-phone { font-size: 13px; }
}
@media (max-width: 400px) {
  .logo { font-size: 16px; }
  .nav-phone { font-size: 12px; }
  .nav-phone svg { width: 14px; height: 14px; }
}

/* ---------- Portada ---------- */
.hero { padding: clamp(40px, 5.5vw, 68px) 0 clamp(32px, 4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.hero-copy .lead { margin: 18px 0 0; }
.hero-copy .lead p {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.75;
  max-width: 52ch;
}
.hero-copy .lead p + p { margin-top: 0.9em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Fila de confianza · rejilla 2x2 fija en escritorio y tablet.
   Antes usaba flex-wrap: con 4 ítems de largo distinto entraban 3
   arriba y 1 solo abajo, y quedaba desbalanceado. */
.trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
  margin: 26px 0 0; padding: 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
}
.trust-row li { padding: 15px 22px 15px 0; }

/* Separadores sutiles entre celdas */
.trust-row li:nth-child(2n) {
  padding-left: 22px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}
.trust-row li:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }

.trust-row strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1px;
}

/* Móvil · una sola columna, como lista limpia de 4 líneas */
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li {
    padding: 11px 0;
    border-left: none !important;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .trust-row li:last-child { border-bottom: none; }
}

.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-media figcaption {
  margin-top: 11px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 3 / 2; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(44px, 5.5vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.head { margin-bottom: clamp(24px, 3vw, 36px); }
.head .sub { margin-top: 16px; }

/* ---------- Packs · el elemento protagonista ---------- */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
/* Las tres tarjetas de pack llevan el mismo tratamiento de fondo que la
   caja "Seis zonas en una sola casa" de la portada: degradado diagonal mas
   un resplandor coral en la esquina superior derecha. */
.pack {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.pack::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--coral-glow) 0%, transparent 60%);
  pointer-events: none;
}
.pack > * { position: relative; z-index: 2; }
/* La destacada arranca un escalon mas clara, para que se siga distinguiendo */
.pack--featured {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-color: var(--coral-deep);
}
.pack-badge {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--coral-soft);
  border: 1px solid var(--coral-deep);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 14px;
}
.pack h3 { margin-bottom: 8px; }
.pack-summary {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
}

/* Tamano de grupo de cada pack. Ocupa el lugar donde antes iba el precio:
   una linea sobria sobre una separacion, para que se lea de una pasada y
   filtre las consultas que no calzan con el minimo. */
.pack-grupo {
  margin: 0 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--coral-soft);
}

.pack-total {
  margin: 0 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pack-total-num {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--coral);
}
.pack-total-note {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pack-prices {
  list-style: none;
  margin: 13px 0 18px;
  padding: 0;
  font-size: 14.5px;
  color: var(--text-soft);
}
.pack-prices li { padding: 3px 0; }

.pack-includes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
}
.pack-includes li {
  position: relative;
  padding: 6.5px 0 6.5px 22px;
  border-bottom: 1px solid var(--border);
}
.pack-includes li:last-child { border-bottom: none; }
.pack-includes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral-deep);
}

.deposit-note {
  margin: 26px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 16px;
  color: var(--text-soft);
  background: var(--coral-glow);
  border: 1px solid var(--coral-deep);
  border-radius: var(--radius);
  padding: 17px 24px;
}
.deposit-note strong { color: var(--coral-soft); font-weight: 500; }

/* ---------- Listas simples ---------- */
.plain-list {
  list-style: none; margin: 0; padding: 0;
  font-size: 16px; color: var(--text-soft);
}
.plain-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.plain-list li:last-child { border-bottom: none; }
.plain-list li::before {
  content: "";
  position: absolute; left: 2px; top: 20px;
  width: 7px; height: 1px;
  background: var(--coral-deep);
}

/* ---------- Tarjetas de servicio ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 20px; margin-bottom: 6px; }
.card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- La casa ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.venue-grid .plain-list { margin: 18px 0 24px; }
.venue-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.venue-media img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.venue-media img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .venue-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.quote {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px;
}
.quote p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--text);
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--coral-soft);
}
.quote cite span {
  display: block;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Pasos de reserva ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0; padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 20px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--coral-deep);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--coral);
}
.steps h3 { font-size: 20px; margin-bottom: 5px; }
.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.policy {
  margin-top: 26px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.policy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}
.policy p + p { margin-top: 12px; }
.policy strong { color: var(--text); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 40px 17px 0;
  position: relative;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--coral);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 40px 19px 0; }
.faq-a p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 68ch;
}
.faq-a p + p { margin-top: 0.9em; }

/* ---------- Cierre ---------- */
.final {
  padding: clamp(48px, 6vw, 76px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
}
.final p {
  margin: 14px auto 26px;
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}
.final-phone {
  margin-top: 18px !important;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--coral-soft);
}

/* ---------- Pie ---------- */
.footer {
  padding: 38px 0 30px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
}
.footer-row strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.footer-row p { margin: 4px 0 0; color: var(--text-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--text-soft); }
.footer-nav a:hover { color: var(--coral-soft); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- Botón flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.wa-float img { width: 26px; height: 26px; }

@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; }
}
