/* ideIA On Consulting — estilos
   Colores según Brand.md: Negro idea, Fucsia, Fucsia profundo y Blanco */
:root {
  /* Paleta de marca (ver Brand.md). No usar otros fucsias ni negros. */
  --negro: #0A0A0C;            /* Negro idea: fondo base */
  --fucsia: #00BDE0;           /* Cian en claro: «IA», destellos, «ON» y acentos */
  --fucsia-profundo: #00BDE0;  /* Cian en claro también sobre fondo blanco y en botones (texto negro) */
  --blanco: #FFFFFF;           /* Blanco: texto sobre oscuro y fondo claro */
  /* Derivados permitidos */
  --fucsia-profundo-hover: #00A6C7;
  --fucsia-suave: #DEFCFF;
  --gris-logo: #A1A1AA;
  /* Neutros de interfaz */
  --ink: var(--negro);
  --grey: #5C5C64;
  --grey-light: #BDBDC2;
  --border: #DCDCE0;
  --bg: #F5F5F7;
  --line-dark: #26262C;
  /* Roles (fondo claro por defecto; las secciones oscuras los redefinen) */
  --accent: var(--fucsia-profundo);
  --accent-hover: var(--fucsia-profundo-hover);
  --accent-dark: var(--fucsia-profundo-hover);
  --accent-soft: var(--fucsia-suave);
  --accent-light: var(--fucsia);
  --black: var(--negro);
  --white: var(--blanco);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1140px;
}
/* Secciones oscuras: el acento pasa a ser el fucsia vivo */
.header, .hero, .showreel, .partner, .about, .footer, .totop { --accent: var(--fucsia); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8px; }
body { margin: 0; font-size: 15px; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { position: relative; }
.eyebrow { font-size: 12.32px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: var(--accent-light); }
.eyebrow--dark { color: var(--accent-dark); }
.h2 { font-family: var(--font-display); font-size: clamp(1.76rem, 3.08vw, 2.64rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14.08px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--fucsia-profundo); color: var(--negro); }
.btn--primary:hover { background: var(--fucsia-profundo-hover); color: var(--negro); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #222227; color: var(--white); }
.btn--outline { border-color: var(--grey); color: var(--white); }
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13.2px; }

/* Cabecera */
.header { background: var(--black); color: var(--white); position: relative; z-index: 10; } /* por encima de la red de la portada, que sube hasta aquí */
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 12px; padding-bottom: 8px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 13.2px; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent-light); }

