/* ===== MyBroker.travel — estilos propios (complementan main.css del branding) ===== */

.hero-compact .hero-stage { min-height: 0; padding: 24px 0 8px; }
.hero-compact .hero-title { font-size: clamp(34px, 5vw, 58px); }

/* Tablas de aseguradoras y tarifas */
.tabla-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tabla-mb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla-mb caption { text-align: left; padding: 18px 22px 6px; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--ink); }
.tabla-mb th, .tabla-mb td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.tabla-mb thead th { background: var(--green-2); color: #fff; font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: .02em; }
.tabla-mb tbody tr:nth-child(even) { background: var(--green-soft); }
.tabla-mb tbody tr:last-child td { border-bottom: none; }
.tabla-tarifas td, .tabla-tarifas th { text-align: right; }
.tabla-tarifas td:first-child, .tabla-tarifas th:first-child { text-align: left; }
.tabla-nota { max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: 14px; text-align: center; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill-tabla_publica { background: var(--green-soft); color: var(--green-2); }
.pill-reglas_edad { background: var(--gold-soft); color: #8a5e10; }
.pill-cotizador_online { background: var(--blue-soft); color: #2a4a66; }
.pill-pendiente { background: var(--paper-2); color: var(--muted); }

/* Footer disclaimer */
.footer-disclaimer { margin-top: 22px; font-size: 12.5px; color: var(--line-light, rgba(255,255,255,.55)); opacity: .75; max-width: 900px; }

/* ===== Cotizador multi-paso ===== */
.quote-shell { max-width: 860px; margin: 0 auto; background: var(--white); border-radius: 34px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }

.quote-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 30px; padding: 0; flex-wrap: wrap; }
.quote-progress li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.quote-progress li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); font-size: 13px; }
.quote-progress li.active { color: var(--green); }
.quote-progress li.active span { background: var(--green); color: #fff; }
.quote-progress li:not(:last-child)::after { content: "—"; margin-left: 8px; color: var(--line); }

.quote-step { border: none; margin: 0; padding: 0; }
.quote-step legend { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(20px, 3vw, 27px); letter-spacing: -.03em; margin-bottom: 20px; color: var(--ink); }

.quote-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.quote-type-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .18s, background .18s; }
.quote-type-card:hover { border-color: var(--green); }
.quote-type-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.quote-type-card input { position: absolute; opacity: 0; }
.quote-type-card strong { font-family: "Manrope", sans-serif; font-size: 16.5px; color: var(--ink); }
.quote-type-card span { font-size: 13.5px; color: var(--muted); }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 18px; }
.quote-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.quote-grid input, .quote-grid select, .quote-grid textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.quote-grid input:focus, .quote-grid select:focus, .quote-grid textarea:focus { outline: none; border-color: var(--green); }
.quote-full { grid-column: 1 / -1; }
.quote-check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; }
.quote-check input { width: 18px; height: 18px; accent-color: var(--green); }

.quote-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }

.quote-error { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fbe3e0; color: #8c2f24; font-weight: 600; font-size: 14px; }

/* Resultado */
.quote-estado { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.quote-estado-auto { background: var(--green-soft); color: var(--green-2); }
.quote-estado-manual { background: var(--gold-soft); color: #8a5e10; }

.quote-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.quote-plan-card { border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--paper); }
.quote-plan-card h3 { font-size: 16px; margin-bottom: 8px; }
.quote-prima { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 27px; color: var(--green-2); margin: 0 0 4px; }
.quote-prima small { font-size: 13px; color: var(--muted); font-weight: 600; }
.quote-detalle { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quote-plan-card ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 5px; }
.quote-plan-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.quote-contact { margin-top: 26px; padding: 22px; border-radius: var(--radius-lg); background: var(--green-soft); }
.quote-contact strong { font-family: "Manrope", sans-serif; }
.quote-contact .cta-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.quote-sent { margin-top: 14px; font-weight: 700; color: var(--green-2); }

@media (max-width: 640px) {
  .quote-progress li { font-size: 0; gap: 0; }
  .quote-progress li span { font-size: 13px; }
}

/* ===== Página de producto (mockup 1) ===== */
.prod-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--white); border-radius: 34px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 52px); }
.prod-hero-copy h1 { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.035em; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; margin: 14px 0 18px; color: var(--ink); }
.prod-hero-copy p { color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.prod-hero-media { margin: 0; }
.prod-hero-media img { width: 100%; height: auto; display: block; border-radius: 26px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }

.section-title.left { text-align: left; margin-left: 0; max-width: 640px; }

.quien-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.quien-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quien-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.num-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; }
.num-badge.dark { background: var(--ink); }

