/* ═══════════════════════════════════════════════════════════════
   COTIZADOR · clases csq-* (v4.4) sobre el sistema de diseño v2.
   Puente: las variables y clases de cascarón del tema anterior se
   mapean a los tokens nuevos; el bloque csq-* original va debajo intacto.
   ═══════════════════════════════════════════════════════════════ */
:root{--verde:#1a3a2a;--vm:#2d5a3d;--vc:#3d7a52;--oroh:#e0a840;--w:#ffffff;--gris:#f7f5f0;--borde:#e8e3d8;--txt:#1a1a1a;--csh-radius:14px;--csh-shadow:0 10px 30px rgba(26,58,42,.10)}
.csh-page-hero{position:relative;padding:clamp(56px,8vw,96px) 0 clamp(48px,7vw,88px);background:linear-gradient(135deg,#1a3a2a 0%,#2d5a3d 100%);color:#f7f5f0;overflow:hidden}
.csh-page-hero::after{content:"";position:absolute;inset:auto -10% -40% auto;width:50%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(240,192,96,.16),transparent 70%);pointer-events:none}
.csh-page-hero .csh-wrap{position:relative}
.csh-wrap{width:min(1200px,100% - 2*clamp(20px,4vw,48px));margin-inline:auto}
.csh-section{padding-block:clamp(48px,5vw,80px)}
.csh-section--crema{background:#f7f5f0}
.csh-label{font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#f0c060;margin:0 0 14px}
.csh-section .csh-label{color:#8a6420}
.csh-h{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;line-height:1.08;font-size:clamp(2rem,1.5rem + 2vw,3.25rem);margin:0 0 .4em;color:#1a3a2a}
.csh-page-hero .csh-h,.csh-page-hero h1{color:#f7f5f0;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:clamp(2.5rem,1.7rem + 3.4vw,4.5rem);line-height:1.08;margin:0 0 .35em}
.csh-page-hero .csh-h em,.csh-page-hero h1 em{color:#f0c060;font-style:italic;font-weight:500}
.csh-page-hero p{max-width:60ch;color:rgba(247,245,240,.86);font-size:1.0625rem}
.csh-btn-gold,.csh-btn-wa{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 24px;border-radius:10px;font-family:"DM Sans",sans-serif;font-weight:600;font-size:1rem;line-height:1.15;text-decoration:none!important;cursor:pointer;border:0;transition:transform .18s cubic-bezier(.2,.7,.2,1),box-shadow .22s}
.csh-btn-gold{background:linear-gradient(180deg,#f5cc74 0%,#f0c060 55%,#e0a840 100%);color:#1a3a2a;box-shadow:0 2px 4px rgba(74,52,22,.07),0 16px 32px -16px rgba(74,52,22,.24),inset 0 1px 0 rgba(255,255,255,.85)}
.csh-btn-wa{background:linear-gradient(180deg,#34dd74 0%,#25d366 60%,#1fb457 100%);color:#062b13;box-shadow:0 2px 4px rgba(26,58,42,.07),0 16px 32px -16px rgba(26,58,42,.24),inset 0 1px 0 rgba(255,255,255,.28)}
.csh-btn-gold:hover,.csh-btn-wa:hover{transform:translateY(-2px)}
.csh-btn-gold .ci,.csh-btn-wa .ci{width:1.1em;height:1.1em}
.csh-page-hero__content{width:min(1200px,100% - 2*clamp(20px,4vw,48px));margin-inline:auto;position:relative;max-width:none}
.csh-page-hero__content > *{max-width:720px}
.csh-hero__eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#f0c060;margin:0 0 18px;padding:8px 14px;border:1px solid rgba(240,192,96,.45);border-radius:999px}
.csh-hero__title{color:#f7f5f0;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:clamp(2.5rem,1.7rem + 3.4vw,4.5rem);line-height:1.08;margin:0 0 .35em}
.csh-hero__title em{color:#f0c060;font-style:italic;font-weight:500}
.csh-hero__subtitle{max-width:60ch;color:rgba(247,245,240,.86);font-size:1.0625rem;margin:0}
.csh-section__inner{width:min(1200px,100% - 2*clamp(20px,4vw,48px));margin-inline:auto}
.csh-label--gold{color:#f0c060}
.csh-h2{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:clamp(1.75rem,1.4rem + 1.4vw,2.5rem);line-height:1.1;margin:0 0 .4em;color:#1a3a2a}
.csh-h2--white{color:#f7f5f0}
.csq-wrap .cs-cajon{--tinta-e:var(--tinta-calida)}
/* ═══════════════════════════════════════════════════════════════
   COTIZADOR PÚBLICO  ·  clases csq-*  (v4.0, julio 2026)
   Prefijo propio para no chocar con las cs-* de las páginas de ruta
   ni con las csh-* del home. Reutiliza las variables y los botones
   (.csh-btn-gold / .csh-btn-wa) que ya existen arriba.
   ═══════════════════════════════════════════════════════════════ */

/* Layout: formulario a la izquierda, panel de precio pegajoso a la derecha */
.csq-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}

.csq-form { max-width: 640px; }

/* Pasos numerados */
.csq-step { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; }
.csq-step:first-child { margin-top: 0; }
.csq-step__num {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--verde); color: var(--oro);
  font-size: 14px; font-weight: 700;
}
.csq-step__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 27px; font-weight: 600; color: var(--verde);
  margin: 0; line-height: 1.2;
}
.csq-step__sub { font-size: 14px; color: var(--sec); margin: -8px 0 20px; }

/* Campos */
.csq-field { margin-bottom: 20px; }
.csq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.csq-label {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--verde);
  margin-bottom: 7px;
}

.csq-input, .csq-select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: var(--w);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--txt);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.csq-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231a3a2a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.csq-input:focus, .csq-select:focus {
  outline: none;
  border-color: var(--vc);
  box-shadow: 0 0 0 3px rgba(61,122,82,.12);
}
.csq-hint { font-size: 12.5px; color: var(--sec); margin: 7px 0 0; line-height: 1.5; }
.csq-hint a { color: var(--vc); text-decoration: underline; }

.csq-submit { width: 100%; text-align: center; margin-top: 8px; padding: 16px 30px; font-size: 16px; }
.csq-privacy { font-size: 12.5px; color: var(--sec); text-align: center; margin: 12px 0 0; }
.csq-privacy a { color: var(--vc); text-decoration: underline; }

/* Consentimientos del paso 3: términos (obligatorio) + marketing (opcional) */
.csq-consent { margin: 18px 0 6px; display: grid; gap: 10px; }
.csq-consent__item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--sec); line-height: 1.55; cursor: pointer;
}
.csq-consent__item input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
  accent-color: var(--vc); cursor: pointer;
}
.csq-consent__item a { color: var(--vc); text-decoration: underline; }

/* Página de términos y condiciones */
.csq-legal { max-width: 820px; padding-top: 40px; padding-bottom: 70px; }
.csq-legal__updated { font-size: 13px; color: var(--sec); margin: 0 0 26px; }
.csq-legal h2 {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 26px; color: var(--verde); margin: 34px 0 10px; font-weight: 500;
}
.csq-legal p, .csq-legal li { font-size: 15px; line-height: 1.7; color: var(--txt, #1a1a1a); }
.csq-legal p { margin: 0 0 12px; }
.csq-legal ul { margin: 0 0 14px; padding-left: 22px; }
.csq-legal li { margin-bottom: 8px; }
.csq-legal a { color: var(--vc); text-decoration: underline; }
.csq-legal__contact {
  margin-top: 34px; padding: 18px 20px; border-radius: 10px;
  background: var(--crema, #f7f5f0); border: 1px solid var(--borde, #e8e3d8);
}

/* Trampa anti-bots: fuera de pantalla, invisible también para lectores de pantalla */
.csq-trampa {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Panel de precio en vivo */
.csq-panel { position: sticky; top: calc(var(--nh) + 20px); }
.csq-panel__inner {
  background: var(--verde);
  border-radius: var(--csh-radius);
  padding: 26px 24px;
  color: var(--w);
  box-shadow: var(--csh-shadow);
}
.csq-panel__label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--oro); margin: 0 0 14px;
}
.csq-panel__empty p { font-size: 14px; color: rgba(255,255,255,.78); margin: 0 0 12px; line-height: 1.6; }
.csq-panel__from { font-size: 14px; }
.csq-panel__from b { color: var(--oro); font-size: 19px; }

.csq-panel__total {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px; font-weight: 700; color: var(--oro);
  line-height: 1.05;
}
.csq-panel__for { font-size: 13.5px; color: rgba(255,255,255,.8); margin: 6px 0 16px; }
.csq-panel__rows { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
.csq-panel__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
  padding: 5px 0;
}
.csq-panel__row b { color: var(--w); white-space: nowrap; }

.csq-panel__custom p { font-size: 14px; color: rgba(255,255,255,.82); margin: 0 0 10px; line-height: 1.6; }
.csq-panel__custom p b { color: var(--oro); font-size: 17px; }

.csq-panel__checks {
  list-style: none; padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 16px;
}
.csq-panel__checks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,.8);
  padding: 4px 0;
}
.csq-panel__checks .ci { color: var(--oro); width: 15px; height: 15px; }
.csq-panel__note { font-size: 11.5px; color: rgba(255,255,255,.55); margin: 14px 0 0; line-height: 1.5; }

/* Errores de validación */
.csq-error {
  background: #fdf3f3;
  border: 1px solid #e8c4c4;
  border-left: 4px solid #c0392b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px; color: #7d2b21;
}
.csq-error strong { display: block; margin-bottom: 6px; color: #a32d1e; }
.csq-error ul { margin: 0; padding-left: 20px; }
.csq-error li { padding: 2px 0; }

/* ── Resultado ── */
.csq-result {
  background: var(--verde);
  border-radius: 18px;
  padding: 44px 40px;
  color: var(--w);
  box-shadow: var(--csh-shadow);
}
.csq-result .csh-h2 { margin: 8px 0 4px; }
.csq-result__sub { font-size: 14.5px; color: rgba(255,255,255,.75); margin: 0 0 28px; line-height: 1.6; }

.csq-lines {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px 22px;
}
.csq-line {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.csq-line:last-child { border-bottom: none; }
.csq-line small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 3px; }
.csq-line b { font-size: 17px; white-space: nowrap; }
.csq-line--total { padding: 20px 0; }
.csq-line--total span { font-size: 16px; font-weight: 500; }
.csq-line--total b {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 40px; font-weight: 700; color: var(--oro);
  line-height: 1;
}

.csq-result__note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.6);
  margin: 16px 0 0; line-height: 1.5;
}
.csq-result__note .ci { color: var(--oro); margin-top: 2px; }

.csq-custom {
  background: rgba(240,192,96,.1);
  border: 1px solid rgba(240,192,96,.3);
  border-radius: 12px;
  padding: 22px 24px;
}
.csq-custom p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 10px; line-height: 1.65; }
.csq-custom p:last-child { margin-bottom: 0; }
.csq-custom b { color: var(--oro); }

.csq-result__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.csq-result__mail { font-size: 13px; color: rgba(255,255,255,.6); margin: 18px 0 0; }
.csq-result__mail b { color: rgba(255,255,255,.85); }

/* Incluye / no incluye */
.csq-cols {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  margin-top: 48px;
}
.csq-col h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px; font-weight: 600; color: var(--verde);
  margin: 0 0 16px;
}
.csq-check-list, .csq-x-list { list-style: none; padding: 0; margin: 0; }
.csq-check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--txt);
  padding: 7px 0; line-height: 1.55;
}
.csq-check-list .ci { color: var(--vc); margin-top: 4px; }
.csq-x-list li {
  font-size: 14.5px; color: var(--sec);
  padding: 7px 0 7px 20px;
  position: relative; line-height: 1.55;
}
.csq-x-list li::before {
  content: '—';
  position: absolute; left: 0; color: var(--borde);
}

/* Opcionales (informativos, no suman) */
.csq-optionals {
  margin-top: 48px;
  background: var(--gris);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 32px 34px;
}
.csq-optionals h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px; font-weight: 600; color: var(--verde);
  margin: 0 0 8px;
}
.csq-optionals__note { font-size: 13.5px; color: var(--sec); margin: 0 0 20px; line-height: 1.6; }
.csq-optionals__note b { color: var(--verde); }
.csq-opt-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.csq-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 14px; color: var(--txt);
}
.csq-opt small { display: block; font-size: 12px; color: var(--sec); margin-top: 2px; }
.csq-opt b { color: var(--verde); white-space: nowrap; }

.csq-again { margin-top: 36px; font-size: 14px; }
.csq-again a { color: var(--vc); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .csq-wrap { grid-template-columns: 1fr; gap: 32px; }
  /* En móvil el panel deja de ser pegajoso y se pone ARRIBA del formulario:
     el visitante ve el precio moverse mientras elige. */
  .csq-panel { position: static; order: -1; }
  .csq-form { max-width: none; }
  .csq-cols { grid-template-columns: 1fr; gap: 32px; }
  .csq-opt-list { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .csq-row { grid-template-columns: 1fr; gap: 0; }
  .csq-result { padding: 32px 22px; border-radius: 14px; }
  .csq-lines { padding: 4px 16px; }
  .csq-line { flex-direction: column; align-items: flex-start; gap: 4px; }
  .csq-line b { font-size: 16px; }
  .csq-line--total b { font-size: 34px; }
  .csq-result__cta .csh-btn-gold,
  .csq-result__cta .csh-btn-wa { width: 100%; text-align: center; justify-content: center; }
  .csq-optionals { padding: 24px 20px; }
  .csq-panel__total { font-size: 40px; }
  .csq-step__title { font-size: 24px; }
}

/* Elección de alojamiento: Pensión / Hotel */
.csq-tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.csq-tipo { cursor: pointer; }
.csq-tipo input { position: absolute; opacity: 0; width: 0; height: 0; }
.csq-tipo__box {
  display: block; height: 100%;
  padding: 18px 20px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--w);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.csq-tipo:hover .csq-tipo__box { border-color: var(--vc); }
.csq-tipo input:checked + .csq-tipo__box {
  border-color: var(--verde);
  background: #f4f8f5;
  box-shadow: 0 0 0 3px rgba(61,122,82,.12);
}
.csq-tipo input:focus-visible + .csq-tipo__box { box-shadow: 0 0 0 3px rgba(240,192,96,.5); }
.csq-tipo__nombre {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 600; color: var(--verde);
  margin-bottom: 5px;
}
.csq-tipo__desc { display: block; font-size: 13px; color: var(--sec); line-height: 1.55; }

/* Nota que explica la diferencia entre pensión y hotel */
.csq-nota-aloj {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--gris);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px; color: var(--sec); line-height: 1.6;
  margin: 0 0 8px;
}
.csq-nota-aloj .ci { color: var(--vc); margin-top: 3px; width: 15px; height: 15px; }
.csq-nota-aloj b { color: var(--verde); }

/* Aviso: el año que eligió todavía no tiene tarifas cargadas en el CRM.
   Ámbar como la caja de "ruta a medida" del resultado, pero sobre el fondo
   claro del formulario. El `display:flex` gana sobre el `hidden` del navegador,
   así que la regla de abajo es obligatoria para que arranque escondido. */
.csq-nota-anio {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(240,192,96,.16);
  border: 1px solid rgba(240,192,96,.55);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px; color: var(--sec); line-height: 1.6;
  margin: 9px 0 0;
}
.csq-nota-anio[hidden] { display: none; }
.csq-nota-anio .ci { color: #a6772a; margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; }
.csq-nota-anio b { color: var(--verde); }
.csq-nota-anio a { color: var(--vc); text-decoration: underline; }

@media (max-width: 720px) {
  .csq-tipos { grid-template-columns: 1fr; gap: 10px; }
  .csq-tipo__box { padding: 15px 16px; }
  .csq-tipo__nombre { font-size: 21px; }
}

/* Aviso "¿no está tu ruta?" arriba del formulario */
.csq-aviso {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  background: var(--verde);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
}
.csq-aviso__txt { display: flex; flex-direction: column; gap: 3px; }
.csq-aviso__txt b { color: var(--w); font-size: 15px; }
.csq-aviso__txt span { color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.5; }
.csq-aviso__btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--oro); color: var(--verde);
  font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.csq-aviso__btn:hover { background: var(--oroh); transform: translateY(-1px); color: var(--verde); }
.csq-aviso__btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); }

@media (max-width: 720px) {
  .csq-aviso { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .csq-aviso__btn { width: 100%; justify-content: center; }
}