/* Hero */
.hero { background: var(--black); color: var(--white); overflow: visible; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 0; padding-bottom: 96px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 500px; height: auto; }
/* Logo: copia exacta del boceto original (medidas del boceto a 112px, pasadas a em) */
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: .0714em; align-self: flex-start; padding-top: 24px; font-size: 80.96px; }
.logo__word { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1em; line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; }
.logo__ia { color: var(--fucsia); display: inline-block; position: relative; padding-bottom: .48em; } /* «IA» con el interruptor ON debajo, de su mismo ancho */
.logo__a { letter-spacing: 0; }
.logo__i, .logo__a { color: var(--gris-logo); } /* «IA» en gris: el color de marca queda en el interruptor y los destellos */
.logo__rays { color: var(--fucsia); }
.logo__on { position: absolute; left: .07em; top: 1.03em; width: calc(100% - .11em); height: auto; max-width: none; display: block; }
.logo__i { position: relative; }
.logo__rays { position: absolute; top: -.135em; left: 50%; transform: translateX(-50%); width: .698em; height: .229em; max-width: none; overflow: visible; } /* destellos como en «Logo y paleta» */
.logo__sub { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .1429em; line-height: 1.2; letter-spacing: .3em; text-transform: uppercase; color: var(--gris-logo); white-space: nowrap; }
.tagline { margin: 0 0 36px; font-size: 12.32px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.94rem, 3.52vw, 2.99rem); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent); }
/* «inteligencia artificial» siempre en una sola línea, debajo de «Tu partner en» */
.hero h1 .hero__h1-line { white-space: nowrap; }
@media (min-width: 700px) { .hero h1 { font-size: clamp(1.76rem, 2.99vw, 2.55rem); } }
@media (max-width: 699px) { .hero h1 { font-size: clamp(1.41rem, 6.34vw, 1.94rem); } }
.hero__lead { max-width: 34rem; font-size: 16.72px; line-height: 1.55; color: #D9D9D9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }


/* Bombilla animada de la portada */
.hero-anim .ha-bob{animation:ha-bob 5s ease-in-out infinite}
.hero-anim .ha-glow{animation:ha-glow 3.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.hero-anim .ha-rays{animation:ha-rays 2.4s ease-in-out infinite}
.hero-anim .ha-ring{animation:ha-ring 3.2s ease-in-out infinite}
.hero-anim .ha-nd{transform-box:fill-box;transform-origin:center}
.hero-anim .ha-pk{opacity:0;offset-rotate:0deg}
.hero-anim .ha-lit{fill:none;stroke:#00BDE0;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;filter:url(#ha-bloom)}
.hero-anim .ha-head,.hero-anim .ha-core,.hero-anim .ha-tail{offset-rotate:0deg;opacity:0}
.hero-anim .ha-head{fill:#00BDE0;filter:url(#ha-bloom)}
.hero-anim .ha-core{fill:#fff}
.hero-anim .ha-tail{fill:#00BDE0}
.hero-anim .ha-flash{fill:#00BDE0;opacity:0;filter:url(#ha-bloom);transform-box:fill-box;transform-origin:center}
.hero-anim .ha-halo{opacity:0;transform-box:fill-box;transform-origin:center}
.hero-anim .ha-rip{fill:none;stroke:#00BDE0;stroke-width:1.5;vector-effect:non-scaling-stroke;opacity:0;transform-box:fill-box;transform-origin:center}
.hero-anim .ha-word{font-family:var(--font-display);font-weight:600;font-size:14.96px;letter-spacing:.01em;fill:#fff;opacity:0;paint-order:stroke;stroke:#0A0A0C;stroke-width:6px;stroke-linejoin:round;pointer-events:none}
@keyframes ha-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes ha-glow{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:.85;transform:scale(1.08)}}
@keyframes ha-rays{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes ha-ring{0%,100%{stroke-width:2.5}50%{stroke-width:4}}
@media (prefers-reduced-motion:reduce){
  .hero-anim *{animation:none!important}
  .hero-anim .ha-pk{opacity:0}
  .hero-anim .ha-word{opacity:.8}
}

/* Vídeo */
.showreel { background: #000000; color: var(--white); } /* negro puro, igual que los bordes del vídeo, para que se funda con la sección */
.showreel .h2 span { color: var(--accent); }
.showreel__lead { font-size: 15.84px; line-height: 1.6; color: #D9D9D9; max-width: 40rem; }
.showreel__player { overflow: hidden; background: #000000; }
.method__video { margin-bottom: 8px; }
.showreel__player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000000; outline: none; }

/* Ventajas */
.perks { background: var(--white); }
.perks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-top: 56px; padding-bottom: 72px; }
/* Ventajas: tarjetas claras con toque fucsia, icono destacado y efecto al pasar el ratón */
.perk { position: relative; overflow: hidden; background: linear-gradient(160deg, #F0FEFF 0%, var(--white) 55%); color: var(--ink); border: 1px solid #CDFAFF; border-radius: 22px; padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 34px -26px rgba(0,189,224,.45); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.perk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--fucsia-profundo), var(--fucsia)); transform: scaleX(.25); transform-origin: left; transition: transform .35s ease; }
.perk::after { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(0,189,224,.16), rgba(0,189,224,0) 70%); transition: transform .4s ease; pointer-events: none; }
.perk:hover { transform: translateY(-6px); border-color: var(--fucsia); box-shadow: 0 26px 50px -26px rgba(0,189,224,.6); }
.perk:hover::before { transform: scaleX(1); }
.perk:hover::after { transform: scale(1.4); }
.perk__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--negro); background: linear-gradient(135deg, var(--fucsia), var(--fucsia-profundo-hover)); box-shadow: 0 10px 22px -10px rgba(0,189,224,.8); margin-bottom: 10px; }
.perk__icon svg { width: 28px; height: 28px; }
.perk__tag { font-size: 10.56px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fucsia-profundo); }
.perk strong { display: block; font-family: var(--font-display); font-size: 21.12px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.perk strong em { font-style: normal; color: var(--fucsia-profundo); }
.perk p { color: var(--grey); line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .perk, .perk::before, .perk::after { transition: none; } .perk:hover { transform: none; } }

/* Servicios */
.services { background: var(--bg); }
.block { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.block__head { display: flex; flex-direction: column; gap: 14px; max-width: 44rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.card h3 { font-family: var(--font-display); font-size: 19.36px; }
.card p { color: var(--grey); line-height: 1.55; }

/* Método */
.method { background: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--black); padding-top: 24px; }
.step__n { font-family: var(--font-display); font-size: 38.72px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { font-family: var(--font-display); font-size: 19.36px; }
.step p { color: var(--grey); line-height: 1.55; }

/* Partner de IA */
.partner { background: var(--black); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.partner .h2 span { color: var(--accent-light); }
.partner__lead { font-size: 15.84px; line-height: 1.6; color: #D9D9D9; max-width: 40rem; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; counter-reset: none; }
.skill { position: relative; border: 1px solid var(--line-dark); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, var(--negro) 0%, #000 100%); transition: border-color .2s, transform .2s; }
.skill:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill__n { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13.2px; color: var(--accent-light); box-shadow: 0 0 18px -4px rgba(0, 189, 224, .6); }
.skill h3 { font-family: var(--font-display); font-size: 19.36px; }
.skill p { color: var(--grey-light); line-height: 1.55; }
.partner__sum { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line-dark); padding-top: 40px; }
/* «En definitiva»: globos que aparecen uno a uno y se unen con una línea fucsia, como en el vídeo */
.sum { --bubble: 76px; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; }
.sum li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sum__bubble { position: relative; z-index: 1; width: var(--bubble); height: var(--bubble); border-radius: 50%; border: 2px solid var(--fucsia); background: #000; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(0,189,224,.08), 0 0 28px rgba(0,189,224,.35); margin-bottom: 10px; }
.sum__bubble svg { width: 36px; height: 36px; }
.sum__bar-accent { stroke: var(--fucsia); stroke-width: 3; }
/* línea que une cada globo con el siguiente */
.sum li:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--bubble) / 2 - 1px); left: calc(50% + var(--bubble) / 2); width: calc(100% + 32px - var(--bubble)); height: 2px; background: var(--fucsia); transform-origin: left center; }
.sum strong { font-family: var(--font-display); font-size: clamp(1.23rem, 1.94vw, 1.67rem); line-height: 1.15; letter-spacing: -.01em; }
.sum__last strong { color: var(--fucsia); }
.sum span:not(.sum__bubble) { color: var(--grey-light); line-height: 1.5; max-width: 18rem; }

/* Animación al llegar con el scroll (script.js añade .is-ready y luego .is-in) */
.sum.is-ready .sum__bubble { transform: scale(0); opacity: 0; }
.sum.is-ready strong, .sum.is-ready span:not(.sum__bubble) { opacity: 0; transform: translateY(10px); }
.sum.is-ready li:not(:last-child)::after { transform: scaleX(0); }
.sum.is-in .sum__bubble { animation: sum-pop .55s cubic-bezier(.34,1.56,.64,1) forwards; }
.sum.is-in strong, .sum.is-in span:not(.sum__bubble) { transition: opacity .5s ease, transform .5s ease; opacity: 1; transform: none; }
.sum.is-in li:not(:last-child)::after { transition: transform .5s ease; transform: scaleX(1); }
.sum.is-in li:nth-child(1) .sum__bubble { animation-delay: 0s; }
.sum.is-in li:nth-child(1) strong, .sum.is-in li:nth-child(1) span:not(.sum__bubble) { transition-delay: .25s; }
.sum.is-in li:nth-child(1)::after { transition-delay: .6s; }
.sum.is-in li:nth-child(2) .sum__bubble { animation-delay: 1.05s; }
.sum.is-in li:nth-child(2) strong, .sum.is-in li:nth-child(2) span:not(.sum__bubble) { transition-delay: 1.3s; }
.sum.is-in li:nth-child(2)::after { transition-delay: 1.65s; }
.sum.is-in li:nth-child(3) .sum__bubble { animation-delay: 2.1s; }
.sum.is-in li:nth-child(3) strong, .sum.is-in li:nth-child(3) span:not(.sum__bubble) { transition-delay: 2.35s; }
@keyframes sum-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) {
  .sum { grid-template-columns: 1fr; gap: 40px; }
  .sum li:not(:last-child)::after { display: none; } /* en móvil los globos aparecen uno a uno, sin línea */
}
@media (prefers-reduced-motion: reduce) {
  .sum.is-ready .sum__bubble, .sum.is-ready strong, .sum.is-ready span:not(.sum__bubble), .sum.is-ready li::after { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Nosotros */
.about { background: var(--black); color: var(--white); }
.about__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 104px; padding-bottom: 104px; }
.about__text { flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 72px; align-items: end; }
.about__head { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .about__text { grid-template-columns: 1fr; } }
.about__text p.lead { font-size: 15.84px; line-height: 1.65; color: #D9D9D9; padding-left: 24px; border-left: 2px solid var(--fucsia); }
/* Socios: mosaico (bento). Foto de los dos a la izquierda; a la derecha, arriba nombre (blanco) + área, abajo área + nombre (blanco) */
.team { flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, auto)); gap: 16px; }
.team__photo { grid-row: span 2; position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #000; min-height: 456px; }
.team__photo picture, .team__photo img { display: block; width: 100%; height: 100%; }
.team__photo img { object-fit: cover; object-position: 51% 30%; transition: transform .7s ease; }
.team__photo:hover img { transform: scale(1.04); }
.team__tag { position: absolute; top: 18px; left: 18px; background: var(--fucsia); color: var(--negro); font-size: 9.68px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.team__tile { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: transform .25s ease, border-color .25s ease; }
.team__tile:hover { transform: translateY(-4px); }
.team__tile--name { background: var(--white); color: var(--negro); justify-content: flex-end; }
.team__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.76rem, 2.99vw, 2.64rem); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
.team__role { margin-top: 12px; color: var(--fucsia-profundo); font-size: 10.56px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.team__tile--area { background: #16161B; border: 1px solid var(--line-dark); }
.team__tile--area:hover { border-color: var(--fucsia); }
.team__area { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.58rem, 2.64vw, 2.29rem); line-height: 1; letter-spacing: -.03em; color: var(--fucsia); }
.team__bio { color: #D4D4D8; font-size: 13.2px; line-height: 1.5; }
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .team__photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .team__photo img { object-position: 50% 50%; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .team__tile:nth-child(4) { order: 5; } /* en móvil: nombre de Iñigo antes que su área */
}
@media (prefers-reduced-motion: reduce) { .team__photo img, .team__tile { transition: none; } .team__photo:hover img, .team__tile:hover { transform: none; } }
/* Socios: sin recuadros. Foto a sangre con el nombre encima y la descripción debajo */
.member { display: flex; flex-direction: column; gap: 18px; }
.member__photo { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--negro); }
.member__photo--img picture, .member__photo--img img { display: block; width: 100%; height: 100%; }
.member__photo--img img { object-fit: cover; object-position: 50% 20%; transition: transform .6s ease; }
.member:hover .member__photo--img img { transform: scale(1.04); }
.member__photo::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.member__photo--empty { background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.member__ph { font-size: 10.56px; font-weight: 600; letter-spacing: .16em; color: var(--grey); }
.member__cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.member__name { font-family: var(--font-display); font-size: 19.36px; font-weight: 700; color: var(--white); }
.member__role { color: var(--fucsia); font-weight: 600; font-size: 10.56px; letter-spacing: .16em; text-transform: uppercase; }
.member__bio { display: flex; flex-direction: column; gap: 12px; }
.member__lead { color: var(--white); font-size: 13.2px; font-weight: 500; line-height: 1.4; }
.member__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.member__tags li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #2E2E34; border-radius: 999px; font-size: 11.44px; color: var(--grey-light); line-height: 1.2; transition: border-color .2s ease, color .2s ease; }
.member__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fucsia); flex: none; }
.member:hover .member__tags li { border-color: rgba(0,189,224,.45); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .member__photo--img img { transition: none; } .member:hover .member__photo--img img { transform: none; } }

/* Casos */
.cases { background: var(--accent-soft); }
.cases__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 88px; padding-bottom: 88px; }
.cases__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cases__quote { font-family: var(--font-display); font-size: clamp(1.41rem, 2.29vw, 1.94rem); line-height: 1.2; font-weight: 700; }

/* Contacto */
.contact { background: var(--white); }
.contact__inner { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
.contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__info .lead { font-size: 15.84px; line-height: 1.6; color: var(--grey); }
.contact__data { font-size: 14.08px; line-height: 1.8; font-style: normal; }
.form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; background: var(--bg); border-radius: 20px; padding: 36px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12.32px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-weight: 400; background: var(--white); color: var(--ink); }
.field textarea { padding: 12px 14px; resize: vertical; }
.form .btn { align-self: flex-start; padding: 0 32px; }
.form__msg { font-size: 13.2px; font-weight: 600; color: var(--accent-dark); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.footer { background: var(--black); color: var(--grey-light); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 12.32px; padding-top: 40px; padding-bottom: 40px; }
.footer__logo { font-family: 'Outfit', var(--font-display); font-weight: 800; font-size: 26.4px; color: var(--white); letter-spacing: -.03em; }
.footer__logo span { color: var(--accent); }
.footer__logo small { font-family: 'Outfit', var(--font-body); font-weight: 400; font-size: 12.32px; letter-spacing: .18em; color: var(--grey-light); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--grey-light); }
.footer a:hover { color: var(--white); }

/* Botón volver arriba */
.totop { position: absolute; right: 32px; bottom: 24px; width: 52px; height: 52px; border-radius: 14px; background: var(--black); border: 1.5px solid #3A3A3A; display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 2; transition: border-color .15s, transform .15s; }
.totop:hover { border-color: var(--accent); transform: translateY(-2px); }
.totop svg { width: 30px; height: 30px; }

/* Móvil */
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .logo { font-size: 54.56px; padding-top: 40px; }
  .block, .about__inner, .contact__inner { padding-top: 72px; padding-bottom: 72px; }
  .hero__inner { padding-bottom: 72px; }
  .form { padding: 24px; }
  .totop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ENCIENDE TU IDEA: fondo blanco, «Enciende tu» en negro e «idea» en fucsia profundo (color de marca sobre claro) */
.spark { background: var(--white); text-align: center; padding: 40px 0 44px; }
.spark__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.67rem, 4.75vw, 3.74rem); line-height: 1; letter-spacing: -.03em; color: var(--negro); padding-top: .3em; }
.spark__idea { color: var(--fucsia-profundo); }
.spark__i { position: relative; display: inline-block; }
.spark__rays { position: absolute; top: -.27em; left: 50%; transform: translateX(-50%); width: .36em; height: .25em; overflow: visible; }

/* «idea» como un neón que falla: parpadea varias veces y se queda encendida.
   Se activa cuando la sección entra en pantalla (script.js) y se repite al pasar el ratón. */
.spark__idea { display: inline-block; }
.spark.is-on .spark__idea { animation: neon-fallo 5s linear infinite; }
.spark__idea.is-replay { animation: neon-fallo 5s linear infinite; }
/* Ciclo de 5 s: ~1,8 s de fallos y el resto encendida y nítida (sin sombra) */
@keyframes neon-fallo {
  0%   { opacity: 1; }
  3%   { opacity: .15; }
  5%   { opacity: 1; }
  8%   { opacity: .2; }
  10%  { opacity: 1; }
  18%  { opacity: 1; }
  19%  { opacity: .15; }
  23%  { opacity: .15; }
  24%  { opacity: 1; }
  29%  { opacity: .35; }
  31%  { opacity: 1; }
  33%  { opacity: .4; }
  35%  { opacity: 1; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .spark.is-on .spark__idea, .spark__idea.is-replay { animation: none; }
}

/* INTRO: diseño editorial sobrio (título a la izquierda, tres bloques numerados a la derecha) */
.about-intro { background: var(--white); }
.about-intro__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding-top: 40px; padding-bottom: 96px; }
.about-intro__head { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 32px; }
.about-intro__lead { color: var(--grey); font-size: 15.84px; line-height: 1.6; max-width: 26rem; }
.about-intro__rows { border-top: 1px solid var(--ink); }
.about-intro__row { padding: 36px 0; border-bottom: 1px solid var(--border); }
.about-intro__n { font-family: var(--font-display); font-size: 13.2px; font-weight: 600; color: var(--fucsia-profundo); padding-top: 5px; letter-spacing: .04em; }
.about-intro__row h3 { font-family: var(--font-display); font-size: clamp(1.54rem, 2.29vw, 1.98rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.about-intro__row p { color: var(--grey); line-height: 1.65; }
.about-intro__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.about-intro__list li { color: var(--grey); line-height: 1.55; padding: 12px 0 12px 22px; border-top: 1px solid var(--border); position: relative; }
.about-intro__list li:first-child { border-top: 0; padding-top: 2px; }
.about-intro__list li::before { content: ""; position: absolute; left: 0; top: calc(12px + .775em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--fucsia-profundo); }
.about-intro__list li:first-child::before { top: calc(2px + .775em - 4px); }
.about-intro__list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .about-intro__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
  .about-intro__head { position: static; }
}

/* «Céntrate en aportar valor»: misma sección blanca y efecto neón que «Todo comienza con una idea» */
.spark__word { position: relative; }
.spark__l { position: relative; display: inline-block; }
.spark__rays--word { top: -.2em; width: .698em; height: .229em; max-width: none; pointer-events: none; } /* mismos destellos que el logo */

/* Formulario de contacto como conversación con un asistente de IA */
.aiform { flex: 1 1 480px; min-width: 0; background: #000000; color: var(--white); border-radius: 24px; padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--line-dark); box-shadow: none; position: relative; }
.aiform::before { content: none; } /* fondo negro neutro, sin brillos fucsia */
.aiform__bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-dark); }
.aiform__avatar { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--fucsia); background: rgba(0,189,224,.12); border: 1px solid rgba(0,189,224,.4); }
.aiform__avatar svg { width: 22px; height: 22px; }
.aiform__who { display: flex; flex-direction: column; line-height: 1.25; }
.aiform__who strong { font-family: var(--font-display); font-size: 14.08px; }
.aiform__status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.44px; color: var(--grey-light); }
.aiform__status i { width: 7px; height: 7px; border-radius: 50%; background: #2BD27B; box-shadow: 0 0 0 0 rgba(43,210,123,.6); animation: ai-ping 2s infinite; }
.aiform__typing { margin-left: auto; display: inline-flex; gap: 4px; padding: 8px 10px; border-radius: 999px; background: #16161B; }
.aiform__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fucsia); opacity: .3; animation: ai-dot 1.2s infinite; }
.aiform__typing i:nth-child(2) { animation-delay: .2s; } .aiform__typing i:nth-child(3) { animation-delay: .4s; }
.aiform__chat { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.aiform__bot { align-self: flex-start; max-width: 88%; background: #1B1B21; border: 1px solid var(--line-dark); padding: 12px 16px; border-radius: 4px 16px 16px 16px; color: #E4E4E7; font-size: 13.2px; line-height: 1.5; }
.aiform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.aiform__q { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.aiform__ask { font-size: 11.44px; font-weight: 600; color: var(--grey-light); padding: 0; }
.aiform__ask::before { content: "› "; color: var(--fucsia); font-weight: 700; }
.aiform input[type=text], .aiform input[type=email], .aiform textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid #2E2E34; background: #121216; color: var(--white); font: inherit; font-size: 13.2px; transition: border-color .2s, box-shadow .2s; }
.aiform textarea { resize: vertical; min-height: 96px; }
.aiform input::placeholder, .aiform textarea::placeholder { color: #6B6B73; }
.aiform input:focus, .aiform textarea:focus { outline: none; border-color: var(--fucsia); box-shadow: 0 0 0 4px rgba(0,189,224,.18), 0 0 24px rgba(0,189,224,.25); }
.aiform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aiform__chip { cursor: pointer; }
.aiform__chip input { position: absolute; opacity: 0; pointer-events: none; }
.aiform__chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #2E2E34; font-size: 12.32px; color: var(--grey-light); transition: all .2s; }
.aiform__chip:hover span { border-color: rgba(0,189,224,.6); color: var(--white); }
.aiform__chip input:checked + span { background: var(--fucsia); border-color: var(--fucsia); color: var(--negro); font-weight: 600; }
.aiform__chip input:focus-visible + span { outline: 3px solid var(--fucsia); outline-offset: 2px; }
.aiform__sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.aiform__sugg-btn { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed rgba(0,189,224,.5); background: transparent; color: var(--fucsia); font: 500 13px var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.aiform__sugg-btn:hover { background: rgba(0,189,224,.12); color: var(--white); }
.aiform__send { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-top: 1px solid var(--line-dark); background: #0E0E12; }
.aiform__note { font-size: 11.44px; color: var(--grey-light); }
.aiform .aiform__btn { align-self: auto; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; }
.aiform__btn svg { width: 18px; height: 18px; transition: transform .2s; }
.aiform__btn:hover svg { transform: translateX(4px); }
.aiform .form__msg { padding: 0 24px; color: var(--fucsia); min-height: 0; }
.aiform .form__msg:not(:empty) { padding-bottom: 18px; }
/* entrada escalonada al llegar con el scroll */
.aiform.is-ready .aiform__chat > * { opacity: 0; transform: translateY(10px); }
.aiform.is-in .aiform__chat > * { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.aiform.is-in .aiform__chat > *:nth-child(2) { transition-delay: .15s; } .aiform.is-in .aiform__chat > *:nth-child(3) { transition-delay: .3s; }
.aiform.is-in .aiform__chat > *:nth-child(4) { transition-delay: .45s; } .aiform.is-in .aiform__chat > *:nth-child(5) { transition-delay: .6s; } .aiform.is-in .aiform__chat > *:nth-child(6) { transition-delay: .75s; }
@keyframes ai-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes ai-ping { 0% { box-shadow: 0 0 0 0 rgba(43,210,123,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(43,210,123,0); } }
@media (max-width: 600px) { .aiform__chat, .aiform__bar, .aiform__send { padding-left: 18px; padding-right: 18px; } .aiform { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .aiform__typing i, .aiform__status i { animation: none; } .aiform.is-ready .aiform__chat > * { opacity: 1; transform: none; } }

/* Chatbot de bienvenida (modo conversación del formulario) */
.aiform--chat .aiform__chat, .aiform--chat .aiform__btn, .aiform--chat .form__msg { display: none !important; }
.aichat__log { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 8px; height: 380px; overflow-y: auto; scroll-behavior: smooth; }
.aichat__msg { margin: 0; max-width: 82%; padding: 11px 15px; font-size: 13.2px; line-height: 1.5; animation: ai-in .3s ease both; }
.aichat__msg--bot { align-self: flex-start; background: #1B1B21; border: 1px solid var(--line-dark); color: #E4E4E7; border-radius: 4px 16px 16px 16px; }
.aichat__msg--bot:not(.aichat__typing) { white-space: pre-line; overflow-wrap: anywhere; }
.aichat__msg--user { align-self: flex-end; background: var(--fucsia); color: var(--negro); font-weight: 500; border-radius: 16px 4px 16px 16px; }
.aichat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.aichat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fucsia); opacity: .3; animation: ai-dot 1.2s infinite; }
.aichat__typing i:nth-child(2) { animation-delay: .2s; } .aichat__typing i:nth-child(3) { animation-delay: .4s; }
.aiform__typing { opacity: .35; transition: opacity .2s; } .aiform__typing.is-active { opacity: 1; }
.aiform__typing i { animation-play-state: paused; } .aiform__typing.is-active i { animation-play-state: running; }
.aichat__quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 6px 24px 14px; min-height: 8px; }
.aichat__chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(0,189,224,.6); background: transparent; color: var(--white); font: 500 14px var(--font-body); cursor: pointer; transition: background .2s, color .2s; animation: ai-in .3s ease both; }
.aichat__chip:hover, .aichat__chip:focus-visible { background: var(--fucsia); color: var(--negro); outline: none; }
.aichat__chip.is-idea { border-style: dashed; color: var(--fucsia); }
.aichat__chip.is-idea:hover { color: var(--negro); }
.aichat__chip.is-skip { border-color: #3A3A42; color: var(--grey-light); }
.aichat__composer { display: flex; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--line-dark); background: #0E0E12; }
.aichat__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #2E2E34; background: #121216; color: var(--white); font: inherit; font-size: 13.2px; transition: border-color .2s, box-shadow .2s; }
.aichat__input:focus { outline: none; border-color: var(--fucsia); box-shadow: 0 0 0 4px rgba(0,189,224,.18); }
.aichat__input::placeholder { color: #6B6B73; }
.aichat__send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--fucsia-profundo); color: var(--negro); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s; }
.aichat__send:hover { background: var(--fucsia); transform: translateX(2px); }
.aichat__send svg { width: 20px; height: 20px; }
.aichat__composer.is-off .aichat__input, .aichat__composer.is-off .aichat__send { opacity: .45; cursor: default; }
.aiform--chat .aiform__send { padding: 10px 24px 14px; border-top: 0; justify-content: center; }
@keyframes ai-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .aichat__log { height: 340px; padding-left: 16px; padding-right: 16px; } .aichat__quick, .aichat__composer { padding-left: 16px; padding-right: 16px; } }
@media (prefers-reduced-motion: reduce) { .aichat__msg, .aichat__chip { animation: none; } .aichat__typing i { animation: none; opacity: .8; } }

/* Datos fiscales y de contacto */
.contact__data a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact__data a:hover { color: var(--fucsia-profundo); border-bottom-color: var(--fucsia-profundo); }
.contact__company { font-weight: 700; letter-spacing: .02em; }
.contact__data .contact__web { color: var(--fucsia-profundo); }

/* PIE con mapa web */
.footer { border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.45fr); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.logo--footer { font-size: 45.76px; padding-top: 16px; text-decoration: none; align-self: flex-start; }
.footer__claim { color: var(--grey-light); font-size: 13.2px; line-height: 1.55; max-width: 18rem; }
.footer__title { font-size: 10.56px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fucsia); margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__address a { color: var(--grey-light); text-decoration: none; font-size: 13.2px; transition: color .2s; }
.footer__col a:hover, .footer__address a:hover { color: var(--white); }
.footer__address { font-style: normal; font-size: 12.32px; line-height: 1.75; color: var(--grey-light); }
.footer__address .nw { white-space: nowrap; }
.footer__company { color: var(--white); font-weight: 600; white-space: nowrap; }
.footer__address a { font-size: 12.32px; }
.footer__address strong { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line-dark); font-size: 11.44px; }
.footer__bottom .footer__nav a { text-decoration: none; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; } }

/* Datos de contacto con diseño: cabecera con razón social y CIF, filas con icono */
.cdata { margin-top: 8px; display: flex; flex-direction: column; border-top: 2px solid var(--negro); max-width: 30rem; font-style: normal; line-height: 1.5; }
.cdata__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cdata__company { font-family: var(--font-display); font-size: 14.96px; font-weight: 800; letter-spacing: .01em; }
.cdata__cif { font-size: 10.56px; font-weight: 600; letter-spacing: .1em; color: var(--fucsia-profundo); background: var(--fucsia-suave); padding: 5px 10px; border-radius: 999px; }
.cdata .cdata__row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: padding .25s ease; }
.cdata__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--fucsia-profundo); background: var(--fucsia-suave); transition: background .25s, color .25s; }
.cdata__icon svg { width: 20px; height: 20px; }
.cdata__txt { display: flex; flex-direction: column; font-size: 14.08px; }
.cdata__txt small { font-size: 9.68px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; }
.cdata__row--web .cdata__txt strong { color: var(--fucsia-profundo); }
.cdata__go { width: 18px; height: 18px; margin-left: auto; color: var(--fucsia-profundo); opacity: 0; transform: translate(-6px, 6px); transition: opacity .25s, transform .25s; }
a.cdata__row:hover { padding-left: 6px; border-bottom-color: var(--fucsia-profundo); }
a.cdata__row:hover .cdata__icon { background: var(--fucsia-profundo); color: var(--white); }
a.cdata__row:hover .cdata__go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cdata .cdata__row, .cdata__go, .cdata__icon { transition: none; } }

/* Red neuronal de la portada centrada en vertical en toda la franja negra (cabecera + portada) */
@media (min-width: 900px) {
  .hero__visual { align-self: stretch; align-items: center; margin-top: -64px; margin-bottom: -96px; }
  .hero__visual svg { transform: translateY(32px); } /* un poco más abajo que el centro exacto */
}

/* Caso práctico (ejemplo ilustrativo): problema, solución y resultado */
.cases__inner { display: grid; grid-template-columns: 1fr; align-items: start; gap: 36px; }
.cases__head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.cases__note { font-size: 12.32px; color: var(--grey); }
.cases__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: paso; }
.case { position: relative; background: var(--white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.case:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--fucsia-profundo); color: var(--white); font-size: 13.2px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.case__k { font-size: 10.56px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fucsia-profundo); }
.case__big { font-family: var(--font-display); font-size: clamp(1.58rem, 2.64vw, 2.29rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.case__t { color: var(--grey); line-height: 1.55; font-size: 13.2px; }
.case--result { background: var(--negro); }
.case--result .case__k { color: var(--fucsia); }
.case--result .case__big { color: var(--fucsia); }
.case--result .case__t { color: #D4D4D8; }
.cases__btn { justify-self: start; }
@media (max-width: 860px) {
  .cases__steps { grid-template-columns: 1fr; }
  .case:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%); }
}

/* Nosotros sin fotos ni nombres: cuatro áreas de experiencia */
.team--areas { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; }
.team--areas .team__tile { min-height: 220px; }
.team__tile--stat { background: var(--white); color: var(--negro); }
.team__tile--stat .team__area { color: var(--fucsia-profundo); }
.team__tile--stat .team__bio { color: var(--grey); }
@media (max-width: 900px) { .team--areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team--areas { grid-template-columns: 1fr; } .team--areas .team__tile { min-height: 0; } }

/* Logo «ideIA» con el «ON» en superíndice, todo en cian en claro #00BDE0 */
.logo__ia { padding-bottom: 0; }
.logo__i, .logo__a { color: var(--fucsia); }
.logo__sup { display: inline-block; height: .7em; width: auto; max-width: none; vertical-align: baseline; margin-left: .05em; overflow: visible; color: var(--fucsia); }

/* La palabra «idea» en toda la web: destellos del logo sobre la «i» y efecto de neón que falla
   (parpadea al entrar en pantalla y se repite al pasar el ratón). script.js la marca automáticamente. */
.idea-w { display: inline-block; color: var(--fucsia); }
.idea-w__i { position: relative; display: inline-block; }
.idea-w__rays { position: absolute; top: -.135em; left: 50%; transform: translateX(-50%); width: .698em; height: .229em; max-width: none; overflow: visible; pointer-events: none; }
.idea-w.is-on, .idea-w.is-replay { animation: neon-fallo 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .idea-w.is-on, .idea-w.is-replay { animation: none; } }
input .idea-w, textarea .idea-w { display: inline; }

/* Portada a pantalla completa: cabecera + portada ocupan exactamente el alto de la ventana.
   script.js calcula --hero-h (alto disponible) y --hs (escala del contenido según la resolución). */
.hero--fit { height: var(--hero-h); }
html.hero-fit .header .container { max-width: calc(var(--max) * var(--hs)); }
.hero--fit .hero__inner { height: 100%; flex-wrap: nowrap; align-items: center; padding-top: 0; padding-bottom: calc(var(--hero-pb, 0px)); gap: calc(56px * var(--hs)); }
.hero--fit .hero__text { gap: calc(28px * var(--hs)); }
.hero--fit .logo { font-size: calc(80px * var(--hs)); padding-top: calc(24px * var(--hs)); }
.hero--fit h1 { font-size: calc(clamp(1.76rem, 3vw, 2.55rem) * var(--hs)); }
.hero--fit .hero__lead { font-size: calc(17px * var(--hs)); max-width: calc(34rem * var(--hs)); }
.hero--fit .hero__cta { gap: calc(14px * var(--hs)); margin-top: calc(8px * var(--hs)); }
.hero--fit .hero__cta .btn { min-height: calc(46px * var(--hs)); padding: 0 calc(24px * var(--hs)); font-size: calc(14px * var(--hs)); }
.hero--fit .hero__visual svg { max-width: min(calc(440px * var(--hs)), calc(var(--vh-px) * .66 * 500 / 420)); }
.hero--fit .container { max-width: calc(var(--max) * var(--hs)); }
.hero--fit .hero__text { flex-basis: calc(460px * var(--hs)); }
.hero--fit .hero__visual { flex-basis: calc(380px * var(--hs)); }

/* BARRA FIJA AL HACER SCROLL: logo + menú siempre a mano */
.stickybar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(10,10,12,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,189,224,.18); box-shadow: 0 8px 30px -12px rgba(0,0,0,.6); transform: translateY(-100%); opacity: 0; transition: transform .35s ease, opacity .35s ease; --accent: var(--fucsia); color: var(--white); }
.stickybar.is-on { transform: none; opacity: 1; }
.stickybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo--bar { font-size: 34px; padding-top: 6px; text-decoration: none; align-self: center; }
.stickybar .nav { flex-wrap: nowrap; }
html { scroll-padding-top: 72px; }
@media (max-width: 760px) { .stickybar .nav a:not(.btn) { display: none; } .stickybar__inner { height: 56px; } .logo--bar { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .stickybar { transition: none; } }
