/* ══════════════════════════════════════════
   FLUVAI · Landing — estilos
   ══════════════════════════════════════════ */

/* ---------- Tokens ---------- */
:root {
  --tinta:        #0F172A;
  --verde:        #10B981;
  --verde-dark:   #059669;
  --verde-tenue:  #ECFDF5;
  --bg:           #F8FAFC;
  --bg-2:         #F1F5F9;
  --white:        #FFFFFF;
  --body:         #475569;
  --border:       #E2E8F0;

  --font-title: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:  "Hanken Grotesk", "Inter", system-ui, sans-serif;

  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --maxw: 1280px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px; /* base de cuerpo ~18px; los rem escalan proporcionalmente */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--tinta);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1200px) {
  .container { padding: 0 56px; }
}

.section {
  padding: 64px 0;
  background: var(--white);
}

.section--alt { background: var(--bg); }

.section--dark {
  background: var(--tinta);
  color: #CBD5E1;
  position: relative;
  overflow: hidden;
}
.section--dark h2 { color: var(--white); }
/* Marca de agua: isotipo blanco sutil de fondo */
.section--dark::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 480px;
  height: 480px;
  background: center / contain no-repeat url("logo/fluvai-isotipo-blanco.svg");
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.section--dark .container { position: relative; z-index: 1; }

.section__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__head h2 { margin-bottom: 14px; }

h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.lead {
  font-size: 1.08rem;
  margin-top: 16px;
  max-width: 68ch; /* legibilidad: ~65-70 caracteres por línea */
}
.lead--center { margin-left: auto; margin-right: auto; }

.text-green { color: var(--verde); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-dark);
  background: var(--verde-tenue);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
/* Isotipo como firma de marca recurrente en cada eyebrow */
.eyebrow__mark {
  height: 17px;
  width: auto;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--verde);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--verde-dark);
  transform: translateY(-1px);
}

.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

.btn--outline {
  background: transparent;
  color: var(--tinta);
  border-color: var(--tinta);
}
.btn--outline:hover {
  background: var(--tinta);
  color: var(--white);
}

/* WhatsApp icon (CSS, sin assets externos) */
.icon-wa {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: center / contain no-repeat var(--wa-mask);
  mask: center / contain no-repeat var(--wa-mask);
  --wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm0 18.15h-.01a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.11.82.83-3.04-.2-.31a8.18 8.18 0 0 1-1.26-4.38c0-4.54 3.7-8.23 8.24-8.23a8.2 8.2 0 0 1 5.82 2.42 8.18 8.18 0 0 1 2.41 5.82c0 4.54-3.69 8.23-8.24 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.16.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.01-.38.11-.51.11-.11.25-.29.37-.43.13-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43-.14-.01-.31-.01-.48-.01a.92.92 0 0 0-.66.31c-.23.25-.87.85-.87 2.07s.89 2.4 1.01 2.56c.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.15-1.18-.06-.11-.22-.17-.47-.29z'/%3E%3C/svg%3E");
}

