/* RendEmp Consultoría — estilos globales */
:root{
  --brand: #16324F;
  --brand-dark: #0F2438;
  --brand-light: #E7ECF1;
  --ink: #0B1C2C;
  --ink-soft: #3D4A56;
  --muted: #626b71;
  --bg: #ffffff;
  --bg-soft: #F7F7F5;
  --border: #E3E7EA;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 28, 44, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 28, 44, 0.14);
  --maxw: 1160px;
  --ease: cubic-bezier(.22,1,.36,1);
  --accent: #B08D3E;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  color: var(--ink);
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ padding-left: 1.2em; color: var(--ink-soft); }
li{ margin-bottom: .4em; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.bg-soft{ background: var(--bg-soft); }
.bg-dark{ background: var(--ink); color: #fff; }
.bg-dark p, .bg-dark h2, .bg-dark h3{ color:#fff; }
.eyebrow{
  display:inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; transition: transform .3s var(--ease); }
.btn:hover svg{ transform: translateX(2px); }
.btn:active{ transform: scale(.96); }
.btn-primary{ background: var(--brand); color:#fff; box-shadow: 0 6px 18px rgba(22,50,79,.28); }
.btn-primary:hover{ background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,50,79,.36); }
.btn-whatsapp{ background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(176,141,62,.32); }
.btn-whatsapp:hover{ background: #8F702E; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(176,141,62,.4); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color:#fff; transform: translateY(-2px); }
.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,.6); color:#fff; }
.btn-outline-light:hover{ background: #fff; color: var(--ink); border-color:#fff; transform: translateY(-2px); }
.btn-block{ width:100%; }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; }
.btn-row.center{ justify-content:center; }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(11,28,44,.05);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
  max-width: var(--maxw); margin:0 auto;
  transition: padding .3s var(--ease);
}
.site-header.scrolled .header-inner{ padding: 10px 24px; }
.logo img{ height: 34px; width:auto; }
.nav-links{ display:flex; gap: 32px; list-style:none; margin:0; padding:0; }
.nav-links a{ font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active{ color: var(--brand-dark); }
.header-cta{ display:flex; gap:12px; align-items:center; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 68px 0 0 0; background:#fff;
    flex-direction: column; padding: 28px 24px; gap: 8px;
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y:auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ display:block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 17px; }
  .header-cta .btn-outline{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* Hero */
.hero{
  position:relative; overflow:hidden;
  padding: 96px 0 80px;
  background: var(--bg);
}
.hero.has-photo{
  background:
    linear-gradient(180deg, rgba(11,28,44,.88) 0%, rgba(11,28,44,.93) 55%, var(--bg) 100%),
    url('../assets/images/hero-cdmx.jpg');
  background-size: cover;
  background-position: center 65%;
}
.hero.has-photo h1, .hero.has-photo .hero-lead, .hero.has-photo .trust-item{ color:#fff; }
.hero.has-photo .hero-lead{ color:#cdd6de; }
.hero.has-photo .trust-item{ color:#dfe5ea; }
.hero.has-photo .eyebrow{ background: rgba(176,141,62,.2); color:#e0c67c; }
.hero-blobs{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-blobs span{
  position:absolute; border-radius:50%; filter: blur(70px);
  animation: float 16s ease-in-out infinite;
}
.hero-blobs span:nth-child(1){ width:480px; height:480px; top:-180px; right:-120px; background: radial-gradient(circle, rgba(22,50,79,.35), transparent 70%); }
.hero-blobs span:nth-child(2){ width:360px; height:360px; bottom:-160px; left:-100px; background: radial-gradient(circle, rgba(176,141,62,.22), transparent 70%); animation-delay: -6s; animation-duration: 20s; }
.hero-blobs span:nth-child(3){ width:260px; height:260px; top:20%; left:38%; background: radial-gradient(circle, rgba(22,50,79,.18), transparent 70%); animation-delay: -3s; animation-duration: 13s; }
@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(24px,-26px) scale(1.06); }
}
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items:center; }
.hero h1{ font-size: clamp(32px, 4vw, 50px); }
.hero-lead{ font-size: 18px; max-width: 46ch; }
.trust-row{ display:flex; flex-wrap:wrap; gap: 22px; margin-top: 28px; align-items:center; }
.trust-item{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; color: var(--ink-soft); }
.stars{ color:#f5a623; letter-spacing:2px; }
.hero-card{
  background:rgba(255,255,255,.75); backdrop-filter: blur(16px) saturate(160%); border:1px solid rgba(255,255,255,.6); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-card:hover{ transform: translateY(-4px); box-shadow: 0 28px 60px rgba(11,28,44,.16); }
.hero-card h3{ font-size:18px; }
.hero-card ul{ list-style:none; padding:0; margin: 0 0 20px; }
.hero-card li{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color: var(--ink-soft); }
.hero-card li svg{ width:18px; height:18px; color: var(--brand); flex-shrink:0; margin-top:2px; }

/* Dual-path switcher in hero */
.path-switch{ display:flex; gap:6px; background: var(--bg-soft); border:1px solid var(--border); border-radius:12px; padding:4px; margin-bottom:20px; }
.path-btn{
  flex:1; border:none; background:transparent; padding:10px 12px; border-radius:9px;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:13.5px; color: var(--muted); cursor:pointer;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.path-btn.active{ background:#fff; color: var(--ink); box-shadow: 0 4px 14px rgba(11,28,44,.1); }
.path-panel{ display:none; }
.path-panel.active{ display:block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:none; } }

/* Cards / grids */
.grid{ display:grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  section{ padding: 56px 0; }
}

.card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); height:100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(22,50,79,.25); }
.card .icon{
  width:48px; height:48px; border-radius:12px; background: var(--brand-light);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  transition: transform .4s var(--ease);
}
.card:hover .icon{ transform: scale(1.1) rotate(-4deg); }
.card .icon svg{ width:24px; height:24px; color: var(--brand-dark); }
.card h3{ font-size:19px; }
.card p{ font-size: 14.5px; margin-bottom: .5em; }

/* Tarjeta con foto arriba + ícono insignia flotante */
.card.card-photo{ padding:0; overflow:hidden; }
.card-photo .card-photo-frame{
  position:relative; overflow:hidden; aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-photo .card-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s var(--ease); }
.card-photo:hover .card-photo-frame img{ transform: scale(1.06); }
.card-photo .card-photo-frame::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(160deg, rgba(11,28,44,.4), transparent 55%, rgba(176,141,62,.14));
  mix-blend-mode: multiply;
}
.card-photo .card-body{ padding: 0 24px 26px; }
.card-photo .icon{
  margin-top:-30px; position:relative; z-index:2;
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(11,28,44,.2);
}

/* Scroll-reveal */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal-group .reveal:nth-child(1){ transition-delay: .05s; }
.reveal-group .reveal:nth-child(2){ transition-delay: .12s; }
.reveal-group .reveal:nth-child(3){ transition-delay: .19s; }
.reveal-group .reveal:nth-child(4){ transition-delay: .26s; }
.reveal-group .reveal:nth-child(5){ transition-delay: .33s; }
.reveal-group .reveal:nth-child(6){ transition-delay: .4s; }

.numbered{ display:flex; gap:18px; }
.numbered .num{
  flex-shrink:0; width:40px; height:40px; border-radius:50%;
  background: var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-family:'Poppins',sans-serif;
}
.numbered.brand .num{ background: var(--brand); }

/* Broker banner (compact variant, still available if needed) */
.banner{
  border-radius: 20px; padding: 48px; background: linear-gradient(135deg, var(--ink) 0%, #16273a 100%);
  color:#fff; display:grid; grid-template-columns: 1.3fr .7fr; gap:32px; align-items:center;
}
.banner h2{ color:#fff; }
.banner p{ color: #d7ddd9; }
@media (max-width: 900px){ .banner{ grid-template-columns: 1fr; } }

/* Broker Financiero — full pillar section */
.broker-pillar{
  position:relative; overflow:hidden;
  background: radial-gradient(900px 420px at 15% 0%, rgba(22,50,79,.35), transparent 60%),
              radial-gradient(700px 380px at 90% 100%, rgba(176,141,62,.16), transparent 55%),
              linear-gradient(180deg, var(--ink) 0%, #101e2c 100%);
  color:#fff;
}
.broker-pillar.has-photo{
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(22,50,79,.5), transparent 60%),
    radial-gradient(700px 380px at 90% 100%, rgba(176,141,62,.3), transparent 55%),
    linear-gradient(180deg, rgba(11,28,44,.92) 0%, rgba(16,30,44,.95) 100%),
    url('../assets/images/broker-office.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
}
.broker-pillar h2, .broker-pillar h3{ color:#fff; }
.broker-pillar p{ color:#c9d3ce; }
.broker-pillar .eyebrow{ background: rgba(176,141,62,.18); color:#e0c67c; }
.broker-feature{
  display:flex; gap:14px; align-items:flex-start;
  padding:22px; border-radius:14px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.broker-feature:hover{ transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(176,141,62,.4); }
.broker-feature .icon{
  width:44px; height:44px; flex-shrink:0; border-radius:11px; background: rgba(176,141,62,.16);
  display:flex; align-items:center; justify-content:center;
}
.broker-feature .icon svg{ width:22px; height:22px; color:#e0c67c; }
.broker-feature h4{ font-family:'Poppins',sans-serif; font-size:15.5px; font-weight:700; margin:0 0 4px; color:#fff; }
.broker-feature p{ font-size:13.5px; margin:0; color:#aab4af; }

.broker-stats{ display:flex; flex-wrap:wrap; gap:0; border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1); margin: 44px 0; }
.broker-stat{ flex:1; min-width:150px; text-align:center; padding: 28px 12px; border-right:1px solid rgba(255,255,255,.08); }
.broker-stat:last-child{ border-right:none; }
.broker-stat .num{ font-family:'Poppins',sans-serif; font-weight:800; font-size: clamp(28px,4vw,40px); color:#fff; letter-spacing:-0.02em; }
.broker-stat .label{ font-size:13px; color:#9fada5; margin-top:4px; }
@media (max-width:700px){ .broker-stat{ min-width:50%; border-bottom:1px solid rgba(255,255,255,.08); } }

/* Testimonial / reviews */
.review-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding:24px; box-shadow: var(--shadow);
}

/* Contact form */
.form-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.field{ margin-bottom: 18px; }
.field label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding: 12px 14px; border-radius:10px; border:1.5px solid var(--border);
  font-family: inherit; font-size:15px; background:#fbfcfc;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--brand); background:#fff; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:600px){ .field-row{ grid-template-columns: 1fr; } }

/* Footer */
.site-footer{ background: var(--ink); color:#c9cfcb; padding: 56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom:40px; }
.footer-grid h4{ color:#fff; font-size:15px; margin-bottom:14px; }
.footer-grid a{ display:block; color:#c9cfcb; font-size:14.5px; margin-bottom:10px; }
.footer-grid a:hover{ color:#fff; }
.footer-logo{ height:30px; margin-bottom:14px; filter: brightness(0) invert(1); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:22px; font-size:13px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:#8b9490; }
@media (max-width:800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* Sticky mobile CTA bar */
.mobile-cta-bar{
  position: fixed; left:0; right:0; bottom:0; z-index: 60;
  display:none; grid-template-columns: 1fr 1fr 1fr;
  background:#fff; border-top:1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mobile-cta-bar a{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding: 10px 4px 12px; font-size:11.5px; font-weight:700; color: var(--ink-soft);
}
.mobile-cta-bar a svg{ width:20px; height:20px; }
.mobile-cta-bar a:nth-child(1) svg{ color: var(--brand-dark); }
.mobile-cta-bar a:nth-child(2) svg{ color: var(--accent); }
.mobile-cta-bar a:nth-child(3) svg{ color:#3a6df0; }
@media (max-width: 720px){
  .mobile-cta-bar{ display:grid; }
  body{ padding-bottom: 66px; }
}

/* Map */
.map-wrap{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe{ width:100%; height:360px; border:0; display:block; }

/* Page hero (subpages) */
.page-hero{
  position:relative; overflow:hidden;
  padding: 64px 0 44px; background: var(--bg-soft); border-bottom:1px solid var(--border);
}
.page-hero::before{
  content:""; position:absolute; top:-140px; right:-100px; width:420px; height:420px; border-radius:50%;
  background: radial-gradient(circle, rgba(22,50,79,.16), transparent 70%); filter: blur(50px);
  animation: float 18s ease-in-out infinite; pointer-events:none;
}
.page-hero::after{
  content:""; position:absolute; bottom:-160px; left:-120px; width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, rgba(176,141,62,.14), transparent 70%); filter: blur(50px);
  animation: float 22s ease-in-out infinite; animation-delay:-5s; pointer-events:none;
}
.page-hero .container{ position:relative; z-index:1; }

/* Framed photos — duotono navy/oro para integrar fotografía con la marca */
.photo-frame{
  position:relative; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-lg); background: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.photo-frame:hover{ transform: translateY(-4px); box-shadow: 0 28px 60px rgba(11,28,44,.2); }
.photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-frame::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(160deg, rgba(11,28,44,.4), transparent 45%, rgba(176,141,62,.14));
  mix-blend-mode: multiply; pointer-events:none;
}
.photo-frame::before{
  content:""; position:absolute; inset:0; border-radius:inherit; z-index:2; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.photo-frame.ratio-4-3{ aspect-ratio: 4 / 3; }
.photo-frame.ratio-3-4{ aspect-ratio: 3 / 4; }
.photo-frame.ratio-16-9{ aspect-ratio: 16 / 9; }
.photo-frame.ratio-1-1{ aspect-ratio: 1 / 1; }

/* Banda de imagen + cifra (usada en Inicio) */
.image-band{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:center; }
@media (max-width:900px){ .image-band{ grid-template-columns:1fr; gap:28px; } }
.image-band .stat-chip{
  position:absolute; left:-18px; bottom:-18px; z-index:3;
  background:#fff; border-radius:14px; box-shadow: var(--shadow-lg); padding:16px 20px;
  display:flex; align-items:center; gap:12px;
}
.image-band .stat-chip .num{ font-family:'Poppins',sans-serif; font-weight:800; font-size:26px; color: var(--brand); line-height:1; }
.image-band .stat-chip .label{ font-size:12.5px; color: var(--muted); max-width:14ch; line-height:1.3; }
.image-band .photo-frame{ position:relative; margin-bottom:18px; }
@media (max-width:600px){ .image-band .stat-chip{ left:12px; bottom:-14px; padding:12px 16px; } }
.breadcrumb{ font-size:13px; color: var(--muted); margin-bottom:14px; }
.breadcrumb a:hover{ color: var(--brand-dark); }

.badge{ display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--border); padding:6px 12px; border-radius:999px; font-size:13px; font-weight:600; }

.hero-stats{ display:flex; gap:40px; margin-top:32px; flex-wrap:wrap; }
.hero-stats .stat .num{ font-family:'Poppins',sans-serif; font-weight:800; font-size: clamp(24px,3vw,30px); color: var(--ink); letter-spacing:-0.02em; }
.hero-stats .stat .label{ font-size:13px; color: var(--muted); margin-top:2px; }

.tag-list{ display:flex; flex-wrap:wrap; gap:10px; }
.tag{ background: var(--brand-light); color: var(--brand-dark); padding:6px 14px; border-radius:999px; font-size:13.5px; font-weight:600; }

.split{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:32px; } }

.cta-final{ text-align:center; }
.cta-final h2{ font-size: clamp(26px,3.4vw,38px); }
.cta-final .btn-row{ justify-content:center; margin-top: 22px; }

/* FAQ accordion */
.faq{ max-width: 800px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary{
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding: 20px 4px; font-family:'Poppins',sans-serif; font-weight:600; font-size:16.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:24px; line-height:1; color: var(--brand); flex-shrink:0; transition: transform .3s var(--ease); }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding: 0 4px 20px; font-size:14.5px; max-width:68ch; }

/* ==============================
   Plataforma Financiera — layout
   ============================== */

/* Hero de la página de Plataforma: dashboard flotante */
.hero-plataforma{
  position:relative; overflow:hidden;
  padding: 96px 0 100px;
  color:#fff;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30,68,104,.65), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(176,141,62,.25), transparent 55%),
    linear-gradient(180deg, #0B1C2C 0%, #08192A 100%);
}
.hero-plataforma::before{
  content:""; position:absolute; top:-140px; right:-100px; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle, rgba(176,141,62,.28), transparent 70%); filter: blur(60px);
  animation: float 20s ease-in-out infinite; pointer-events:none;
}
.hero-plataforma::after{
  content:""; position:absolute; bottom:-160px; left:-100px; width:400px; height:400px; border-radius:50%;
  background: radial-gradient(circle, rgba(30,68,104,.6), transparent 70%); filter: blur(50px);
  animation: float 24s ease-in-out infinite; animation-delay:-8s; pointer-events:none;
}
.hero-plataforma .container{ position:relative; z-index:1; }
.hero-plataforma h1, .hero-plataforma h2, .hero-plataforma h3{ color:#fff; }
.hero-plataforma p{ color:#c9d3ce; }
.hero-plataforma .eyebrow{ background: rgba(176,141,62,.18); color:#e0c67c; }
.hero-plataforma .breadcrumb{ color:#8FA3B8; }
.hero-plataforma .breadcrumb a:hover{ color:#e0c67c; }
.hero-plataforma h1{ font-size: clamp(32px, 4vw, 52px); }
.hero-plataforma .lead{ font-size: 18px; max-width: 46ch; color:#c9d3ce; }

.dashboard-wrap{
  position:relative; border-radius: 20px; overflow:hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(-4deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.dashboard-wrap:hover{ transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-6px); }
.dashboard-wrap img{ width:100%; display:block; }
.dashboard-badge{
  position:absolute; z-index:3; background:#fff; color: var(--ink);
  border-radius:12px; box-shadow: var(--shadow-lg); padding:12px 16px;
  display:flex; align-items:center; gap:10px;
  font-family:'Poppins',sans-serif; font-weight:700; font-size:13px;
}
.dashboard-badge svg{ width:20px; height:20px; color: var(--accent); flex-shrink:0; }
.dashboard-badge-1{ top:-20px; left:-20px; }
.dashboard-badge-2{ bottom:-20px; right:-20px; }
@media (max-width:900px){
  .dashboard-wrap{ transform:none; }
  .dashboard-badge-1{ left:8px; top:-14px; }
  .dashboard-badge-2{ right:8px; bottom:-14px; }
}

/* Métricas grandes del hero */
.metric-row{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:32px; margin-top: 44px;
  border-top:1px solid rgba(255,255,255,.1); padding-top:36px;
}
.metric-row .m .num{
  font-family:'Poppins',sans-serif; font-weight:800;
  font-size: clamp(26px, 3vw, 34px); color:#fff; letter-spacing:-0.02em; line-height:1;
}
.metric-row .m .num .accent{ color: var(--accent); }
.metric-row .m .label{ font-size:13px; color:#9FB0C1; margin-top:6px; }
@media (max-width:700px){ .metric-row{ grid-template-columns: repeat(2,1fr); gap:24px; } }

/* Sección oscura reutilizable con tratamiento premium */
.dark-section{
  position:relative; overflow:hidden; color:#fff;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(30,68,104,.5), transparent 60%),
    radial-gradient(700px 380px at 90% 100%, rgba(176,141,62,.18), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, #101e2c 100%);
}
.dark-section h2, .dark-section h3, .dark-section h4{ color:#fff; }
.dark-section p{ color:#c9d3ce; }
.dark-section .eyebrow{ background: rgba(176,141,62,.18); color:#e0c67c; }

/* Módulos del sistema (grid con ícono grande y descripción) */
.module-card{
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:26px;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.module-card:hover{ transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(176,141,62,.4); }
.module-card .m-num{
  font-family:'Poppins',sans-serif; font-weight:800; font-size:14px;
  color: var(--accent); letter-spacing:.06em;
  display:inline-block; padding:4px 10px; border:1px solid rgba(176,141,62,.4); border-radius:999px;
  margin-bottom:16px;
}
.module-card h3{ font-size:18px; margin-bottom:8px; color:#fff; }
.module-card p{ font-size:14px; color:#aab4af; margin:0 0 12px; }
.module-card ul{ list-style:none; padding:0; margin:0; }
.module-card li{ font-size:13.5px; color:#c9d3ce; padding:5px 0 5px 20px; position:relative; }
.module-card li::before{
  content:""; position:absolute; left:0; top:12px; width:10px; height:2px; background: var(--accent); border-radius:1px;
}

/* Tabla comparativa "antes vs. después" (cliente) */
.compare-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
@media (max-width:720px){ .compare-grid{ grid-template-columns:1fr; } }
.compare-card{
  border-radius:16px; padding:28px; background:#fff; border:1px solid var(--border); box-shadow: var(--shadow);
}
.compare-card.before{ background: var(--bg-soft); }
.compare-card.after{ border-color: rgba(22,50,79,.25); box-shadow: 0 12px 40px rgba(22,50,79,.12); }
.compare-card .clabel{
  font-family:'Poppins',sans-serif; font-weight:700; font-size:12px; letter-spacing:.1em;
  text-transform: uppercase; padding:5px 12px; border-radius:999px; display:inline-block;
  margin-bottom:16px;
}
.compare-card.before .clabel{ background:#F0EDE8; color: #7c6a4a; }
.compare-card.after .clabel{ background: var(--brand-light); color: var(--brand-dark); }
.compare-card h3{ font-size:18px; margin-bottom:14px; }
.compare-card ul{ list-style:none; padding:0; margin:0; }
.compare-card li{
  font-size:14.5px; color: var(--ink-soft); padding:9px 0 9px 26px; position:relative;
  border-bottom:1px solid var(--border);
}
.compare-card li:last-child{ border-bottom:none; }
.compare-card.before li::before{
  content:"×"; position:absolute; left:0; top:8px;
  color:#B37F3A; font-size:22px; line-height:1; font-weight:700;
}
.compare-card.after li::before{
  content:"✓"; position:absolute; left:0; top:9px;
  color: var(--brand); font-size:16px; line-height:1; font-weight:700;
}

/* Tabla de servicios replicables */
.service-table{
  border-radius:16px; overflow:hidden; border:1px solid var(--border);
  background:#fff; box-shadow: var(--shadow);
}
.service-table .row{
  display:grid; grid-template-columns: 1.3fr 2fr 1.2fr; gap:24px;
  padding: 22px 26px; border-bottom:1px solid var(--border); align-items:flex-start;
  transition: background .3s var(--ease);
}
.service-table .row:last-child{ border-bottom:none; }
.service-table .row:hover{ background: var(--bg-soft); }
.service-table .row.head{ background: var(--brand); color:#fff; padding: 16px 26px; }
.service-table .row.head > *{ color:#fff; font-family:'Poppins',sans-serif; font-weight:600; font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.service-table .svc-name{
  font-family:'Poppins',sans-serif; font-weight:700; font-size:15.5px; color: var(--ink);
  display:flex; align-items:flex-start; gap:12px;
}
.service-table .svc-name .dot{
  width:8px; height:8px; border-radius:50%; background: var(--accent); margin-top:8px; flex-shrink:0;
}
.service-table .svc-desc{ font-size:14px; color: var(--ink-soft); margin:0; }
.service-table .svc-target{
  font-size:12.5px; color: var(--brand-dark);
  background: var(--brand-light); padding:6px 12px; border-radius:8px; display:inline-block;
}
@media (max-width:820px){
  .service-table .row{ grid-template-columns:1fr; gap:10px; padding:20px; }
  .service-table .row.head{ display:none; }
  .service-table .svc-target{ align-self:flex-start; }
}

/* Stack técnico chip row */
.stack-list{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.stack-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:12px;
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  font-family:'Poppins',sans-serif; font-weight:600; font-size:13px; color:#fff;
}
.stack-chip::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--accent);
}

/* Diferenciador — cita destacada */
.pull-quote{
  border-radius:20px; padding:44px; background:#fff; border:1px solid var(--border); box-shadow: var(--shadow-lg);
  position:relative; overflow:hidden;
}
.pull-quote::before{
  content:"“"; position:absolute; top:-20px; left:20px;
  font-family:'Poppins',sans-serif; font-weight:800; font-size:180px; color: var(--brand-light);
  line-height:1; pointer-events:none;
}
.pull-quote-text{
  position:relative; font-family:'Poppins',sans-serif; font-weight:600;
  font-size: clamp(19px, 2.2vw, 24px); line-height:1.4; color: var(--ink);
  max-width: 46ch; margin: 0 auto 20px;
}
.pull-quote-text strong{ color: var(--brand); font-weight:700; }
.pull-quote-attrib{ position:relative; text-align:center; font-size:13px; color: var(--muted); }

/* Card promocional en Inicio (destaca plataforma) */
.promo-card{
  position:relative; overflow:hidden; border-radius: 24px; padding: 56px;
  color:#fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(176,141,62,.28), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, #16324F 100%);
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items:center;
}
.promo-card::before{
  content:""; position:absolute; top:-100px; right:-80px; width:300px; height:300px; border-radius:50%;
  background: radial-gradient(circle, rgba(176,141,62,.35), transparent 70%); filter: blur(50px);
  animation: float 18s ease-in-out infinite; pointer-events:none;
}
.promo-card > *{ position:relative; z-index:1; }
.promo-card h2, .promo-card h3{ color:#fff; }
.promo-card p{ color:#c9d3ce; }
.promo-card .eyebrow{ background: rgba(176,141,62,.2); color:#e0c67c; }
.promo-card .mini-preview{
  border-radius:12px; overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .5s var(--ease);
}
.promo-card:hover .mini-preview{ transform: perspective(1200px) rotateY(-3deg) translateY(-4px); }
.promo-card .mini-preview img{ width:100%; display:block; }
@media (max-width:900px){
  .promo-card{ padding:36px; grid-template-columns:1fr; }
  .promo-card .mini-preview{ transform:none; }
}
