/* Landing de Climind Cotiza y portal Climind SaaS. */

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  max-width: 13ch;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-mid);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
@media (max-width: 575.98px) {
  .hero-actions .btn { width: 100%; }
}
.hero-fineprint { margin-top: 1rem; font-size: .9rem; color: var(--text-soft); }

/* Ilustración del recorrido: consulta por WhatsApp → enlace → presupuesto → consulta en el panel. */
.flow { position: relative; display: grid; gap: .85rem; max-width: 440px; margin-inline: auto; width: 100%; }
.flow-chat { display: grid; gap: .5rem; }
.bubble {
  margin: 0;
  max-width: 85%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(8, 19, 31, .06);
}
.bubble-in { background: var(--white); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; justify-self: start; }
.bubble-out { background: #DDF3E8; color: #0B3B2A; border-bottom-right-radius: 4px; justify-self: end; }
.bubble-out .link { color: var(--blue-deep); text-decoration: underline; overflow-wrap: anywhere; }
.flow-ticket { margin: .25rem 0 0; }
.flow-lead {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #C9D5E6;
  font-size: .9rem;
  box-shadow: var(--shadow-ticket);
}
.flow-lead strong { color: var(--white); display: block; }
.flow-lead .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(15, 169, 127, .2); }
.flow-caption { margin: .25rem 0 0; font-size: .8rem; color: var(--text-soft); text-align: center; max-width: none; }
@media (prefers-reduced-motion: no-preference) {
  .flow > * { animation: rise .6s var(--ease) both; }
  .flow > :nth-child(2) { animation-delay: .15s; }
  .flow > :nth-child(3) { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* Demo en vivo: el mismo motor que los cotizadores reales, con un negocio ficticio. */
.demo-band { background: var(--ink); color: #C9D5E6; }
.demo-band h2 { color: var(--white); }
.section.demo-band .intro { color: #AFC0D6; }
.demo-band .eyebrow { color: var(--blue-soft); }
.demo-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.demo-tabs button {
  border: 1px solid var(--ink-line);
  background: transparent;
  color: #C9D5E6;
  border-radius: 999px;
  padding: .5rem 1rem;
  min-height: 44px;
  font-weight: 600;
}
.demo-tabs button:hover { border-color: #3A5373; color: var(--white); }
.demo-tabs button[aria-selected="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.demo-stage { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) { .demo-stage { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; } }
.demo-form {
  --accent: var(--blue-btn);
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
}
.demo-form h3 { font-size: 1.3rem; margin: 0 0 .25rem; }
.demo-desc { color: var(--text-mid); font-size: .95rem; margin: 0 0 1.25rem; }
.demo-questions { display: grid; gap: 1.2rem; }
@media (min-width: 576px) {
  .demo-questions .qf-options:not(.qf-options-inline) { grid-template-columns: 1fr 1fr; }
}
.demo-side { position: sticky; top: 88px; }
.demo-side .ticket { margin: 0; }
.demo-note { font-size: .85rem; color: #AFC0D6; margin: .75rem 0 0; }
.demo-band .btn-quiet { --bs-btn-bg: transparent; --bs-btn-color: var(--white); --bs-btn-border-color: #3A5373; --bs-btn-hover-bg: var(--ink-3); --bs-btn-hover-color: var(--white); --bs-btn-hover-border-color: #4A6A90; }
.demo-error { color: #FFD2D6; }
.ticket.is-loading { opacity: .6; transition: opacity .2s var(--ease); }

/* Precios */
.pricing-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; } }
.price-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.price-card h3 { font-size: 1.3rem; margin: 0; }
.price { margin: 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price strong { font-family: var(--f-display); font-size: 2rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-soft); font-size: .92rem; }
.price-desc { color: var(--text-mid); font-size: .95rem; margin: 0; }
.price-features { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .45rem; flex: 1; font-size: .95rem; }
.price-features li { position: relative; padding-left: 1.5rem; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ok-deep); font-weight: 700; }
.price-features li.is-off { color: var(--text-soft); }
.price-features li.is-off::before { content: "–"; color: var(--text-soft); }
.pricing-note { margin: 1.25rem 0 0; color: var(--text-soft); font-size: .92rem; }
.pricing-error { color: var(--text-mid); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.compare caption { caption-side: top; padding: 1rem 1rem .25rem; color: var(--text-soft); font-size: .9rem; }
.compare th, .compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.compare tbody th { font-weight: 500; color: var(--text-mid); }
.compare td { font-variant-numeric: tabular-nums; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok-deep); font-weight: 700; }
.compare .no { color: var(--text-soft); }

/* Pie */
.site-footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.site-footer-grid h2 { font-family: var(--f-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin: 0 0 .6rem; }
.site-footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer-grid p { color: var(--text-mid); font-size: .92rem; }
.footer-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--text-soft); }

/* Secciones */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1rem; max-width: 22ch; }
.section .intro { color: var(--text-mid); font-size: 1.08rem; margin-bottom: 2.5rem; }

/* Pasos: es una secuencia real, por eso va numerada. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  margin-bottom: .75rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { color: var(--text-mid); margin: 0; }

/* Rubros: preguntas reales que hace cada negocio. */
.uses { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .uses { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.use {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.use strong { font-family: var(--f-display); color: var(--ink); font-size: 1.05rem; }
.use span { color: var(--text-mid); }
@media (max-width: 575.98px) { .use { grid-template-columns: 1fr; gap: .25rem; } }

.benefits { display: grid; gap: 2rem; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefits h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.benefits p { color: var(--text-mid); margin: 0; }

/* Preguntas frecuentes */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: .85rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-deep);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-mid); padding-bottom: 1.1rem; margin: 0; }

/* Cierre */
.cta-band { background: var(--ink); color: #C9D5E6; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: .75rem; }
.cta-band p { margin-bottom: 1.75rem; }

/* Portal Climind SaaS */
.portal-hero h1 { max-width: 16ch; }
.product-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
@media (min-width: 768px) { .product-row { grid-template-columns: auto minmax(0, 1fr) auto; } }
.product-row img { width: 64px; height: 64px; }
.product-row h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.product-row p { color: var(--text-mid); margin: 0; }
.lines-of-business { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .lines-of-business { grid-template-columns: repeat(3, 1fr); } }
.lines-of-business div { padding-top: 1rem; border-top: 1px solid var(--line); }
.lines-of-business h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.lines-of-business p { color: var(--text-mid); margin: 0; font-size: .95rem; }
.lines-of-business .current { border-top: 2px solid var(--blue); }
.product-points { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--text-mid); display: grid; gap: .25rem; }
.product-actions { display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 767.98px) { .product-actions .btn { width: 100%; } }
