/* ════════════════════════════════════════════════
   AGENTES — componentes propios de esta landing.
   Reusa los tokens de styles.css y las secciones de banos.css;
   acá solo lo nuevo: calculadora de horas, prueba del sábado,
   agente de WhatsApp, precios y marcas de "completar".
   ════════════════════════════════════════════════ */

/* ── Texto pendiente de completar antes de publicar ── */
.todo {
  background: rgba(248, 150, 69, 0.16);
  border: 1px dashed var(--naranja);
  border-radius: 6px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--vino-tinta);
  white-space: nowrap;
}

/* ── Calculadora de horas sin atender ── */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.calc {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.calc fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.calc legend,
.calc .calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

.calc-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-day span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.calc-day input:checked + span {
  background: var(--vino-tinta);
  border-color: var(--vino-tinta);
  color: var(--blanco-calido);
}

.calc-day input:focus-visible + span {
  outline: 2px solid var(--cherry);
  outline-offset: 2px;
}

.calc-day span:hover {
  transform: translateY(-1px);
}

.calc-shift {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.calc-shift label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.calc select {
  min-height: 44px;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  font: inherit;
  font-size: 15px;
  color: var(--text);
}

.calc-split {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}

.calc-split input {
  width: 18px;
  height: 18px;
  accent-color: var(--vino-tinta);
}

.calc-out {
  background: var(--vino-tinta);
  color: var(--blanco-calido);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.calc-out .calc-label {
  color: rgba(253, 251, 247, 0.6);
  margin: 0;
}

.calc-big {
  font-family: var(--font-title);
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.calc-big small {
  display: block;
  font-size: 0.26em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.72);
  margin-top: 8px;
}

.calc-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.14);
  overflow: hidden;
}

.calc-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cherry);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.calc-out p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(253, 251, 247, 0.85);
}

.calc-out p b {
  color: var(--blanco-calido);
}

/* ── La prueba del sábado ── */
.proof {
  margin-top: 16px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.proof .proof-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cherry);
}

.proof p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  flex: 1 1 320px;
}

/* ── Aviso del agente de WhatsApp (tiene su propia landing) ── */
.proof .btn {
  flex-shrink: 0;
}

/* ── Precios ── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--vino-tinta);
  box-shadow: var(--shadow-hover);
}

.price-card .price-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--text-2);
}

.price-card.featured .price-tag {
  background: var(--vino-tinta);
  color: var(--blanco-calido);
}

.price-card h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  color: var(--text);
}

.price-card .price {
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}

.price-card li b {
  color: var(--text);
}

.price-card .price span {
  font-family: var(--font);
  font-size: 14px;
  color: var(--mute);
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.price-note {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 820px;
  font-size: 15px;
  color: var(--text-2);
}

.price-note b {
  color: var(--text);
}

@media (max-width: 1100px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-day span {
    width: 40px;
    height: 40px;
  }

  .todo {
    white-space: normal;
  }
}

/* ── Precios: plan de entrada + a medida (2026-11-09) ── */
.price-grid--2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  max-width: 920px;
  align-items: stretch;
}

.price-card .price-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.price-card .price-sub b {
  color: var(--text);
}

.price-card.featured .price {
  font-size: 46px;
}

.price-card.featured {
  border-width: 1.5px;
}

.price-cta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price-cta .btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* Barras de voz dentro de los botones que abren el agente */
.btn .ag-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.btn .ag-bars i {
  width: 2.5px;
}

@media (max-width: 900px) {
  .price-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Móvil: nada se sale por la derecha (2026-11-10) ──
   El fondo del hero (ola, texto gigante) ensanchaba la página a ~500 px
   en Android/Instagram: body tenía overflow-x hidden pero html no, y el
   botón flotante del agente quedaba anclado a ese borde, fuera de pantalla. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

@media (max-width: 540px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* ── Versión corta (2026-11-10) ── */
.hero--corto { padding-bottom: 24px; }
.hero--corto .hero-sub {
  max-width: 34ch;
  margin: 18px 0 26px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--text);
}
.what-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .what-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Precios en tabla de 4 columnas (2026-11-12) ── */
.pr-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.pr-head .q-text { margin-inline: auto; }

.pr-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 18px;
}
.pr-calls { margin: 0; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.pr-calls b { color: var(--text); }

.pr-range { position: relative; padding: 34px 10px 18px; }
.pr-range input {
  --pr-fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--cherry) var(--pr-fill), var(--piedra-media) var(--pr-fill));
  cursor: pointer;
}
.pr-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cherry); border: 3px solid var(--papel);
  box-shadow: 0 0 0 1px var(--cherry), 0 2px 6px rgba(43, 26, 32, 0.25);
}
.pr-range input::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cherry); border: 3px solid var(--papel);
  box-shadow: 0 0 0 1px var(--cherry);
}
.pr-range input:focus-visible { outline: 2px solid var(--naranja); outline-offset: 6px; }
.pr-bubble {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--cherry);
  color: var(--blanco-calido);
  font: 600 12px/1.4 var(--font-mono);
  pointer-events: none;
}
.pr-ends {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  font: 500 11px var(--font-mono); color: var(--mute);
}

