/* ============================================================
   REDCONAR — Main landing  ·  styles
   Tokens derived from the Figma file + Redconar Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400..800&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:ital,wdth,wght@0,75..100,400..700;1,75..100,400..700&display=swap');

:root{
  --ink:#0F112A;            /* deep blue ink */
  --paper:#F5FBFF;          /* arctic white */
  --cyan:#2EA2DA;           /* brand mystic blue (figma accent) */
  --cyan-dark:#2589bd;
  --royal:#01339F;          /* mid blue */
  --indigo:#011166;
  --ice:#A0EEF6;            /* pale cyan */
  --white:#FFFFFF;

  --font-display:'Google Sans Flex', system-ui, sans-serif;
  --font-sans:'Instrument Sans', system-ui, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;
  --sw:87.5%;               /* Instrument Sans semicondensed width */

  --maxw:1128px;            /* inner content width */
  --r-md:12px; --r-lg:20px; --r-pill:999px;
  --r-btn:8px;              /* botones: rectángulo redondeado */

  --sh-card:0 1px 0 rgba(0,0,0,.05), 0 4px 4px rgba(0,0,0,.05), 0 10px 10px rgba(0,0,0,.10);
  --sh-soft:0 1px 0 rgba(0,0,0,.05), 0 4px 10px rgba(0,0,0,.10);
  --ease:cubic-bezier(.22,1,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-sans); font-stretch:var(--sw);
  font-size:20px; line-height:1.4; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility; overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--font-display); font-stretch:normal; margin:0; letter-spacing:-.02em;}
p{margin:0;}
a{color:inherit; text-decoration:none;}
.mono{font-family:var(--font-mono); font-stretch:normal;}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
section{position:relative;}

/* ---------- icons ---------- */
.material-symbols-rounded{
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  line-height:1; user-select:none;
}

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:fixed; inset:0 0 auto 0; height:90px; z-index:100;
  display:flex; align-items:center;
  transition:background var(--ease) .35s, box-shadow var(--ease) .35s, height var(--ease) .35s;
}
.header.scrolled{
  height:72px; background:rgba(245,251,255,.55);
  backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 1px 0 rgba(15,17,42,.05);
}
.header .wrap{display:flex; align-items:center; justify-content:flex-start; gap:24px; width:100%; max-width:1320px;}
.brand .rc-logo{height:68px; width:auto; display:block; color:var(--ink);}   /* navy + cyan sobre fondo claro */
.nav{display:flex; gap:34px; margin-left:auto;}
.nav a{font-size:16px; color:var(--ink); opacity:.85; transition:opacity .2s, color .2s; position:relative;}
.nav a::after{content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--cyan); transition:width .25s var(--ease);}
.nav a:hover{opacity:1;}
.nav a:hover::after{width:100%;}
.header-actions{display:flex; gap:12px; align-items:center;}

/* ---- hamburger + mobile menu ---- */
.nav-toggle{display:none; margin-left:auto; width:46px; height:46px; padding:0;
  align-items:center; justify-content:center; border:none; background:transparent; cursor:pointer;
  border-radius:10px; transition:background .2s var(--ease);}
.nav-toggle:hover{background:rgba(15,17,42,.06);}
.nav-toggle-bars{position:relative; width:24px; height:16px; display:block;}
.nav-toggle-bars span{position:absolute; left:0; width:100%; height:2.5px; border-radius:2px; background:var(--ink);
  transition:transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);}
.nav-toggle-bars span:nth-child(1){top:0;}
.nav-toggle-bars span:nth-child(2){top:6.5px;}
.nav-toggle-bars span:nth-child(3){top:13px;}
.nav-toggle.open .nav-toggle-bars span:nth-child(1){top:6.5px; transform:rotate(45deg);}
.nav-toggle.open .nav-toggle-bars span:nth-child(2){opacity:0;}
.nav-toggle.open .nav-toggle-bars span:nth-child(3){top:6.5px; transform:rotate(-45deg);}

.mobile-menu{position:fixed; top:0; left:0; right:0; z-index:99;
  padding:96px 24px 28px; max-height:100dvh; overflow-y:auto;
  background:rgba(245,251,255,.94); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 20px 44px rgba(15,17,42,.16); border-bottom:1px solid rgba(15,17,42,.07);
  transform:translateY(-101%); opacity:0; visibility:hidden;
  transition:transform .42s var(--ease), opacity .3s var(--ease), visibility .42s var(--ease);}
.mobile-menu.open{transform:translateY(0); opacity:1; visibility:visible;}
.mm-nav{display:flex; flex-direction:column;}
.mm-nav a{font-family:var(--font-display); font-size:21px; font-weight:600; color:var(--ink);
  padding:16px 4px; border-bottom:1px solid rgba(15,17,42,.08);
  transition:color .2s, padding-left .25s var(--ease);}