.microcopy {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #64748B;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}
.header__logo img { height: 90px; width: auto; }

.header__cta { padding: 10px 18px; font-size: 0.9rem; }
.header__cta .icon-wa { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  position: relative;
  overflow: hidden;
}
/* Marca de agua: isotipo grande muy sutil detrás del contenido */
.hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: center / contain no-repeat url("logo/fluvai-isotipo-color.svg");
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 540px;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.split__copy h2 { margin-bottom: 6px; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
  color: var(--tinta);
}
.checklist--dark li { color: #E2E8F0; }
/* checkmark drawn as a green disc with white tick */
.checklist li::after {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--white);
  background: var(--verde);
  border-radius: 50%;
}

/* ══════════ Chat mockups ══════════ */
.phone {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin: 0 auto;
}

.chat {
  background: #EFE7DE;
  border-radius: var(--radius);
  overflow: hidden;
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tinta);
  padding: 12px 14px;
}
.chat__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.chat__meta { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.chat__name { font-family: var(--font-title); font-weight: 500; color: var(--white); font-size: 0.95rem; }
.chat__status { color: #34D399; font-size: 0.78rem; }

.chat__body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat__daystamp {
  align-self: center;
  background: rgba(255, 255, 255, 0.75);
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Bubbles */
.bubble {
  position: relative;
  max-width: 82%;
  padding: 9px 13px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--tinta);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08);
}
.bubble--in {
  align-self: flex-start;
  background: var(--white);
  border-top-left-radius: 4px;
}
.bubble--out {
  align-self: flex-end;
  background: #D9FDD3;
  border-top-right-radius: 4px;
}
.bubble__time {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 0.65rem;
  color: #64748B;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 500;
}
.file-chip__icon { font-size: 1.1rem; }

.source-chip {
  align-self: flex-start;
  background: var(--verde-tenue);
  color: var(--verde-dark);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.chat-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.chat-action {
  display: block;
  text-align: center;
  background: var(--white);
  color: var(--verde-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* bare chat (no phone frame) */
.chat--bare,
.chat--emergency {
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chat--bare { padding-top: 4px; }
.chat--bare .chat__body { padding-top: 16px; }

/* ---------- Policies card ---------- */
.card-policies {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
}
.card-policies__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-policies__title { font-family: var(--font-title); font-weight: 700; color: var(--tinta); font-size: 1.1rem; }
.card-policies__count { font-size: 0.82rem; color: #64748B; }

.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.policy {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.policy__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem;
}
.policy__icon--pdf { background: var(--verde-tenue); color: var(--verde-dark); }
.policy__icon--img { background: #E0F2FE; font-size: 1.3rem; }
.policy__body { display: flex; flex-direction: column; }
.policy__name { font-weight: 600; color: var(--tinta); }
.policy__sub { font-size: 0.82rem; color: #64748B; }

.policy-add {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 13px;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  color: var(--verde-dark);
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s;
}
.policy-add:hover { border-color: var(--verde); background: var(--verde-tenue); }

/* ---------- Cards grids ---------- */
.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.section--alt .card { background: var(--white); }

.card h3 { margin: 14px 0 8px; }
.card p { font-size: 0.97rem; }

.badge {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--verde-tenue);
  color: var(--verde-dark);
}
.badge--alt { background: var(--bg-2); color: var(--tinta); }

/* feature cards */
.card--feature { text-align: left; }
.feature-emoji {
  font-size: 1.8rem;
  display: inline-block;
  line-height: 1;
}
.reason { padding: 8px 4px; }
.reason h3 { margin: 12px 0 6px; }
.reason p { font-size: 0.95rem; }

/* ---------- Manifiesto ---------- */
.manifesto {
  background: var(--verde-tenue);
  padding: 80px 0;
  text-align: center;
}
.manifesto__inner {
  max-width: 840px;
  margin: 0 auto;
}
.manifesto__title {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: 18px;
}
.manifesto__text {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 68ch;
  margin: 0 auto;
}

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--bg-2);
  padding: 26px 0;
}
.trust-band p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.92rem;
  color: #64748B;
}
.trust-band__icon { margin-right: 6px; }

/* ---------- Agents ---------- */
.agents {
  text-align: center;
  max-width: 680px;
}
.agents h2 { margin-bottom: 6px; }
.agents .btn { margin-top: 26px; }

/* ---------- CTA final ---------- */
.cta-final__inner {
  text-align: center;
  max-width: 640px;
}
.cta-final .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--tinta);
  color: #94A3B8;
  padding-top: 56px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__logo { height: 60px; width: auto; margin-bottom: 16px; }
.footer__tagline { color: #CBD5E1; max-width: 280px; }
.footer__col h4 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { transition: color 0.15s; }
.footer__col a:hover { color: var(--verde); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (min-width: 720px) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 920px) {
  .section { padding: 88px 0; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__copy { order: 2; }
  .split--reverse .split__visual { order: 1; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  h2 { font-size: 2.3rem; }
}