.pr-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--papel);
  border: 1px solid var(--line);
}
.pr-toggle button {
  border: 0; background: none; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  font: 600 13px var(--font); color: var(--text);
}
.pr-toggle button.is-on { background: var(--cherry); color: var(--blanco-calido); }
.pr-free {
  position: absolute; right: -6px; top: -22px;
  padding: 2px 8px; border-radius: 999px;
  background: #fde9d4; border: 1px solid var(--naranja);
  font: 600 11px var(--font); color: var(--vino-tinta); white-space: nowrap;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 24px;
  border-radius: 12px;
  background: var(--papel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pr-card.is-rec {
  border-color: var(--cherry);
  box-shadow: 0 0 0 1px var(--cherry), var(--shadow-hover);
}
.pr-card h3 { margin: 0 0 14px; font: 600 17px var(--font); color: var(--text); }
.pr-price { display: flex; align-items: baseline; gap: 6px; min-height: 46px; }
.pr-price b { font: 700 32px/1.1 var(--font); letter-spacing: -0.01em; color: var(--text); }
.pr-price span { font-size: 13px; color: var(--text-2); }
.pr-sub { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.pr-year { margin: 2px 0 0; font: 500 11px var(--font-mono); color: var(--cherry); }
.pr-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px;
  margin: 20px 0 22px;
  border-radius: 8px;
  background: var(--cherry);
  color: var(--blanco-calido);
  font: 600 14px var(--font);
  transition: background 0.2s;
}
.pr-btn:hover { background: var(--cherry-hover); }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.pr-list li::before {
  content: "";
  position: absolute; left: 2px; top: 3px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--cherry);
  border-bottom: 2px solid var(--cherry);
  transform: rotate(-45deg);
}
.pr-pop {
  position: absolute; top: -11px; left: 18px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--vino-tinta); color: var(--blanco-calido);
  font: 500 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}

.pr-card--dark { background: var(--vino-tinta); border-color: var(--vino-tinta); }
.pr-card--dark h3,
.pr-card--dark .pr-price b { color: var(--blanco-calido); }
.pr-card--dark .pr-sub,
.pr-card--dark .pr-list li { color: #d9cfc9; }
.pr-card--dark .pr-list li::before { border-color: var(--naranja); }
.pr-card--dark .pr-btn { background: #43302f; }
.pr-card--dark .pr-btn:hover { background: #553d3b; }
.pr-card--dark.is-rec { box-shadow: 0 0 0 2px var(--naranja), var(--shadow-hover); border-color: var(--naranja); }

/* Cierre en franja: texto a la izquierda, botones a la derecha */
.pr-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 920px;
  margin: 96px auto 64px;
}
.pr-cta-title { margin: 0; font: 700 clamp(26px, 3.2vw, 36px)/1.15 var(--font-title); text-transform: uppercase; color: var(--text); }
.pr-cta-title em { font-style: normal; color: var(--cherry); }
.pr-cta-btns { display: flex; gap: 12px; flex-shrink: 0; }
.pr-btn-white { background: var(--papel); color: var(--cherry); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.pr-btn-white:hover { box-shadow: var(--shadow-hover); }

@media (max-width: 1000px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}
@media (max-width: 760px) {
  .pr-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: stretch; }
  .pr-calls { text-align: center; }
  .pr-toggle { justify-self: center; margin-top: 14px; }
  .pr-cta { flex-direction: column; align-items: flex-start; }
  .pr-cta-btns { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
}