.mm-nav a:hover{color:var(--cyan); padding-left:10px;}
.mm-actions{display:flex; flex-direction:column; gap:12px; margin-top:24px;}
.mm-actions .btn{width:100%; justify-content:center; font-size:16px; padding:14px 20px;}
body.menu-open{overflow:hidden;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  border:none; font-family:var(--font-sans); font-stretch:var(--sw);
  font-weight:600; font-size:16px; border-radius:var(--r-btn);
  padding:11px 20px; transition:transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space:nowrap;
}
.btn .material-symbols-rounded{font-size:20px;}
.btn:active{transform:scale(.97);}
.btn-primary{background:var(--royal); color:var(--paper); box-shadow:0 6px 18px rgba(1,51,159,.28);}
.btn-primary:hover{background:#022a85; box-shadow:0 10px 26px rgba(1,51,159,.38); transform:translateY(-2px);}
.btn-cyan{background:var(--cyan); color:var(--paper); box-shadow:0 6px 18px rgba(46,162,218,.32);}
.btn-cyan:hover{background:var(--cyan-dark); transform:translateY(-2px); box-shadow:0 10px 26px rgba(46,162,218,.42);}
.btn-ghost{background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px rgba(15,17,42,.18);}
.btn-ghost:hover{background:rgba(15,17,42,.05); transform:translateY(-2px);}
.btn-ghost-light{background:transparent; color:var(--paper); box-shadow:inset 0 0 0 1.5px rgba(245,251,255,.4);}
.btn-ghost-light:hover{background:rgba(245,251,255,.12); transform:translateY(-2px);}
.btn-outline-blue{background:var(--white); color:var(--royal); box-shadow:inset 0 0 0 1.5px rgba(1,51,159,.45);}
.btn-outline-blue:hover{background:rgba(1,51,159,.06); transform:translateY(-2px);}
.btn-cyan-glass{background:linear-gradient(180deg,#5ab6e6,#2EA2DA); color:var(--paper);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 20px rgba(46,162,218,.38);}
.btn-cyan-glass:hover{background:linear-gradient(180deg,#6fc0ea,#2f9fd4); transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 12px 28px rgba(46,162,218,.5);}
.btn-white{background:var(--white); color:var(--ink); box-shadow:0 2px 6px rgba(15,17,42,.10), inset 0 0 0 1px rgba(15,17,42,.06);}
.btn-white:hover{transform:translateY(-2px); box-shadow:0 8px 20px rgba(15,17,42,.14);}
.ic-circ{display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.28); margin-left:2px;}
.ic-circ .material-symbols-rounded{font-size:16px;}
.ic-circ.dark{background:rgba(15,17,42,.08);}
.ic-circ.dark .material-symbols-rounded{color:var(--ink);}
.btn-glass{background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.06)); color:var(--paper);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25); backdrop-filter:blur(12px);}
.btn-glass:hover{background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.12)); transform:translateY(-2px);}
.btn-sm{font-size:15px; padding:9px 16px;}
.btn-hero{font-size:19px; padding:18px 34px; border-radius:12px; box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 12px 30px rgba(46,162,218,.5);}
.btn-hero .ic-circ{width:28px; height:28px;}
.btn-hero .material-symbols-rounded{font-size:22px;}
.btn-hero.btn-white{box-shadow:0 10px 28px rgba(15,17,42,.22), inset 0 0 0 1px rgba(15,17,42,.05);}

.eyebrow{font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan);}

/* ============================================================
   HERO
   ============================================================ */
.hero{padding:138px 0 0; overflow:hidden;}
.hero .wrap{position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:center;}
.hero-copy{max-width:600px;}
.hero-visual{position:relative;}
.hero-visual img{width:100%; height:auto; display:block;
  filter:drop-shadow(0 18px 40px rgba(15,17,42,.10)) drop-shadow(0 4px 12px rgba(15,17,42,.06));}
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr; gap:34px;}
  .hero-copy{max-width:none;}
  .hero-visual{max-width:560px; margin:2px auto 0;}
}
.hero-swoosh{
  position:absolute; z-index:0; pointer-events:none;
  width:1100px; height:1100px; left:-340px; top:-160px;
  border-radius:50%;
  background:
    radial-gradient(closest-side, rgba(177,236,244,.55), rgba(177,236,244,0) 70%);
  filter:blur(8px);
  animation:slowspin 60s linear infinite;
}
.hero-swoosh.two{left:auto; right:-420px; top:120px; width:900px; height:900px;
  background:radial-gradient(closest-side, rgba(46,162,218,.16), rgba(46,162,218,0) 70%);}
.hero-arc{display:none;}
.hero-halo{display:none;}
.hero-infra{margin-top:42px; max-width:660px;}
.hero-infra .eyebrow{display:block; margin-bottom:8px;}
.hero-infra p{font-size:18px; opacity:.7; line-height:1.45;}
.hero-title{max-width:600px;}
.hero-title h1{font-size:54px; line-height:1.05; font-weight:700; letter-spacing:-.025em;}
.hl{color:var(--cyan);}
.hero-sub{max-width:560px; margin-top:18px; font-size:19px; color:var(--ink); opacity:.9;}
.hero-cta{display:flex; gap:18px; margin-top:26px;}
.hero-cta .btn{padding:13px 22px;}

/* ---------- ecosistema orbit ---------- */
.eco{position:relative; width:100vw; left:50%; transform:translateX(-50%);
  height:260px; margin-top:8px; z-index:2; overflow:hidden;}
.orbit-fill,.orbit-line{position:absolute; left:50%; pointer-events:none;}
.orbit-line{display:none;}
.orbit-fill{border-radius:50%; z-index:0;
  background:url(/assets/landing/img/asset97.webp) center / 100% 100% no-repeat;}
.eco-badge{position:absolute; display:flex; flex-direction:column; align-items:center; gap:10px; width:120px; z-index:3; cursor:pointer; text-decoration:none; color:inherit; transition:opacity .4s var(--ease);}
.eco-badge .disc{
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center;
  background:linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(255,255,255,.5),
    0 2px 8px rgba(46,162,218,.12),
    0 8px 20px rgba(15,17,40,.10);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  color:var(--ink);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  animation:bob 5.5s cubic-bezier(.45,0,.55,1) infinite;
  will-change:transform;
}
.eco-badge .disc .material-symbols-rounded{font-size:26px; color:var(--cyan); transition:color .25s, transform .25s var(--ease);}
.eco-badge:hover .disc{
  transform:translateY(-8px) scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 4px 12px rgba(46,162,218,.22),
    0 16px 32px rgba(15,17,40,.14);
}
.eco-badge:hover .disc .material-symbols-rounded{color:var(--royal); transform:scale(1.12);}
.eco-badge span{
  font-size:13px; font-weight:500; color:var(--ink); opacity:.82; white-space:nowrap;
  transition:opacity .25s;
}
.eco-badge:hover span{opacity:1;}
.eco-badge.center{cursor:default; gap:4px; width:160px; align-items:center; text-align:center;}
.eco-badge.center .disc{
  width:72px; height:72px;
  background:linear-gradient(145deg,#3EB4E8,var(--cyan));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 0 4px rgba(46,162,218,.18),
    0 0 28px rgba(46,162,218,.65),
    0 8px 24px rgba(15,17,40,.15);
  animation:pulse 3.2s ease-in-out infinite;
}
.eco-badge.center .disc img{width:38px; height:auto;}
.eco-badge.center .disc .eco-iso{filter:brightness(0) invert(1);}
.eco-badge.center span{display:none;}
.eco-wordmark{width:86px; height:auto; display:block; margin:-4px auto 0;}
.eco-ring{display:none;}
@keyframes bob{
  0%,100%{transform:translateY(0);}
  30%{transform:translateY(-7px);}
  60%{transform:translateY(-3px);}
  80%{transform:translateY(-9px);}
}
@keyframes pulse{
  0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 4px rgba(46,162,218,.14), 0 0 22px rgba(46,162,218,.5), 0 8px 24px rgba(15,17,40,.15);}
  50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 6px rgba(46,162,218,.22), 0 0 44px rgba(46,162,218,.85), 0 8px 24px rgba(15,17,40,.15);}
}
@keyframes slowspin{to{transform:translateX(-50%) rotate(360deg);}}

