/* CG Advisory — sistema de diseño compartido */

:root{
  --navy:#10263F;
  --navy-dark:#0B1C30;
  --teal:#14B8A6;
  --teal-dark:#0F766E;
  --bg:#EEF1F4;
  --bg-hover:#E3E8ED;
  --white:#fff;
  --text-dark:#10263F;
  --text-muted:#5B6B7D;
  --text-muted-2:#3C4C5E;
  --text-onDark:#C3CEDB;
  --text-onDark-muted:#8FA3B8;
  --radius-lg:32px;
  --radius-md:28px;
  --radius-sm:24px;
  --maxw:1360px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Montserrat', Helvetica, Arial, sans-serif;
  background:var(--bg);
  color:var(--text-dark);
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--teal-dark); text-decoration:none; }
a:hover{ color:var(--teal); }
h1,h2,h3,h4,p{ margin:0; }
input,textarea,select{ font-family:inherit; }
img{ max-width:100%; }
:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; }

.wrap{ width:100%; background:var(--bg); padding:14px 14px 0; }
.container{ max-width:var(--maxw); margin:0 auto; display:grid; gap:14px; }

/* ---------- Header / nav ---------- */
.topbar{ position:sticky; top:14px; z-index:50; max-width:var(--maxw); margin:0 auto 14px; }
.topbar-inner{
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(16,38,63,0.08);
  border-radius:999px;
  padding:10px 10px 10px 26px;
  display:flex; align-items:center; gap:24px;
  box-shadow:0 8px 30px rgba(16,38,63,0.06);
  position:relative;
}
.logo{ height:24px; width:auto; display:block; flex:none; }
.navlinks{ display:flex; gap:2px; margin-left:auto; align-items:center; }
.navlink{
  font-size:14px; font-weight:600; padding:10px 14px; border-radius:999px;
  white-space:nowrap; cursor:pointer; color:var(--text-dark); transition:background .15s;
}
.navlink:hover{ background:var(--bg); color:var(--text-dark); }
.navlink.active{ background:var(--bg); }
.btn-talk{
  display:flex; align-items:center; gap:10px; background:var(--navy); color:#fff;
  font-size:14px; font-weight:700; padding:6px 6px 6px 20px; border-radius:999px;
  white-space:nowrap; flex:none; cursor:pointer; transition:background .15s; border:none;
}
.btn-talk:hover{ background:var(--navy-dark); color:#fff; }
.btn-talk .arrow{ width:34px; height:34px; border-radius:50%; background:var(--teal); color:#06201C; display:flex; align-items:center; justify-content:center; font-size:15px; }

.burger{ display:none; background:none; border:none; cursor:pointer; padding:8px; flex:none; }
.burger span{ display:block; width:22px; height:2px; background:var(--navy); margin:5px 0; border-radius:2px; }
.mobile-menu{ display:none; }

@media (max-width: 780px){
  .navlinks{ display:none; }
  .burger{ display:block; }
  .mobile-menu{
    position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff;
    border-radius:24px; border:1px solid rgba(16,38,63,0.08); box-shadow:0 8px 30px rgba(16,38,63,0.1);
    padding:10px; display:none; flex-direction:column; gap:2px;
  }
  .mobile-menu.open{ display:flex; }
  .mobile-menu a{ padding:12px 16px; border-radius:14px; font-size:15px; font-weight:600; color:var(--text-dark); }
  .mobile-menu a:hover{ background:var(--bg); }
}

/* ---------- Sections / cards ---------- */
.section{ border-radius:var(--radius-lg); }
.section-dark{ background:var(--navy); color:#fff; }
.section-white{ background:#fff; }
.section-teal{ background:var(--teal); color:#06201C; }
.pad-xl{ padding:clamp(40px,6vw,80px); }
.pad-lg{ padding:clamp(36px,5vw,72px); }

.eyebrow{ font-size:13px; font-weight:700; color:var(--teal-dark); margin-bottom:14px; }
.eyebrow-onDark{ font-size:13px; font-weight:700; color:var(--teal); margin-bottom:20px; }

.bento{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:14px; }
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:14px; }
.grid-4{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:14px; }

.card{ background:var(--bg); border-radius:24px; padding:30px; display:flex; flex-direction:column; justify-content:space-between; gap:28px; min-height:220px; }
.card h3{ font-size:22px; font-weight:800; letter-spacing:-0.02em; margin-bottom:10px; }
.card p{ font-size:15px; line-height:1.6; font-weight:500; color:var(--text-muted); }
.card-dark{ background:var(--navy); color:#fff; }
.card-dark p{ color:var(--text-onDark); }
.card-teal{ background:var(--teal); color:#06201C; }
.card-teal p{ color:#06201C; font-weight:600; }

.pill-btn{
  display:inline-flex; align-items:center; gap:12px; font-size:15px; font-weight:700;
  padding:8px 8px 8px 24px; border-radius:999px; cursor:pointer; border:none; transition:background .15s, color .15s;
}
.pill-btn .arrow{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:none; }
.pill-teal{ background:var(--teal); color:#06201C; }
.pill-teal:hover{ background:#fff; color:#06201C; }
.pill-teal .arrow{ background:#06201C; color:var(--teal); }
.pill-dark{ background:var(--navy); color:#fff; }
.pill-dark:hover{ background:var(--navy-dark); color:#fff; }
.pill-dark .arrow{ background:var(--teal); color:#06201C; }
.pill-white{ background:#fff; color:var(--navy); }
.pill-white .arrow{ background:var(--teal); color:#06201C; }
.pill-onTeal{ background:#06201C; color:#fff; }
.pill-onTeal:hover{ background:var(--navy); }
.pill-onTeal .arrow{ background:#fff; color:#06201C; }

.outline-btn{
  display:inline-flex; align-items:center; font-size:15px; font-weight:700; padding:14px 24px;
  border-radius:999px; border:1px solid rgba(255,255,255,0.25); cursor:pointer; color:#fff; transition:border-color .15s, color .15s;
}
.outline-btn:hover{ border-color:var(--teal); color:var(--teal); }
.outline-btn-dark{ border:1px solid rgba(16,38,63,0.18); color:var(--text-dark); }
.outline-btn-dark:hover{ background:var(--navy); color:#fff; border-color:var(--navy); }

/* ---------- Hero ---------- */
.hero{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr)); min-height:640px; overflow:hidden; }
.hero-copy{ padding:clamp(40px,6vw,80px); display:flex; flex-direction:column; justify-content:space-between; gap:56px; }
.badge{ display:inline-flex; align-self:flex-start; align-items:center; gap:10px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); border-radius:999px; padding:8px 16px 8px 10px; }
.badge .dot{ width:8px; height:8px; border-radius:50%; background:var(--teal); }
.badge span.label{ font-size:13px; font-weight:600; color:var(--text-onDark); }
.h1{ font-size:clamp(44px,6.4vw,92px); line-height:0.96; font-weight:800; letter-spacing:-0.045em; margin-bottom:30px; }
.h1 .accent{ color:var(--teal); }
.hero-sub{ font-size:clamp(17px,1.4vw,20px); line-height:1.55; font-weight:500; color:var(--text-onDark); max-width:520px; margin-bottom:38px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-media{ position:relative; min-height:420px; padding:14px; }
.hero-media-inner{ position:absolute; inset:14px; border-radius:22px; overflow:hidden; }
.hero-tag{ position:absolute; left:34px; right:34px; bottom:34px; max-width:360px; background:rgba(255,255,255,0.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); color:var(--navy); border-radius:18px; padding:18px 20px; display:flex; gap:16px; align-items:center; cursor:pointer; }
.hero-tag-logo{ width:64px; height:64px; border-radius:12px; overflow:hidden; flex:none; background:var(--bg); position:relative; }
.hero-tag-meta{ display:grid; gap:3px; min-width:0; }
.hero-tag-meta .k{ font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--teal-dark); }
.hero-tag-meta .v{ font-size:16px; font-weight:800; letter-spacing:-0.01em; }

/* ---------- Foto placeholders (sustituir por <img> reales) ---------- */
.photo-slot{
  width:100%; height:100%; min-height:220px; border-radius:inherit;
  background:linear-gradient(135deg, #DDE4EC 0%, #EEF1F4 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; color:#8FA3B8; text-align:center; padding:20px;
}
.photo-slot svg{ width:34px; height:34px; opacity:.7; }
.photo-slot span{ font-size:12px; font-weight:700; letter-spacing:0.02em; max-width:200px; }
.photo-slot.circle{ border-radius:50%; }
.photo-slot.on-dark{ background:linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%); color:rgba(255,255,255,0.55); }

/* ---------- Typography blocks ---------- */
.h2{ font-size:clamp(32px,4vw,56px); line-height:1.02; font-weight:800; letter-spacing:-0.04em; }
.section-head{ display:flex; flex-wrap:wrap; gap:24px; align-items:flex-end; justify-content:space-between; margin-bottom:44px; }
.lede{ font-size:18px; line-height:1.6; font-weight:500; color:var(--text-muted-2); }
.lede-onDark{ font-size:19px; line-height:1.6; font-weight:500; color:var(--text-onDark); }

/* ---------- Sectores / fases / valores ---------- */
.sector-card{ background:#fff; border-radius:28px; padding:14px; display:grid; gap:0; }
.sector-photo{ position:relative; aspect-ratio:4/3; border-radius:18px; overflow:hidden; }
.sector-body{ padding:24px 16px 18px; display:grid; gap:10px; }

.fase-card{ border:1px solid rgba(16,38,63,0.12); border-radius:22px; padding:28px 26px; display:grid; gap:14px; align-content:start; }
.fase-num{ width:44px; height:44px; border-radius:50%; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; color:var(--teal-dark); }
.fase-card h3{ font-size:20px; font-weight:800; letter-spacing:-0.015em; }
.fase-card p{ font-size:15px; line-height:1.6; font-weight:500; color:var(--text-muted); }

.valor-card{ background:#fff; border-radius:28px; padding:36px 32px; display:grid; gap:14px; align-content:start; min-height:240px; }
.valor-dot{ width:10px; height:10px; border-radius:50%; background:var(--teal); }
.valor-card h3{ font-size:22px; font-weight:800; letter-spacing:-0.02em; }
.valor-card p{ font-size:15px; line-height:1.6; font-weight:500; color:var(--text-muted); }

.insight-card{ background:var(--bg); border-radius:22px; padding:30px 28px; display:flex; flex-direction:column; justify-content:space-between; gap:40px; min-height:240px; cursor:pointer; transition:background .15s; }
.insight-card:hover{ background:var(--bg-hover); }
.insight-tag{ align-self:flex-start; font-size:12px; font-weight:700; background:#fff; padding:7px 13px; border-radius:999px; color:var(--teal-dark); }
.insight-card h3{ font-size:20px; font-weight:800; letter-spacing:-0.015em; line-height:1.28; }
.insight-read{ font-size:14px; font-weight:700; color:var(--teal-dark); }

/* ---------- Servicios (página) ---------- */
.servicio-row{ background:#fff; border-radius:28px; padding:clamp(32px,4.5vw,60px); display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:40px; }
.servicio-num{ width:48px; height:48px; border-radius:50%; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; color:var(--teal-dark); }
.servicio-row h2{ font-size:clamp(28px,3vw,42px); font-weight:800; letter-spacing:-0.035em; line-height:1.05; }
.servicio-row p{ font-size:18px; line-height:1.65; font-weight:500; color:var(--text-muted-2); align-self:center; }

.plan-card{ background:#fff; border-radius:28px; padding:44px 40px; display:grid; gap:14px; align-content:start; }
.plan-card.plan-dark{ background:var(--navy); color:#fff; }
.plan-tag{ align-self:start; justify-self:start; font-size:12px; font-weight:700; background:var(--bg); padding:7px 13px; border-radius:999px; color:var(--teal-dark); }
.plan-tag.on-dark{ background:var(--teal); color:#06201C; }
.plan-card h3{ font-size:28px; font-weight:800; letter-spacing:-0.03em; }
.plan-card p{ font-size:16px; line-height:1.6; font-weight:500; color:var(--text-muted); }
.plan-card.plan-dark p{ color:var(--text-onDark); }

/* ---------- Contacto ---------- */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:64px; }
.contact-link{ display:flex; justify-content:space-between; align-items:center; background:var(--bg); border-radius:18px; padding:20px 24px; color:var(--text-dark); }
.contact-link .k{ font-size:12px; font-weight:700; color:var(--text-muted); }
.contact-link .v{ font-size:17px; font-weight:700; }
.form-box{ background:var(--bg); border-radius:24px; padding:36px 32px; }
.form-box input, .form-box textarea, .form-box select{
  width:100%; padding:17px 20px; border:1px solid transparent; border-radius:14px;
  font-size:15px; font-weight:500; background:#fff; margin-bottom:14px;
}
.form-box textarea{ resize:vertical; }
.form-submit{ display:flex; justify-content:space-between; align-items:center; background:var(--navy); color:#fff; font-size:15px; font-weight:700; padding:8px 8px 8px 24px; border-radius:999px; cursor:pointer; margin-top:6px; border:none; width:100%; }
.form-submit:hover{ background:var(--navy-dark); }
.form-submit .arrow{ width:42px; height:42px; border-radius:50%; background:var(--teal); color:#06201C; display:flex; align-items:center; justify-content:center; }
.form-note{ font-size:12px; line-height:1.5; font-weight:500; color:var(--text-muted); margin-top:14px; }
.form-sent{ padding:48px 0; text-align:center; }
.form-sent .title{ font-size:26px; font-weight:800; letter-spacing:-0.02em; margin-bottom:12px; }
.form-sent p{ font-size:15px; font-weight:500; color:var(--text-muted); line-height:1.6; }
.hp-field{ position:absolute; left:-9999px; }

/* ---------- CTA banda ---------- */
.cta-band{ background:var(--teal); color:#06201C; border-radius:32px; padding:clamp(40px,6vw,88px); display:flex; flex-wrap:wrap; gap:32px; align-items:flex-end; justify-content:space-between; }
.cta-band h2{ font-size:clamp(34px,4.6vw,64px); font-weight:800; letter-spacing:-0.045em; line-height:0.98; max-width:760px; }

/* ---------- Footer ---------- */
.site-footer{ max-width:var(--maxw); margin:14px auto 0; background:var(--navy-dark); color:#fff; border-radius:32px 32px 0 0; padding:clamp(40px,5vw,72px) clamp(32px,5vw,72px) 32px; }
.footer-top{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:44px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.12); }
.footer-top p{ font-size:14px; line-height:1.6; font-weight:500; color:var(--text-onDark-muted); max-width:260px; }
.footer-col-title{ font-size:12px; font-weight:700; color:var(--teal); margin-bottom:4px; }
.footer-links{ display:grid; gap:12px; align-content:start; }
.footer-links a{ font-size:14px; font-weight:500; color:var(--text-onDark); }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; padding-top:26px; }
.footer-bottom .copy{ font-size:12px; font-weight:500; color:var(--text-onDark-muted); }
.footer-legal{ display:flex; flex-wrap:wrap; gap:22px; }
.footer-legal span, .footer-legal a{ font-size:12px; font-weight:500; color:var(--text-onDark-muted); }

/* ---------- Utilidades ---------- */
.center-end{ display:flex; flex-direction:column; justify-content:flex-end; gap:24px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
