/* Misma identidad visual del volante: verde azulado + ámbar, Open Sans.
   El logo de Grupo Rita está recoloreado con esta misma paleta. */
:root {
  --brand-950: #0B3B42;
  --brand-900: #0E4A52;   /* verde azulado oscuro (letras del logo) */
  --brand-700: #17707A;
  --brand-200: #BFE0DD;
  --brand-100: #E4F2F1;
  --brand-50: #F3F9F8;
  --accent: #F5B83D;      /* ámbar (curva del logo y botones) */
  --accent-600: #E3A62A;
  --accent-soft: #FCE3A6;
  --ink: #16262B;
  --muted: #42545A;
  --line: #D6E4E3;
  --white: #FFFFFF;

  /* Campos por completar (resaltados en amarillo) */
  --ph-bg: #FFF07A;
  --ph-ink: #3A3000;
  --ph-line: #B58E00;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(14, 74, 82, 0.12);
  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; color: var(--brand-900); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-head { max-width: 700px; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
.section-head p { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  outline: 1px dashed var(--ph-line);
  border-radius: 4px;
  padding: 0 0.25em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--brand-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Aviso de borrador: quitar antes de publicar */
.draft-banner {
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 1rem;
  border-bottom: 1px dashed var(--ph-line);
}

/* ---------- Íconos ---------- */
.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .i { width: 22px; height: 22px; stroke-width: 2.1; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--brand-900); border-color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-100); }
.btn-dark { background: var(--brand-900); color: var(--white); }
.btn-dark:hover { background: var(--brand-700); }
.btn-dark .i { color: var(--accent); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }
.nav { display: none; gap: 1.6rem; }
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--brand-700); }
.header-cta { padding: 0.6rem 1.05rem; font-size: 0.95rem; }
@media (min-width: 1000px) { .nav { display: flex; } }

/* ---------- Portada ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-100) 0%, var(--white) 100%);
  padding: 3.25rem 0 4.25rem;
}
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  letter-spacing: -0.01em;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero .lead strong { color: var(--brand-900); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust .i { width: 19px; height: 19px; color: var(--brand-700); }

/* Tarjeta de conversación (ejemplo ilustrativo) */
.chat-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-900);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex: none;
}
.chat-head strong { display: block; color: var(--brand-900); font-size: 1rem; }
.chat-head small { color: var(--muted); font-size: 0.8rem; }
.bubble {
  width: fit-content;
  max-width: 86%;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.6rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.bubble.karin { background: var(--brand-100); border-bottom-left-radius: 4px; }
.bubble.me {
  margin-left: auto;
  background: var(--brand-900);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.bubble.file { display: flex; align-items: center; gap: 0.5rem; }
.bubble.file .i { width: 20px; height: 20px; color: var(--accent); }
.chat-note { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ---------- Problemas ---------- */
.problems { display: grid; gap: 1rem; }
@media (min-width: 620px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}
.ico {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
}
.problem h3 { margin: 0.1rem 0 0.2rem; font-size: 1.05rem; color: var(--ink); }
.problem p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Servicios ---------- */
.bg-soft { background: var(--brand-50); }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 740px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.ico-lg {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--brand-900);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.ico-lg .i { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Cómo funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; } }
.step { position: relative; }
.step-num {
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (min-width: 880px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 70px;
    right: -1.4rem;
    height: 2px;
    background: var(--brand-200);
  }
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Guía rápida ---------- */
.guide { background: var(--brand-900); color: var(--white); }
.guide .eyebrow { color: var(--accent-soft); }
.guide .section-head h2 { color: var(--white); }
.guide .section-head p { color: #CFE5E2; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 880px) { .guide-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.guide-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.guide-item .n {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.guide-item h3 { margin: 0.35rem 0 0.25rem; font-size: 1.1rem; color: var(--white); }
.guide-item p { margin: 0; font-size: 1rem; color: #D3E8E6; }
.guide-keep {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-700);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

/* ---------- Llamado final ---------- */
.cta-band { background: var(--accent-soft); }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 3.25rem 0;
}
@media (min-width: 880px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 { margin: 0 0 0.3rem; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.cta-band p { margin: 0; }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--brand-950);
  color: #CFE3E1;
  padding: 3.25rem 0 6.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand img { width: 220px; height: auto; }
.footer-id { margin: 1rem 0 0; }
.footer-title {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.legal-note {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: #9FC4C0;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
.wa-float:hover { background: var(--accent-600); }
@media (min-width: 720px) { .wa-float { padding: 0.85rem 1.15rem; font-size: 1.125rem; } }
.wa-float .i { width: 22px; height: 22px; stroke-width: 2.2; }

/* ---------- Páginas legales ---------- */
.legal-page { padding: 3rem 0 4.5rem; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal-page h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page .updated { color: var(--muted); font-size: 0.95rem; }
.notice {
  background: var(--brand-50);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-700);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.notice h2 { margin-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; font-weight: 600; }