/* infraestructura · mobile fallback (hidden on desktop) */
.eco-fallback{display:none; flex-wrap:wrap; justify-content:center; gap:10px; margin:28px auto 0; max-width:520px; padding:0 24px;}
.eco-chip{display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:var(--r-pill);
  font-size:15px; font-weight:600; color:var(--ink);
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.55));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), var(--sh-soft);}
.eco-chip .material-symbols-rounded{font-size:20px; color:var(--cyan);}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats{margin-top:48px; padding-bottom:24px;}
.stats-card{
  border-radius:var(--r-lg);
  background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.45));
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), var(--sh-card);
  display:flex; justify-content:space-between; align-items:stretch;
  padding:30px 10px;
}
.stat{flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:0 8px;}
.stat .material-symbols-rounded{font-size:38px; color:var(--ink);}
.stat .num{font-family:var(--font-display); font-weight:600; font-size:32px; line-height:1;}
.stat .lbl{font-size:20px; opacity:.9;}
.stat-div{width:1px; background:rgba(15,17,42,.18); margin:6px 0;}

/* ============================================================
   ANTES VS AHORA  (cyan section)
   ============================================================ */
.compare{background:var(--cyan); color:var(--paper); padding:128px 0; overflow:hidden;}
.compare::before,.pricing::before{content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(62% 68% at 50% 10%, rgba(177,236,244,.32), rgba(177,236,244,0) 60%);}
.compare .wrap,.pricing .wrap{position:relative; z-index:1;}
.compare-cta{display:flex; justify-content:center; margin-top:48px; position:relative; z-index:1;}
.section-head{text-align:center; max-width:980px; margin:0 auto;}
.section-head h2{font-size:48px; line-height:1.08; font-weight:600;}
.section-head .sub{margin-top:16px; font-size:24px; opacity:.92;}
.compare .section-head h2,.compare .section-head .sub{color:var(--paper);}
.compare-grid{display:grid; grid-template-columns:1fr 1fr; gap:46px; max-width:916px; margin:46px auto 0;}
.cmp-card{border-radius:var(--r-lg); padding:40px 30px; min-height:306px;}
.cmp-card h3{font-family:var(--font-sans); font-stretch:var(--sw); font-weight:700; font-size:24px; color:var(--paper); letter-spacing:0; margin-bottom:24px;}
.cmp-card.before{background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.06));
  backdrop-filter:blur(20px); box-shadow:inset 0 0 0 2px rgba(255,255,255,.16), var(--sh-card);}
