/* ============================================================
   Blenda Inversiones — Stylesheet
   Brand palette: #046bd2 / #045cb4 (blue), #1e293b (slate),
   #F0F5FA (light), white. Accent green for triple impacto.
   ============================================================ */

:root {
  /* --- Paleta de marca Blenda Inversiones --- */
  --navy: #0b1f33;        /* navy principal del logo */
  --navy-deep: #04263f;   /* navy más profundo */
  --blue: #1b3a5b;        /* acento primario (derivado del navy) */
  --blue-dark: #0b1f33;   /* hover */
  --blue-bright: #2e5c8a; /* links / detalles */
  --slate: #0b1f33;       /* titulares en navy de marca */
  --slate-2: #3a4a5c;     /* cuerpo de texto */
  --light: #eef2f7;       /* fondo claro */
  --light-blue: #e6edf5;
  --white: #ffffff;
  --border: #cdd6e0;
  --green: #16a34a;
  --green-light: #dcfce7;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px rgba(4, 107, 210, .12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-2);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--slate); font-weight: 700; line-height: 1.15;
  font-family: var(--font-head); letter-spacing: -.01em;
}
/* Titulares principales con el peso geométrico del logo */
.hero h1, .section-head h2 { font-weight: 800; }

a { color: var(--blue); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--green { color: var(--green); background: var(--green-light); }

.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
/* Botón claro para fondos oscuros (tarjeta "Para Empresas") */
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb955; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 0px solid #eef2f7;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 95px; width: auto; object-fit: contain; padding:10px; }

.site-nav ul { display: flex; align-items: center; gap: 8px; list-style: none; }
.site-nav a {
  color: var(--slate-2); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--light); color: var(--blue); }
.site-nav .nav-cta { background: var(--blue); color: #fff; }
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--slate); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(4,107,210,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--light) 100%);
  padding: 72px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; max-width: 40ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.hero-badges li {
  font-size: .82rem; font-weight: 600; color: var(--slate);
  background: #fff; border: 1px solid #e2e8f0; padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-photo img {
  border-radius: 20px; box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover; aspect-ratio: 1/1;
}

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--slate-2); }
.section-head--light h2, .section-head--light p { color: #fff; }
.section-head--light p { opacity: .82; }

/* ---------- Metrics ---------- */
.metrics { padding: 84px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.metric-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.metric-num { font-size: 2.8rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.metric-num .plus { color: var(--blue); }
.metric-label { font-size: .98rem; color: var(--slate-2); }

/* ---------- Trust ---------- */
.trust { padding: 84px 0; background: var(--light); }
.trust-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.trust-photo img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.trust-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.trust-copy > p { margin-bottom: 24px; }
.trust-role {
  font-size: 1.12rem; color: var(--navy); margin-bottom: 16px;
  padding-left: 16px; border-left: 4px solid var(--blue-bright);
}
.trust-role strong { color: var(--navy); }
.trust-list { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
.trust-list li {
  position: relative; padding-left: 34px;
}
.trust-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.trust-list strong { display: block; color: var(--slate); }
.trust-list span { color: var(--slate-2); font-size: .95rem; }
.trust-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-logos img { width: 68px; height: 68px; object-fit: contain; filter: grayscale(.2); transition: filter .2s; }
.trust-logos img:hover { filter: none; }
/* Balanz es un logotipo horizontal (texto): más ancho, misma altura visual */
.trust-logos img.trust-logo-balanz { width: auto; height: 34px; }

/* ---------- Services ---------- */
.services { padding: 84px 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid #e6edf5; border-radius: var(--radius);
  padding: 40px 34px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.service-card--alt { background: var(--slate); border-color: var(--slate); }
.service-card--alt h3 { color: #fff; }
.service-tag {
  align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--blue); background: var(--light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.service-card--alt .service-tag { color: #fff; background: rgba(255,255,255,.12); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 20px; }
.service-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.service-card li { position: relative; padding-left: 26px; color: var(--slate-2); }
.service-card li::before {
  content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}

/* Tarjeta oscura "Para Empresas": todo el texto y las flechas en blanco */
.service-card.service-card--alt li,
.service-card.service-card--alt li strong { color: #fff; }
.service-card.service-card--alt li::before { color: #fff; }

/* ---------- Sustainable ---------- */
.sustainable { padding: 84px 0; background: linear-gradient(180deg, #fff, #f2fbf4); }
.sustainable-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.sustainable-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.sustainable-copy p { margin-bottom: 18px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 8px; }
.pill-list li {
  font-size: .85rem; font-weight: 600; color: var(--green);
  background: var(--green-light); padding: 8px 16px; border-radius: 999px;
}
.sustainable-visual { display: flex; justify-content: center; }
.impact-orb {
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34d399, var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: .05em;
  box-shadow: 0 24px 60px rgba(22, 163, 74, .35);
  position: relative;
}
.impact-orb::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(22,163,74,.4);
}

/* ---------- Vision ---------- */
.vision { padding: 84px 0; background: var(--slate); }
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vision-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px 28px;
}
.vision-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.vision-card h3::before { content: "「 "; color: var(--blue); }
.vision-card p { color: #cbd5e1; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { padding: 84px 0; background: var(--light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-copy > p { margin-bottom: 26px; }
.contact-details { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.contact-details li { display: flex; flex-direction: column; }
.contact-details strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.contact-details a, .contact-details span { font-size: 1.1rem; color: var(--slate); }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid #e6edf5;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--slate); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .98rem; color: var(--slate);
  background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,107,210,.15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: .92rem; text-align: center; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { width: 150px; margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; font-size: .95rem; }
.footer-legal p { font-size: .9rem; margin-bottom: 6px; color: #cbd5e1; }
.footer-legal .disclaimer { color: #64748b; font-size: .82rem; margin-top: 14px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span, .footer-bottom a { font-size: .85rem; color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #eef2f7;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .site-nav a { padding: 12px 14px; }

  .hero-inner,
  .trust-inner,
  .sustainable-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .trust-photo { max-width: 380px; margin: 0 auto; }

  .metrics-grid,
  .services-grid,
  .vision-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 60px; }
  .metrics, .trust, .services, .sustainable, .vision, .contact { padding: 60px 0; }
  .contact-form { padding: 26px; }
  .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
