/* ============================================================
   rt-contact.css — Vías de contacto directo (teléfono / WhatsApp)
   Se carga en todas las páginas públicas junto a rt-contact.js.
   Diseño integrado con el sistema del sitio:
   crema #FAF6EE · tinta #1C1A17 · vino #5C1A1B · oro #B8895A
   ============================================================ */

/* ---------- Teléfono en cabecera (escritorio) ---------- */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans, 'Public Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent, #5C1A1B);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.header-phone:hover { opacity: 0.75; }
.header-phone svg { flex-shrink: 0; }
.header-phone .hp-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #8A8378);
  margin-bottom: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (max-width: 800px) {
  /* En móvil la barra inferior asume el contacto directo */
  .header-phone { display: none; }
}

/* ---------- Línea de contacto directo bajo los CTA del hero ---------- */
.hero-direct {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted, #8A8378);
}
.hero-direct a {
  color: var(--accent, #5C1A1B);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Burbuja flotante de WhatsApp (escritorio) ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(28, 26, 23, 0.28);
  z-index: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.32);
}
.wa-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 800px) {
  .wa-float { display: none; } /* en móvil se usa la barra inferior */
}

/* ---------- Barra fija inferior (móvil) ---------- */
.contact-dock {
  display: none;
}
@media (max-width: 800px) {
  .contact-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    border-top: 1px solid var(--rule, #D8CFB8);
    box-shadow: 0 -4px 16px rgba(28, 26, 23, 0.12);
  }
  .contact-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 58px;
    font-family: var(--sans, 'Public Sans', system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
  }
  .contact-dock .dock-call {
    background: var(--accent, #5C1A1B);
    color: var(--bg, #FAF6EE);
  }
  .contact-dock .dock-wa {
    background: #075E54;
    color: #FFFFFF;
  }
  .contact-dock svg { flex-shrink: 0; }

  /* Reservar sitio para la barra y evitar que tape el footer */
  body { padding-bottom: 58px; }

  /* Subir el botón de "gestionar cookies" para que no quede debajo */
  .rt-cookie-toggle { bottom: 74px !important; }
  /* Y el banner de cookies, por encima de la barra */
  .rt-cookie-banner { bottom: 70px !important; }
}

/* ---------- Franja de contacto directo (página de consulta) ---------- */
.direct-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 34px;
}
.direct-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  font-family: var(--sans, 'Public Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ink, #1C1A17);
  text-decoration: none;
  transition: all 0.2s ease;
}
.direct-strip .ds-call {
  background: var(--accent, #5C1A1B);
  border-color: var(--accent, #5C1A1B);
  color: var(--bg, #FAF6EE);
}
.direct-strip .ds-call:hover { background: var(--accent-soft, #7A2728); }
.direct-strip .ds-wa {
  background: #075E54;
  border-color: #075E54;
  color: #FFFFFF;
}
.direct-strip .ds-wa:hover { filter: brightness(1.12); }
.direct-strip-note {
  font-size: 13.5px;
  color: var(--muted, #8A8378);
  text-align: center;
  margin: 0 0 14px;
}
@media (max-width: 640px) {
  .direct-strip { grid-template-columns: 1fr; }
}

/* ---------- Bloque de captación en la calculadora ---------- */
.calc-capture {
  margin-top: 18px;
  border: 1px solid var(--accent, #5C1A1B);
  background: var(--bg, #FAF6EE);
  padding: 22px 20px;
}
.calc-capture h4 {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--accent, #5C1A1B);
}
.calc-capture p {
  font-size: 14.5px;
  color: var(--ink-soft, #4A4640);
  margin: 0 0 16px;
  line-height: 1.5;
}
.calc-capture .cc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.calc-capture .cc-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--sans, 'Public Sans', system-ui, sans-serif);
  text-decoration: none;
}
.calc-capture .cc-wa { background: #075E54; color: #FFFFFF; }
.calc-capture .cc-wa:hover { filter: brightness(1.12); }
.calc-capture .cc-call {
  background: var(--accent, #5C1A1B);
  color: var(--bg, #FAF6EE);
}
.calc-capture .cc-call:hover { background: var(--accent-soft, #7A2728); }
.calc-capture .cc-form-link {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft, #4A4640);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .calc-capture .cc-buttons { grid-template-columns: 1fr; }
}