.cmp-card.after{background:linear-gradient(50deg,#0F112A 40%,#01339F 108%); box-shadow:inset 0 0 0 2px rgba(255,255,255,.12);}
.cmp-list{display:flex; flex-direction:column; gap:15px;}
.cmp-item{display:flex; align-items:center; gap:8px; font-size:20px; color:var(--paper);}
.cmp-item .material-symbols-rounded{font-size:22px; flex:none;}
.cmp-card.before .cmp-item .material-symbols-rounded{color:rgba(245,251,255,.65);}
.cmp-card.after .cmp-item .material-symbols-rounded{color:var(--ice);}

/* ============================================================
   FEATURES  (resultados)
   ============================================================ */
.features{padding:128px 0; position:relative; overflow:hidden;}
.features .wrap{position:relative; z-index:1;}
.corner-bubble{position:absolute; top:-70px; left:-130px; width:340px; height:340px;
  background:url(/assets/landing/img/asset97.webp) center / contain no-repeat; pointer-events:none; z-index:0;}
.features h2{font-size:48px; line-height:1.08; font-weight:600; max-width:1132px;}
.feat-intro{font-size:20px; opacity:.7; margin-top:16px; max-width:680px;}
.feat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:46px;}
.feat-card{
  display:flex; flex-direction:column; align-items:center;
  background:var(--white); border-radius:16px; padding:38px 30px 30px; text-align:center; color:var(--ink);
  box-shadow:var(--sh-card); border:1px solid rgba(15,17,42,.06);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feat-card:hover{transform:translateY(-8px); box-shadow:0 20px 40px rgba(15,17,42,.14);}
.feat-card:focus-visible{outline:3px solid var(--cyan); outline-offset:3px;}
.feat-icon{display:flex; justify-content:center; margin-bottom:14px;}
.feat-icon .material-symbols-rounded{font-size:36px; color:var(--cyan);}
.feat-card h3{font-size:24px; font-weight:700; font-family:var(--font-sans); font-stretch:var(--sw); letter-spacing:0; margin-bottom:12px;}
.feat-card p{font-size:17px; opacity:.7; line-height:1.5; max-width:300px; margin:0 auto;}
.feat-more{display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-weight:600; font-size:16px; color:var(--cyan);
  transition:gap .25s var(--ease);}
.feat-more .material-symbols-rounded{font-size:19px;}
.feat-card:hover .feat-more{gap:11px;}

/* ============================================================
   IA INTEGRADA  (dark section)
   ============================================================ */
.ia{background:var(--ink); color:var(--paper); padding:128px 0 72px; overflow:hidden;}
.ia .section-head h2,.ia .section-head .sub{color:var(--paper);}
.ia .wrap{position:relative; z-index:2;}
.ia .section-head{max-width:1080px;}
.ia .hl{color:#5cc6ec;}
.ia-halo{position:absolute; left:50%; top:62%; width:1444px; height:1444px; transform:translate(-50%,-50%);
  border-radius:50%; pointer-events:none; z-index:0;
  background:radial-gradient(closest-side, rgba(46,162,218,.40), rgba(46,162,218,0) 70%);}
/* planeta / horizonte — imagen de fondo */
.ia-globe{position:absolute; left:50%; top:300px; width:1700px; height:1700px; transform:translateX(-50%);
  background:url(/assets/landing/img/ia-bg.webp) center / contain no-repeat; pointer-events:none; z-index:0;}
.ia-stage{position:relative; z-index:2; margin-top:36px; height:560px;}
/* anillos de órbita decorativos detrás del centro */
.ia-rings{position:absolute; left:0; right:0; top:232px; z-index:1; pointer-events:none;}
.ia-rings span{position:absolute; left:50%; top:0; transform:translate(-50%,-50%); border-radius:50%; border:1px solid rgba(92,198,236,.16);}
.ia-rings span:nth-child(1){width:94%; max-width:1040px; height:540px;}
.ia-rings span:nth-child(2){width:64%; max-width:700px; height:392px; border-color:rgba(92,198,236,.13);}
.ia-rings span:nth-child(3){width:40%; max-width:430px; height:256px; border-color:rgba(92,198,236,.10);}
.ia-items{display:contents;}
.ia-media-wrap{position:absolute; top:56px; left:0; right:0; margin:0 auto; width:600px; max-width:48%; z-index:2;
  filter:drop-shadow(0 30px 50px rgba(0,0,0,.45));}
.ia-laptop{display:block; width:100%; height:auto; transition:opacity .35s var(--ease);}
.ia-media{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; border-radius:14px;
  opacity:0; transition:opacity .35s var(--ease); pointer-events:none;}
/* video centrado, ancho completo pero con tope de alto para no tapar el subtítulo */
.ia-vid{height:auto; top:50%; bottom:auto; transform:translateY(-50%); max-height:460px;}
.ia-media-wrap.playing .ia-laptop{opacity:0;}
.ia-media.active{opacity:1;}
.ia .ia-item{cursor:pointer;}
.ia-item{position:absolute; width:300px; z-index:3; padding:9px 13px; border-radius:14px;
  border:1px solid transparent;
  transition:background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);}
/* ítem activo: contenedor con borde + glow (lo maneja el autoplay/hover en app.js) */
.ia-item.is-active{background:rgba(46,162,218,.10); border-color:rgba(92,198,236,.55);
  box-shadow:0 0 0 1px rgba(92,198,236,.22), 0 14px 40px rgba(46,162,218,.22);}
.ia-item.is-active .n{color:#7fd4f2;}
.ia-item.is-active .dot{box-shadow:0 0 13px rgba(46,162,218,1);}
.ia-item.l{left:0;}
.ia-item.r{right:0; text-align:right;}
.ia-item .row{display:flex; gap:9px; align-items:baseline;}
.ia-item.r .row{justify-content:flex-end;}
.ia-item .n{color:var(--ice); font-weight:700; font-size:20px; flex:none;}
.ia-item p{font-size:18px; color:var(--paper); line-height:1.3;}
.ia-item.r p{margin-left:auto; max-width:232px;}
.ia-item .conn{display:flex; align-items:center; margin-top:13px;}
.ia-item.r .conn{flex-direction:row-reverse;}
.ia-item .dot{width:7px; height:7px; border-radius:50%; background:var(--cyan); flex:none;
  box-shadow:0 0 8px rgba(46,162,218,.85);}
.ia-item .line{height:1.5px; flex:1; background:linear-gradient(90deg,var(--cyan),rgba(46,162,218,0));}
.ia-item.r .line{background:linear-gradient(270deg,var(--cyan),rgba(46,162,218,0));}
/* columna izquierda 01–04 · columna derecha 05–07 */
/* disposición en arco cóncavo (no columnas rectas): el medio se abre hacia afuera, sin pisar el video del centro */
.ia-item.l1{top:26px; left:0;} .ia-item.l2{top:138px; left:-30px;} .ia-item.l3{top:250px; left:-30px;} .ia-item.l4{top:362px; left:0;}
.ia-item.r1{top:70px; right:0;} .ia-item.r2{top:182px; right:-30px;} .ia-item.r3{top:294px; right:-30px;} .ia-item.r4{top:406px; right:0;}

/* ===== IA en ÓRBITA (círculo) — SÓLO pantallas anchas (≥1280px) ===== */
/* 901–1279px cae al arco (dos columnas); ≤900 al apilado mobile. Quitar .ia-orbit vuelve al arco siempre. */
@media (min-width:1280px){
  .ia-orbit .ia-stage{height:820px;}
  .ia-orbit .ia-media-wrap{width:780px; max-width:61%; top:184px; z-index:2;}
  .ia-orbit .ia-vid{max-height:520px;}
  .ia-orbit .ia-item{width:210px;}
  .ia-orbit .ia-item .conn{display:none;}
  /* red de interconexión: aro que une las funciones + radios al centro + cometa (lo dibuja app.js) */
  .ia-orbit .ia-net{position:absolute; inset:0; z-index:1; pointer-events:none; overflow:visible;}
  .ia-orbit .ia-ring{fill:none; stroke:rgba(92,170,220,.15); stroke-width:1.2;}
  .ia-orbit .ia-spokes line{stroke:rgba(92,170,220,.06); stroke-width:1;}
  .ia-orbit .ia-comet-tail{fill:none; stroke-width:2.4; stroke-linecap:round;
    filter:drop-shadow(0 0 6px rgba(92,198,236,.7));}
  .ia-orbit .ia-comet-head{fill:#e0f4fd; transform-box:fill-box; transform-origin:center;
    filter:drop-shadow(0 0 8px rgba(127,212,242,1)) drop-shadow(0 0 17px rgba(46,162,218,.85));
    animation:iaCometPulse 1.8s ease-in-out infinite;}
  @keyframes iaCometPulse{0%,100%{transform:scale(1); opacity:1;} 50%{transform:scale(1.28); opacity:.82;}}
}

/* ===== IA: video central clickeable + lightbox (todos los tamaños) ===== */
.ia-media-wrap.playing{cursor:zoom-in;}
.ia-expand{position:absolute; top:14px; right:14px; z-index:4; width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; pointer-events:none;
  background:rgba(10,22,40,.5); backdrop-filter:blur(4px); color:#dff4fd; opacity:0; transition:opacity .22s var(--ease);}
.ia-expand .material-symbols-rounded{font-size:21px;}
.ia-media-wrap.playing:hover .ia-expand{opacity:1;}

.ia-lb{position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:24px;}
.ia-lb[hidden]{display:none;}
.ia-lb-backdrop{position:absolute; inset:0; background:rgba(6,12,26,.82); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .3s var(--ease); cursor:zoom-out;}
.ia-lb.open .ia-lb-backdrop{opacity:1;}
.ia-lb-dialog{position:relative; z-index:1; max-width:min(1100px,94vw);
  transform:scale(.96); opacity:0; transition:transform .3s var(--ease), opacity .3s var(--ease);}
.ia-lb.open .ia-lb-dialog{transform:scale(1); opacity:1;}
.ia-lb-video{display:block; width:auto; max-width:94vw; max-height:78vh; border-radius:16px;
  background:#0b1830; border:1px solid rgba(92,198,236,.18); box-shadow:0 30px 80px rgba(0,0,0,.55);}
.ia-lb-close{position:absolute; top:10px; right:10px; width:40px; height:40px; border-radius:50%;
  border:none; cursor:pointer; background:rgba(15,36,56,.85); color:#dff4fd;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,.45);
  transition:background .2s var(--ease), color .2s var(--ease);}
.ia-lb-close:hover{background:#17b3ca; color:#04222a;}
.ia-lb-cap{margin-top:16px; text-align:center; display:flex; gap:10px; align-items:baseline; justify-content:center; flex-wrap:wrap;}
.ia-lb-num{color:#7fd4f2; font-weight:700; font-size:18px;}
.ia-lb-title{color:#eaf6ff; font-size:18px;}

/* ============================================================
   IMPLEMENTACIÓN Y MIGRACIÓN
   ============================================================ */
.impl{padding:128px 0; position:relative; overflow:hidden;}
.impl .section-head{max-width:920px;}
.impl-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:60px auto 0; max-width:1060px; position:relative;}
/* (línea conectora quitada: quedaba cortada por las tarjetas/badges) */
.impl-card{position:relative; z-index:1; background:var(--white); border-radius:16px; padding:44px 28px 32px; text-align:center;
  box-shadow:var(--sh-card); border:1px solid rgba(15,17,42,.06);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);}
.impl-card:hover{transform:translateY(-8px); box-shadow:0 20px 40px rgba(15,17,42,.14);}
.impl-step{position:absolute; top:-23px; left:50%; transform:translateX(-50%);
  width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--paper);
  background:linear-gradient(135deg,var(--cyan),var(--royal));
  box-shadow:0 8px 18px rgba(46,162,218,.4); border:3px solid var(--paper);}
.impl-ic{display:flex; justify-content:center; margin:14px 0 14px;}
.impl-ic .material-symbols-rounded{font-size:34px; color:var(--cyan);}
.impl-card h3{font-size:22px; font-weight:700; font-family:var(--font-sans); font-stretch:var(--sw); letter-spacing:0; margin-bottom:10px;}
.impl-card p{font-size:16px; opacity:.7; line-height:1.5; max-width:300px; margin:0 auto;}
.impl-foot{display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:44px;}
.impl-badge{display:flex; align-items:center; gap:12px; padding:14px 22px; border-radius:var(--r-pill);
  background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.45));
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), var(--sh-soft);}
.impl-badge .material-symbols-rounded{font-size:28px; color:var(--cyan);}
.impl-badge strong{display:block; font-family:var(--font-display); font-weight:600; font-size:17px; letter-spacing:-.01em;}
.impl-badge span{font-size:14px; opacity:.7;}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews{padding:128px 0; overflow:hidden;}
.reviews h2{font-size:48px; font-weight:600;}
/* --- carrusel de testimonios --- */
.rev-top{display:flex; align-items:flex-start; justify-content:space-between; gap:32px;}
.rev-top-txt{max-width:760px;}
.rev-top .feat-intro{margin-top:14px;}
.rev-nav{display:flex; gap:12px; flex:none; margin-top:6px;}
.rev-arrow{width:52px; height:52px; border-radius:50%; flex:none; cursor:pointer;
  border:1px solid rgba(15,17,42,.14); background:var(--white); color:var(--ink);
  display:grid; place-items:center;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
  box-shadow:0 4px 14px rgba(15,17,42,.06);}
.rev-arrow .material-symbols-rounded{font-size:22px;}
.rev-arrow:hover:not(:disabled){background:var(--royal); color:var(--white); border-color:var(--royal); transform:translateY(-2px);}
.rev-arrow:disabled{opacity:.4; cursor:default; box-shadow:none;}
.rev-viewport{overflow:hidden; margin-top:44px;}
.rev-track{display:flex; gap:24px; will-change:transform;
  transition:transform .55s var(--ease);}
.rev-card{flex:0 0 calc((100% - 48px) / 3); box-sizing:border-box;
  background:var(--white); border-radius:var(--r-md); padding:24px;
  box-shadow:var(--sh-card); border:1px solid rgba(15,17,42,.05);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);}
.rev-card:hover{transform:translateY(-6px); box-shadow:0 16px 34px rgba(15,17,42,.12);}
.rev-dots{display:flex; gap:8px; justify-content:center; align-items:center; margin-top:36px;}
.rev-dot{width:9px; height:9px; padding:0; border:none; border-radius:50%; cursor:pointer;
  background:rgba(15,17,42,.16); transition:width .3s var(--ease), background .3s var(--ease);}
.rev-dot.active{width:28px; border-radius:6px; background:var(--royal);}
.rev-head{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
.rev-av{width:46px; height:46px; border-radius:50%; flex:none; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--white);
  background:linear-gradient(135deg,var(--cyan),var(--royal));}
.rev-av-img{background:#fff; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(15,17,42,.08);}
.rev-av-img img{width:100%; height:100%; object-fit:contain; padding:3px; display:block;}
.rev-meta .nm{font-weight:600; font-size:18px;}
.rev-meta .ro{font-size:15px; opacity:.65;}
.rev-stars{display:flex; gap:2px; margin-bottom:8px;}
.rev-stars .material-symbols-rounded{font-size:18px; color:#FFB400; font-variation-settings:'FILL' 1;}
.rev-card p{font-size:17px; line-height:1.45; opacity:.85;}

/* ============================================================
   PRECIOS  (royal section)
   ============================================================ */
.pricing{background:var(--royal); color:var(--paper); padding:128px 0; overflow:hidden;}
.pricing .section-head h2,.pricing .section-head .sub{color:var(--paper);}
.seg{display:inline-flex; gap:4px; padding:4px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.12); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  margin:34px auto 0;}
.seg-wrap{display:flex; justify-content:center;}
.seg button{border:none; background:transparent; cursor:pointer; color:var(--paper);
  font-family:var(--font-sans); font-stretch:var(--sw); font-weight:600; font-size:16px;
  padding:9px 22px; border-radius:var(--r-pill); transition:background .25s, color .25s;}
.seg button.active{background:var(--cyan); color:var(--paper);}
.price-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1122px; margin:46px auto 0;}
.price-uf-note{grid-column:1 / -1; text-align:center; font-size:14px; opacity:.72; margin-top:10px;}
.price-card{border-radius:var(--r-lg); padding:36px 30px; display:flex; flex-direction:column; min-height:560px;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.05));
  backdrop-filter:blur(20px); box-shadow:inset 0 0 0 2px rgba(255,255,255,.12), var(--sh-card);
  color:var(--paper);}