.cubre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cubre-card { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.cubre-icon { flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); }
.cubre-icon svg { width: 28px; height: 28px; }
.cubre-card h3 { font-size: 17.5px; margin: 4px 0 6px; }
.cubre-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.dato-util { margin: 22px 0 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: 14.5px; max-width: 820px; }

.funciona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.funciona-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.funciona-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.funciona-head h3 { font-size: 16.5px; margin: 0; }
.funciona-body { display: flex; gap: 14px; align-items: center; }
.funciona-icon { color: var(--ink); }
.funciona-icon svg { width: 34px; height: 34px; }
.funciona-body p { color: var(--muted); font-size: 14px; margin: 0; }

.mb-trust { margin-top: 22px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 28px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.mb-trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; }
.mb-trust-item .mb-trust-text { width: auto; height: auto; display: inline; background: none; border-radius: 0; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.mb-trust-icon { flex: 0 0 auto; display: grid; place-items: center; width: auto; height: auto; background: none; color: var(--gold); }
.mb-trust-icon svg { width: 26px; height: 26px; }
.mb-trust .mb-trust-item:not(:last-child) { border-right: 1px solid var(--line); }
@media (max-width: 760px) {
  .mb-trust { grid-template-columns: 1fr; gap: 14px; }
  .mb-trust .mb-trust-item:not(:last-child) { border-right: none; }
  .mb-trust-item { justify-content: flex-start; padding: 0; }
}

/* ===== Cotizador (mockup 2) ===== */
.quote-hero { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.quote-hero-media { margin: 0; flex: 0 0 clamp(150px, 22vw, 240px); }
.quote-hero-media img { width: 100%; height: auto; display: block; }
.quote-hero h1 { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.035em; font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; color: var(--ink); }
.quote-hero p { color: var(--ink-2); max-width: 56ch; margin: 0; }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .quote-layout { grid-template-columns: 1fr; } }

.quote-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.quote-progress { margin: 0; }
.quote-progress li em { font-style: normal; }
.paso-pill { border: 1.5px solid var(--green); color: var(--green-2); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.quote-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.quote-sec:first-child { padding-top: 0; }
.quote-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quote-sec-head h3 { margin: 0; font-size: 17px; }
.quote-sec-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); }
.quote-sec-icon svg { width: 20px; height: 20px; }
.quote-sec-icon.solid { background: var(--green); color: #fff; }
.quote-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.quote-medica { align-items: start; }

.btn-asesor { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); background: var(--white); }
.btn-asesor:hover { border-color: var(--green); color: var(--green-2); }
.btn-asesor svg { width: 18px; height: 18px; }
.quote-nav { flex-wrap: wrap; }