.price-card.featured{background:linear-gradient(160deg,#0F112A 30%,#01339F 120%); box-shadow:inset 0 0 0 2px rgba(160,238,246,.3), 0 18px 40px rgba(0,0,0,.3);}
.price-tag{font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ice); margin-bottom:10px;}
.price-card h3{font-family:var(--font-sans); font-stretch:var(--sw); font-weight:700; font-size:24px; color:var(--paper); letter-spacing:0;}
.price-amt{font-family:var(--font-display); font-weight:600; font-size:40px; color:var(--ice); margin-top:14px; line-height:1;}
.price-per{font-size:18px; opacity:.85; margin-top:6px;}
.price-desc{font-size:16px; opacity:.82; line-height:1.45; margin-top:18px;}
.price-checks{display:flex; flex-direction:column; gap:8px; margin-top:18px;}
.price-checks .cmp-item{font-size:16px;}
.price-checks .material-symbols-rounded{color:var(--ice);}
.price-card .btn{margin-top:auto;}

/* tabla de planes por volumen (Alquileres) */
.price-table{max-width:620px; margin:46px auto 0; border-radius:var(--r-lg); padding:36px 34px;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.05));
  backdrop-filter:blur(20px); box-shadow:inset 0 0 0 2px rgba(255,255,255,.12), var(--sh-card); color:var(--paper);}