.quote-aside { position: sticky; top: 96px; }
.aside-card { background: var(--white); border-radius: 26px; box-shadow: var(--shadow); padding: 24px; }
.aside-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.aside-head h3 { margin: 0; font-size: 17px; }
.resumen-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.resumen-list li { display: flex; align-items: center; gap: 12px; }
.resumen-list small { display: block; color: var(--muted); font-size: 12.5px; }
.resumen-list strong { font-size: 14.5px; color: var(--ink); }
.aside-prio { display: flex; gap: 12px; align-items: flex-start; background: var(--green-soft); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.aside-prio strong { font-size: 14px; display: block; margin-bottom: 2px; }
.aside-prio p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.aside-item { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 2px; }
.aside-item strong { font-size: 14px; display: block; }
.aside-item p { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

.tabla-nota.left { text-align: left; margin-left: 0; }

/* Teléfono con indicativo de país */
.tel-group { display: flex; gap: 8px; }
.tel-group select { flex: 0 0 auto; width: auto; padding: 11px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; font-weight: 400; }
.tel-group input { flex: 1; min-width: 0; }
/* Hero del cotizador sin ilustración */
.quote-hero { display: block; }
.aside-prio { padding: 16px; }

/* Campos con error de validación */
.quote-grid label.campo-error input, .quote-grid label.campo-error select, .quote-grid label.campo-error textarea,
input.campo-error, select.campo-error { border-color: #b3261e !important; background: #fdf1f0; }
label.campo-error { color: #8c2f24; }
.quote-type-grid.campo-error .quote-type-card { border-color: #b3261e; }
.quote-check input.campo-error { outline: 2px solid #b3261e; outline-offset: 2px; }

/* ===== Animaciones de scroll (estilo whatsapp.com: fade-up suave + escalonado) =====
   Gateadas con .motion-enabled (la agrega main.js): si el JS falla, el contenido siempre se ve. */
.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}
.motion-enabled .reveal.visible { opacity: 1; transform: translateY(0); }
/* Escalonado dentro de cuadrículas: cada tarjeta entra 90 ms después de la anterior */
.motion-enabled :is(.quien-grid, .cubre-grid, .funciona-grid, .process-grid, .product-grid, .review-platform-grid) > .reveal:nth-child(1) { transition-delay: .05s; }
.motion-enabled :is(.quien-grid, .cubre-grid, .funciona-grid, .process-grid, .product-grid, .review-platform-grid) > .reveal:nth-child(2) { transition-delay: .14s; }
.motion-enabled :is(.quien-grid, .cubre-grid, .funciona-grid, .process-grid, .product-grid, .review-platform-grid) > .reveal:nth-child(3) { transition-delay: .23s; }
.motion-enabled :is(.quien-grid, .cubre-grid, .funciona-grid, .process-grid, .product-grid, .review-platform-grid) > .reveal:nth-child(4) { transition-delay: .32s; }
.motion-enabled .why-list > .reveal:nth-child(2) { transition-delay: .12s; }
.motion-enabled .why-list > .reveal:nth-child(3) { transition-delay: .24s; }
.motion-enabled .why-list > .reveal:nth-child(4) { transition-delay: .36s; }
/* En móvil y con movimiento reducido, el contenido nunca depende del observador */
@media (max-width: 860px) {
  .motion-enabled .reveal { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .reveal { opacity: 1; transform: none; transition: none; }
}

/* Foto en la cuadrícula de caminos del home (completa la fila: tarjeta 03 span 5 + foto span 7) */
/* Fotos de hero de producto */
.prod-hero-media img { object-fit: cover; aspect-ratio: 16 / 10; }

/* Foto en la cuadrícula de caminos del home (completa la fila: tarjeta 03 span 5 + foto span 7) */
.paths-photo { grid-column: span 7; margin: 0; border-radius: 26px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.paths-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .paths-photo { grid-column: span 12; min-height: 220px; } }
/* Fotos de hero de producto */
.prod-hero-media img { object-fit: cover; aspect-ratio: 16 / 10; }

/* El atributo hidden SIEMPRE gana (los labels tienen display:flex que lo anulaba) */
[hidden] { display: none !important; }

/* ===== Responsive héroes (AL FINAL del archivo: ganan a las reglas base) ===== */
@media (max-width: 860px) {
  .prod-hero { grid-template-columns: 1fr; gap: 14px; padding: 22px; border-radius: 26px; }
  .prod-hero-copy { display: contents; }  /* orden móvil: texto → foto → botones */
  .prod-hero-copy p { max-width: none; margin-bottom: 2px; }
  .prod-hero-media { order: 1; margin: 4px 0 2px; }
  .prod-hero-media img { aspect-ratio: 16 / 9; }
  .prod-hero .hero-actions { order: 2; }
}
@media (max-width: 640px) {
  .quote-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .quote-hero-media { flex: 0 0 auto; width: min(220px, 60%); order: 2; margin-top: 2px; }
}