.price-table-head{margin-bottom:14px;}
.price-table-head h3{font-family:var(--font-sans); font-stretch:var(--sw); font-weight:700; font-size:24px; color:var(--paper); letter-spacing:0; margin-top:8px;}
.price-table-head .price-desc{margin-top:12px;}
.ptr-list{display:flex; flex-direction:column; margin:20px 0 16px;}
.ptr{display:flex; align-items:baseline; gap:12px; padding:15px 2px; border-bottom:1px solid rgba(255,255,255,.14);}
.ptr:last-child{border-bottom:none;}
.ptr-prop{flex:1; font-size:17px;}
.ptr-per{font-size:13px; opacity:.7; white-space:nowrap;}
.ptr-val{font-family:var(--font-display); font-weight:600; font-size:22px; color:var(--ice); white-space:nowrap; min-width:118px; text-align:right;}
.price-fine{font-size:13px; opacity:.7; line-height:1.5; margin:0 0 22px;}
/* bloque "a partir de" (Alquileres) */
.price-from{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:8px 0 16px; padding:18px 0; border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14);}
.price-from-lbl{font-size:15px; opacity:.8;}
.price-from-amt{font-family:var(--font-display); font-weight:600; font-size:40px; color:var(--ice); line-height:1;}
.price-from-per{font-size:15px; opacity:.7;}
@media (max-width:520px){
  .ptr{flex-wrap:wrap; gap:2px 12px;}
  .ptr-val{min-width:0;}
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{padding:110px 0;}
.contact .wrap{display:grid; grid-template-columns:514px 1fr; gap:96px; align-items:center;}
.contact h2{font-size:48px; line-height:1.06; font-weight:600;}
.contact .sub{margin-top:18px; font-size:22px; opacity:.85;}
.contact .ct-btns{display:flex; gap:18px; margin-top:36px;}
.form-card{position:relative; border-radius:var(--r-md); padding:30px; overflow:hidden;
  background:linear-gradient(42deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.85) 95%), rgba(177,236,244,.18);
  backdrop-filter:blur(20px); box-shadow:inset 0 0 0 1px rgba(255,255,255,.5), var(--sh-card);
  border:1px solid rgba(15,17,42,.06);}
.form-card h3{font-family:var(--font-sans); font-stretch:var(--sw); font-weight:600; font-size:22px; letter-spacing:0; color:var(--ink);}
.form-card .fc-sub{font-size:18px; opacity:.75; margin-top:4px; margin-bottom:22px;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.field{display:flex; flex-direction:column; gap:6px;}
.field.full{grid-column:1 / -1;}
.field label{font-size:14px; font-weight:600; opacity:.85;}
.field input,.field select,.field textarea{
  font-family:var(--font-sans); font-stretch:var(--sw); font-size:16px; color:var(--ink);
  background:#ECECEC; border:1px solid transparent; border-radius:10px; padding:11px 14px; outline:none;
  transition:border-color .2s, background .2s;}
.field textarea{resize:none; min-height:64px;}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--cyan); background:#fff;}
.field input::placeholder,.field textarea::placeholder{color:rgba(15,17,42,.4);}
.form-card .btn{width:100%; justify-content:center; margin-top:18px;}
.form-fine{text-align:center; font-size:12px; opacity:.6; margin-top:10px;}
/* --- validación inline del formulario --- */
.field input.is-invalid,.field textarea.is-invalid,.field select.is-invalid{
  border-color:#D23B43; background:#FEF4F4;}
.field input.is-invalid:focus,.field textarea.is-invalid:focus{border-color:#D23B43;}
.role-seg.is-invalid button{box-shadow:inset 0 0 0 1.5px #D23B43; background:#FEF4F4;}
.fc-err{display:flex; align-items:flex-start; gap:5px; font-size:13px; line-height:1.35; color:#C42B33;}
.fc-err .material-symbols-rounded{font-size:15px; flex:none; margin-top:1px;}
.fc-status{display:flex; align-items:flex-start; gap:9px; margin-top:16px; padding:12px 14px;
  border-radius:10px; font-size:14px; line-height:1.4;}
.fc-status[hidden]{display:none;}
.fc-status .material-symbols-rounded{font-size:19px; flex:none;}
.fc-status.ok{background:#E9F7F0; color:#14663F; box-shadow:inset 0 0 0 1px rgba(31,138,91,.18);}
.fc-status.err{background:#FEF4F4; color:#A92028; box-shadow:inset 0 0 0 1px rgba(210,59,67,.18);}
/* selector de perfil (Vecino / Administrador / Inmobiliaria) */
.role-seg{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:6px;}
.role-seg button{display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 6px;
  border-radius:var(--r-btn); background:var(--white); cursor:pointer; font-size:14px; font-weight:600; color:var(--ink);
  box-shadow:inset 0 0 0 1.5px rgba(15,17,42,.12); transition:box-shadow .2s var(--ease), background .2s, color .2s, transform .15s var(--ease);}
.role-seg button .material-symbols-rounded{font-size:22px; color:var(--cyan); transition:color .2s;}
.role-seg button:hover{box-shadow:inset 0 0 0 1.5px var(--cyan); transform:translateY(-1px);}
.role-seg button.active{background:var(--cyan); color:var(--paper); box-shadow:inset 0 0 0 1.5px var(--cyan), 0 6px 16px rgba(46,162,218,.3);}
.role-seg button.active .material-symbols-rounded{color:var(--paper);}
.role-hint{font-size:14px; line-height:1.45; opacity:.78; margin-top:10px; min-height:20px;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:var(--ink); color:var(--paper); padding:64px 0 36px; position:relative; overflow:hidden;}
/* Sphere arc – large CSS circle, lighter interior */
.footer::before{
  content:'';
  position:absolute;
  width:1000px; height:1000px;
  border-radius:50%;
  left:-545px; top:50%;
  transform:translateY(-50%);
  background:radial-gradient(circle at 42% 48%,
    rgba(82,112,154,.40) 0%,
    rgba(58,86,126,.30) 52%,
    rgba(40,62,100,.17) 80%,
    rgba(28,46,80,.05) 100%);
  border:1px solid rgba(140,190,220,.24);
  z-index:0;
  pointer-events:none;
}
.footer-glow{display:none;}

.footer .wrap{max-width:1320px; position:relative; z-index:1;}
.footer-contact{display:flex; flex-direction:column; gap:9px; margin-top:18px;}
.footer-contact a,.footer-contact span{display:flex; align-items:center; gap:8px; font-size:15px; opacity:.72; transition:opacity .2s;}
.footer-contact a:hover{opacity:1; color:var(--ice);}
.footer-contact .material-symbols-rounded{font-size:18px; color:var(--cyan);}
.footer-follow .footer-chips{display:flex; gap:18px; margin-bottom:28px;}
.footer-chips a{width:24px; height:24px; display:grid; place-items:center; color:rgba(255,255,255,.85);
  background:none; border:none; box-shadow:none;
  transition:color .2s var(--ease), transform .2s var(--ease);}
.footer-chips a:hover{color:#fff; transform:translateY(-2px);}
.footer-chips svg{width:21px; height:21px; fill:currentColor;}
.footer-demo{display:inline-flex; align-items:center; gap:14px; padding:13px 22px; background:rgba(255,255,255,.07); color:var(--paper); border:1px solid rgba(255,255,255,.14); font-weight:500; border-radius:11px;}
.footer-demo span{opacity:.8; font-size:1.05em;}
.footer-demo:hover{background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.28);}
.footer-legal{display:flex; gap:18px;}
.footer-legal a{opacity:.7; transition:opacity .2s, color .2s;}
.footer-legal a:hover{opacity:1; color:var(--ice);}
.footer .wrap{max-width:1320px;}
.footer-top{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(245,251,255,.12);}
.footer-brand .rc-logo{height:45px; width:auto; color:var(--paper);}
.footer-brand .footer-logo{height:50px; width:auto; display:block;}
.footer-brand p{margin-top:16px; font-size:12px; line-height:1.5; opacity:.85; max-width:254px;}
.footer-col h4{font-family:var(--font-sans); font-stretch:var(--sw); font-size:16px; letter-spacing:.05em; text-transform:uppercase; opacity:1; margin-bottom:12px; font-weight:600;}
.footer-col a{display:block; font-size:16px; opacity:.82; margin-bottom:0; line-height:24px; transition:opacity .2s;}
.footer-col a:hover{opacity:1; color:var(--ice);}
.footer-bot{display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:14px; opacity:.6; flex-wrap:wrap; gap:12px;}
.footer-social{display:flex; gap:14px;}
.footer-social a{opacity:.7; transition:opacity .2s, color .2s;}
.footer-social a:hover{opacity:1; color:var(--ice);}

/* ============================================================
   BACKGROUND GLASS CIRCLES (decorative)
   ============================================================ */
.glass-orb{position:absolute; border-radius:50%; pointer-events:none; z-index:0;
  background:radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), rgba(177,236,244,.35) 45%, rgba(177,236,244,.05) 75%);
  box-shadow:inset 0 0 40px rgba(255,255,255,.5); filter:blur(.5px); opacity:.7;}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.in{opacity:1; transform:none;}
[data-stagger]{transition-delay:var(--d,0ms);}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet / small laptop: switch to mobile nav ---- */
@media (max-width:1180px){
  .header{height:78px;}
  .header.scrolled{height:64px;}
  .brand .rc-logo{height:52px;}

  .hero{padding:150px 0 0;}
  .hero-title h1{font-size:clamp(44px,6vw,60px);}
  .feat-grid,.price-grid{grid-template-columns:repeat(2,1fr);}
  .rev-card{flex-basis:calc((100% - 24px) / 2);}   /* 2 testimonios por vista */
  .contact .wrap{grid-template-columns:1fr; gap:48px; max-width:640px;}
  .compare,.features,.impl,.reviews,.pricing{padding-top:104px; padding-bottom:104px;}
  .ia{padding-top:104px; padding-bottom:64px;}
}

/* ---- Stats: wrap before the row clips (3 per row) ---- */
@media (max-width:1024px){
  .stats-card{flex-wrap:wrap; justify-content:center; gap:30px 16px; padding:30px 16px;}
  .stat{flex:0 0 28%;}
  .stat-div{display:none;}
  .stat .num{font-size:28px;}
}

/* ---- IA section: stack the orbiting capability list ---- */
@media (max-width:900px){
  /* navbar: el menú corto entra hasta ~900px; recién acá colapsa a hamburguesa */
  .nav,.header-actions{display:none;}
  .nav-toggle{display:inline-flex;}
  .ia-stage{height:auto; margin-top:16px;}
  .ia-rings{display:none;}
  .ia-globe{display:none;}
  .ia-media-wrap{position:static; transform:none; max-width:none; width:min(460px,84%);
    margin:0 auto 30px; display:block; filter:drop-shadow(0 22px 40px rgba(0,0,0,.4));}
  .ia-items{display:grid; grid-template-columns:1fr 1fr; gap:26px 36px; position:relative; z-index:2;}
  .ia-item{position:static; width:auto;}
  .ia-item.l,.ia-item.r{left:auto; right:auto; text-align:left; transform:none;}
  .ia-item.r .row{justify-content:flex-start;}
  .ia-item.r .n{order:-1;}   /* en mobile el número va primero, como los ítems l */
  .ia-item.r p{margin-left:0; max-width:none;}
  .ia-item .conn{display:none;}
  .ia-item .row{gap:10px;}
  .ia-item p{font-size:17px;}
}

/* ---- Phone ---- */
@media (max-width:720px){
  body{font-size:18px;}
  .wrap{padding:0 20px;}

  .hero{padding:122px 0 0;}
  .hero-title h1{font-size:clamp(32px,8.5vw,44px);}
  .hero-sub{font-size:19px; margin-top:18px;}
  .hero-cta{margin-top:28px; flex-wrap:wrap;}

  .section-head h2,.features h2,.reviews h2,.contact h2{font-size:clamp(28px,6.6vw,34px);}
  .section-head .sub,.hero-infra p,.feat-intro{font-size:18px;}
  .compare,.features,.impl,.reviews,.pricing,.contact{padding-top:76px; padding-bottom:76px;}
  .ia{padding-top:76px; padding-bottom:52px;}

  .feat-grid,.price-grid,.compare-grid,.impl-grid{grid-template-columns:1fr;}
  .rev-card{flex-basis:100%;}                       /* 1 testimonio por vista */
  .rev-top{flex-direction:column; gap:20px;}
  .rev-nav{margin-top:0;}
  .compare-grid{gap:20px; max-width:460px;}
  .cmp-card{padding:30px 24px; min-height:0;}
  .impl-grid{gap:48px; margin-top:44px; max-width:420px;}
  .impl-grid::before{display:none;}
  .impl-card{padding:40px 24px 28px;}

  .stats{margin-top:34px;}
  .stats-card{flex-wrap:wrap; gap:26px 12px; justify-content:center; padding:28px 14px;}
  .stat{flex:0 0 42%;}
  .stat-div{display:none;}

  .eco{display:none;}
  .eco-fallback{display:flex;}

  .ia-items{gap:22px 26px;}

  .seg{flex-wrap:wrap; justify-content:center;}
  .seg button{font-size:15px; padding:9px 15px;}

  .contact .wrap{gap:34px;}
  .form-grid{grid-template-columns:1fr;}
  .contact .ct-btns{flex-wrap:wrap;}
  .contact .ct-btns .btn{flex:1 1 160px; justify-content:center;}

  .footer-top{grid-template-columns:1fr 1fr; gap:30px 24px;}
  .footer-brand{grid-column:1 / -1;}

  .btn-hero{font-size:17px; padding:15px 26px;}

  .ptr{flex-wrap:wrap; gap:2px 12px;}
  .ptr-val{min-width:0;}
}

/* ---- Small phone ---- */
@media (max-width:480px){
  .wrap{padding:0 16px;}
  .brand .rc-logo{height:46px;}

  .hero-title h1{font-size:30px;}
  .hero-cta .btn,.compare-cta .btn,.contact .ct-btns .btn{width:100%; flex:1 1 100%;}

  .ia-items{grid-template-columns:1fr; gap:16px; max-width:330px; margin:0 auto;}
  .ia-media-wrap{margin-bottom:22px;}

  .stat{flex:0 0 100%;}

  .footer-top{grid-template-columns:1fr;}
  .footer-brand{grid-column:auto;}

  .role-seg{grid-template-columns:1fr;}
  .role-seg button{flex-direction:row; justify-content:center; gap:8px; padding:13px;}

  .price-card{min-height:0;}
}
