/* =========================================================
   GRUPO COMA — Landing · Esquema "Azul protagonista"
   Paleta y tipografía del Manual de Marca 2026
   ========================================================= */

/* ---------- Tipografías de marca ---------- */
@font-face { font-family: "Parabolica"; src: url("assets/fonts/Parabolica-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Parabolica"; src: url("assets/fonts/Parabolica-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Parabolica"; src: url("assets/fonts/Parabolica-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Parabolica"; src: url("assets/fonts/Parabolica-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "ParabolicaText"; src: url("assets/fonts/ParabolicaText-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ParabolicaText"; src: url("assets/fonts/ParabolicaText-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EditorsNote"; src: url("assets/fonts/EditorsNote-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EditorsNote"; src: url("assets/fonts/EditorsNote-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EditorsNote"; src: url("assets/fonts/EditorsNote-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EditorsNote"; src: url("assets/fonts/EditorsNote-MediumItalic.otf") format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --nucleo:#0738B1; --criterio:#001A82; --eco:#4C5CFF; --accion:#FF4000; --disrupcion:#8527E3;
  --foco:#E0E327; --idea:#EEFFC8; --bruma:#DBDEFF; --aire:#EDEEF8; --soporte:#E5E4DC; --tinta:#0E0F19;

  --font-sans: "ParabolicaText", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Parabolica", var(--font-sans);
  --font-serif: "EditorsNote", Georgia, serif;

  --wrap: 1160px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px -26px rgba(0,10,60,.6);
  --shadow-soft: 0 12px 34px -20px rgba(0,10,60,.5);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: #fff;
  background: var(--nucleo);
  font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--accion); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 100px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
/* Primario — naranja acción (estilo A: con ícono flotante) */
.btn--solid { background: var(--accion); color: #fff; box-shadow: 0 16px 34px -14px rgba(255,64,0,.7); padding-right: 30px; }
.btn--solid:hover { background: #e23800; transform: translateY(-2px); }
.btn--badge { padding-right: 26px; }
.btn__badge {
  position: absolute; right: -12px; top: -12px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--foco); color: var(--tinta); display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.4); animation: bob 2.2s ease-in-out infinite;
}
.btn__badge svg { width: 17px; height: 17px; }
/* Secundario — contorno adaptable (estilo B: flecha desliza) */
.btn--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.6px currentColor; transform: translateY(-2px); }
.btn--arrow .btn__arrow { transition: transform .3s var(--ease); }
.btn--arrow:hover .btn__arrow { transform: translateX(5px); }
.btn__arrow { width: 18px; height: 18px; }
/* Pill nav */
.btn--pill { padding: 10px 20px; background: var(--accion); color: #fff; font-size: .9rem; }
.btn--pill:hover { background: #e23800; transform: translateY(-2px); }
.btn--block { width: 100%; }
/* Circular solo-ícono (estilo C) */
.btn--icon { width: 50px; height: 50px; padding: 0; border-radius: 50%; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,56,177,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 30px -16px rgba(0,0,0,.5); background: rgba(3,30,110,.92); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 88px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 66px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.footer .brand__logo { height: 84px; }
@media (max-width: 560px) { .brand__logo { height: 52px; } }
/* Instagram en nav */
.nav__ig { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); transition: transform .3s var(--ease), background .25s, border-color .25s; }
.nav__ig svg { width: 20px; height: 20px; }
.nav__ig:hover { transform: translateY(-2px); background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }
/* Instagram en footer */
.footer__ig { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 9px 18px; border-radius: 100px; transition: background .25s, transform .25s, border-color .25s; }
.footer__ig svg { width: 19px; height: 19px; }
.footer__ig:hover { transform: translateY(-2px); background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; color: #fff; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 500; color: rgba(255,255,255,.82); font-size: .96rem; position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--foco); border-radius: 2px; transition: width .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; margin-left: auto; border-radius: 12px; }
.nav__toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--criterio); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 6px; font-weight: 500; border-radius: 12px; color: rgba(255,255,255,.9); }
.mobile-menu a:not(.btn):hover { background: rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 108px) 0 0; overflow: hidden; background: radial-gradient(120% 90% at 80% -10%, #0d47d6 0%, var(--nucleo) 45%, var(--criterio) 100%); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--1 { width: 460px; height: 460px; background: var(--eco); top: -120px; right: -60px; opacity: .55; }
.blob--2 { width: 380px; height: 380px; background: var(--disrupcion); bottom: -120px; left: -120px; opacity: .4; }
.giant-comma { position: absolute; right: -2vw; top: 6%; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 46vw; line-height: .6; color: rgba(255,255,255,.06); user-select: none; }
.sticker { position: absolute; width: clamp(64px, 8vw, 104px); filter: drop-shadow(0 14px 26px rgba(0,0,0,.3)); animation: float 6s ease-in-out infinite; }
.sticker--1 { top: 15%; left: 5%; transform: rotate(-8deg); }
.sticker--2 { top: 24%; right: 6%; transform: rotate(9deg); animation-delay: .8s; }
.sticker--3 { bottom: 22%; left: 10%; transform: rotate(6deg); animation-delay: 1.6s; width: clamp(56px, 7vw, 86px); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 900px) { .sticker { display: none; } }

/* Objetos 3D flotando (estilo IG) */
.orb { position: absolute; z-index: 0; line-height: 1; font-size: clamp(30px, 4.4vw, 56px); filter: drop-shadow(0 14px 20px rgba(0,0,0,.35)); animation: floaty 7s ease-in-out infinite; will-change: transform; user-select: none; }
.orb--1 { top: 13%; left: 7%; animation-delay: 0s; }
.orb--2 { top: 18%; right: 9%; animation-delay: .5s; }
.orb--3 { top: 46%; left: 4%; animation-delay: 1s; font-size: clamp(26px, 3.4vw, 46px); }
.orb--4 { bottom: 24%; right: 6%; animation-delay: 1.6s; }
.orb--5 { top: 64%; left: 13%; animation-delay: 2.2s; font-size: clamp(24px, 3vw, 42px); }
.orb--6 { top: 28%; right: 24%; animation-delay: 2.8s; font-size: clamp(22px, 2.8vw, 40px); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@media (max-width: 720px) { .orb--3, .orb--5, .orb--6 { display: none; } }

.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); padding: 8px 16px; border-radius: 100px; }
.hero__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(2.4rem, 6.4vw, 4.7rem); margin-top: 24px; color: #fff; }
.hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--foco); }
.hero__title .hl { position: relative; white-space: nowrap; color: var(--tinta); }
.hero__title .hl::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: .06em; height: .34em; z-index: -1; background: var(--foco); border-radius: 100px; transform: rotate(-1.2deg); }
.hero__lead { font-size: clamp(1.02rem, 2vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 640px; margin: 24px auto 0; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 44px; color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll svg { animation: bounce 1.8s ease-in-out infinite; }
.hero__scroll:hover { color: var(--foco); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Marquee — banda de contraste (movimiento por JS) */
.marquee { margin-top: clamp(46px, 7vw, 78px); overflow: hidden; background: var(--foco); border-block: 2px solid var(--nucleo); position: relative; z-index: 1; }
.marquee__track { display: flex; align-items: center; gap: 54px; white-space: nowrap; width: max-content; padding: 16px 0; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; color: var(--tinta); }
.marquee__track .dot { display: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(50px, 7vw, 90px) 0; position: relative; }
.section--deep { background: var(--criterio); }
.section--light { background: var(--aire); color: var(--tinta); }
.section__head { max-width: 720px; margin: 0 auto clamp(44px, 6vw, 66px); text-align: center; }
.tag { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; }
.section--light .tag { color: var(--nucleo); background: #fff; border-color: var(--bruma); }
.section__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(1.8rem, 4.2vw, 3rem); color: #fff; }
.section--light .section__title { color: var(--tinta); }
.section__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--foco); }
.section--light .section__title em { color: var(--nucleo); }
.section__sub { color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.6vw, 1.14rem); margin-top: 18px; }
.section--light .section__sub { color: #55586b; }
.section__sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { position: relative; overflow: hidden; background: #fff; color: var(--tinta); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.value::before { content: ""; position: absolute; top: -55px; right: -55px; width: 140px; height: 140px; border-radius: 50%; background: var(--vc, var(--eco)); opacity: .1; transition: transform .5s var(--ease); }
.value:hover { transform: translateY(-8px); box-shadow: 0 36px 64px -28px rgba(0,10,60,.5); }
.value:hover::before { transform: scale(1.6); }
.value__badge { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--vc, var(--eco)); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin-bottom: 20px; box-shadow: 0 12px 22px -8px var(--vc, var(--eco)); animation: hop 3.2s ease-in-out infinite; }
.value:hover .value__badge { animation: spin .7s var(--ease); }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.value h3 { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.34rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.value p { position: relative; z-index: 1; color: #55586b; }

/* ---------- Stats (azul limpio) ---------- */
.stats { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 70px) 0;
  background: linear-gradient(135deg, var(--criterio) 0%, var(--nucleo) 100%); }
.stats::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 90% at 80% 10%, rgba(76,92,255,.4), transparent 60%); }
.stats > .wrap { position: relative; z-index: 1; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; position: relative; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 3.8rem); line-height: 1; letter-spacing: -.03em; display: block; color: var(--foco); text-shadow: 0 10px 26px rgba(0,0,0,.22); }
.stat p { margin-top: 8px; color: rgba(255,255,255,.82); font-weight: 500; font-size: .96rem; }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; } }
@media (max-width: 400px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid rgba(14,15,25,.06); border-radius: var(--radius); padding: 32px 26px; position: relative; overflow: hidden; color: var(--tinta); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; background: var(--idea); border-radius: 50%; opacity: 0; transition: opacity .4s var(--ease); z-index: 0; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service:hover::before { opacity: .6; }
.service > * { position: relative; z-index: 1; }
.service__icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--nucleo); color: #fff; border-radius: 16px; margin-bottom: 20px; }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.service p { color: #55586b; font-size: .96rem; }
/* Diseño detalle */
.design-detail { margin-top: 26px; background: var(--nucleo); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.design-detail h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; }
.design-detail p { color: rgba(255,255,255,.82); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 9px 16px; border-radius: 100px; font-size: .92rem; font-weight: 500; transition: background .25s, transform .25s, color .25s; }
.chips li:hover { background: var(--foco); color: var(--tinta); transform: translateY(-2px); }

.section__head--tight { margin-bottom: clamp(28px, 4vw, 40px); }
.stats__foot { text-align: center; max-width: 780px; margin: clamp(30px,4vw,42px) auto 0; color: rgba(255,255,255,.7); font-size: .98rem; }

/* ---------- Servicios (tarjetas flip) ---------- */
.svcs__hint { text-align: center; margin: -12px auto clamp(24px, 3vw, 36px); color: #55586b; font-weight: 500; font-size: .96rem; }
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { --c: var(--nucleo); position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); cursor: pointer; }
.svc__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s var(--ease); }
.svc:hover .svc__flip, .svc:focus-visible .svc__flip, .svc.is-flipped .svc__flip { transform: rotateY(180deg); }
.svc:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--foco); }
.svc__front, .svc__back { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: var(--shadow-soft); }
.svc__front { background: #fff; color: var(--tinta); display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid rgba(14,15,25,.07); }
.svc__ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; border-radius: 14px; transition: transform .4s var(--ease); box-shadow: 0 10px 20px -8px var(--c); }
.svc__ico svg { width: 26px; height: 26px; }
.svc:hover .svc__ico { transform: rotate(-8deg) scale(1.08); }
.svc__front-b { display: flex; flex-direction: column; gap: 8px; }
.svc h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.svc__front h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.1; }
.svc__tag { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; opacity: .95; }
.svc__hint { margin-top: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.svc__back { transform: rotateY(180deg); background: var(--c); color: #fff; }
.svc__back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.svc__placa { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 22px; }
.svc__placa-tag { font-family: var(--font-serif); font-style: italic; font-size: .98rem; opacity: .95; }
.svc__pills { display: flex; flex-wrap: wrap; gap: 7px; }
.svc__pills li { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 5px 11px; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.svc__placa-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.05; letter-spacing: -.02em; }
/* colores por servicio */
.svc--redes { --c: var(--disrupcion); }
.svc--diseno { --c: var(--eco); }
.svc--audio { --c: var(--accion); }
.svc--paid { --c: var(--nucleo); }
.svc--web { --c: var(--criterio); }
.svc--ecom { --c: #17914e; }
.svc--mail { --c: #b9a600; }
/* card CTA (sin flip) */
.svc--cta { --c: var(--accion); aspect-ratio: 4 / 5; cursor: default; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 26px; border-radius: var(--radius); background: linear-gradient(150deg, #ff5a1f, var(--accion)); color: #fff; box-shadow: var(--shadow-soft); }
.svc--cta h3 { font-size: 1.3rem; }
.svc--cta .svc__tag { margin-bottom: 20px; }
.svc--cta .btn { align-self: flex-start; }
.svc--cta .btn--solid { background: #fff; color: var(--accion); box-shadow: 0 12px 26px -12px rgba(0,0,0,.4); }
.svc--cta .btn--solid:hover { background: #fff; transform: translateY(-2px); }
.svc--cta .btn__badge { background: var(--nucleo); color: #fff; }
@media (max-width: 980px) { .svcs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svcs { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* ---------- Estados (Proceso) ---------- */
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.state { border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 30px 26px; background: rgba(255,255,255,.05); transition: transform .35s var(--ease), background .35s; }
.state:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.state__icon { width: 78px; height: 78px; margin-bottom: 18px; transition: transform .45s var(--ease); }
.state:hover .state__icon { transform: scale(1.12) rotate(4deg); }
.state__step { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tinta); background: var(--foco); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.state h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.7rem; margin-bottom: 10px; }
.state p { color: rgba(255,255,255,.72); font-size: .96rem; }

/* ---------- Carrusel (portfolio + testimonios) ---------- */
.carousel { position: relative; margin-top: 8px; }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px clamp(16px, 5vw, 40px) 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; user-select: none; touch-action: pan-y; }
.carousel__track:active { cursor: grabbing; }
.carousel__track img { pointer-events: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__nav { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.cbtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; transition: background .25s, transform .25s; }
.cbtn:hover { background: var(--foco); color: var(--tinta); transform: translateY(-2px); }
.section--light .cbtn { background: #fff; border-color: var(--bruma); color: var(--nucleo); box-shadow: var(--shadow-soft); }
.section--light .cbtn:hover { background: var(--nucleo); color: #fff; }
.cbtn svg { width: 22px; height: 22px; }
/* Work cards */
.work { scroll-snap-align: start; flex: 0 0 clamp(230px, 30vw, 290px); aspect-ratio: 4/5; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.work::before { content: "@grupo.coma"; position: absolute; top: 18px; left: 22px; font-weight: 500; font-size: .8rem; opacity: .9; }
.work__tag { align-self: flex-start; margin-top: auto; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); padding: 5px 13px; border-radius: 100px; font-size: .8rem; font-weight: 600; }
.work h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: 10px; letter-spacing: -.01em; }
.work--g1 { background: linear-gradient(160deg, var(--nucleo), var(--eco)); }
.work--g2 { background: linear-gradient(160deg, var(--accion), var(--disrupcion)); }
.work--g3 { background: linear-gradient(160deg, var(--disrupcion), var(--nucleo)); }
.work--g4 { background: linear-gradient(160deg, var(--criterio), var(--eco)); }
.work--g5 { background: linear-gradient(160deg, var(--eco), var(--disrupcion)); }
/* Quote cards */
.quote { scroll-snap-align: start; flex: 0 0 clamp(280px, 42vw, 420px); background: #fff; color: var(--tinta); border-radius: 24px; padding: 34px 32px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.quote__stars { color: var(--accion); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.quote__text { font-family: var(--font-serif); font-style: italic; font-size: 1.16rem; line-height: 1.5; }
.quote__by { margin-top: 20px; font-weight: 600; }
.quote__by span { display: block; color: #55586b; font-weight: 400; font-size: .9rem; font-family: var(--font-sans); font-style: normal; }
.carousel-note { text-align: center; margin-top: 22px; font-size: .95rem; color: rgba(255,255,255,.72); }
.section--light .carousel-note { color: #55586b; }
.carousel-note b { color: inherit; }

/* Testimonios estilo chat (con avatar y profundidad) */
.chat { scroll-snap-align: start; flex: 0 0 clamp(280px, 40vw, 380px); color: var(--tinta); border-radius: 22px 22px 22px 6px; padding: 22px 24px 20px; display: flex; flex-direction: column; position: relative;
  background: linear-gradient(180deg, #ffffff, #eef1fb);
  border: 1px solid rgba(14,15,25,.05);
  box-shadow: 0 22px 44px -24px rgba(0,10,60,.55), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.chat:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 32px 62px -26px rgba(0,10,60,.6); }
.chat__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chat__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--nucleo)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; box-shadow: 0 8px 16px -5px rgba(0,10,60,.4); }
.chat__id { display: flex; flex-direction: column; line-height: 1.25; }
.chat__brand { font-family: var(--font-display); font-weight: 700; color: var(--c, var(--nucleo)); }
.chat__status { font-size: .76rem; color: #8a8fa3; display: inline-flex; align-items: center; gap: 6px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
.chat__msg { font-size: 1.02rem; line-height: 1.5; }
.chat__time { align-self: flex-end; margin-top: 14px; font-size: .78rem; color: #25a05a; font-weight: 500; }

/* ---------- Muro de marcas ---------- */
.logos { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; overflow: hidden; }
.logos__row { overflow: hidden; }
.logos__track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.logos__track span {
  flex: none; display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 100px;
  background: #fff; border: 1px solid rgba(14,15,25,.1); color: var(--tinta);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

/* ---------- Por qué COMA ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.why__intro { text-align: left; }
.why__intro .section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.why__list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why__list li { display: flex; align-items: flex-start; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px 20px; font-weight: 500; font-size: 1.04rem; transition: background .25s, transform .25s; }
.why__list li:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.why__list li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--foco); color: var(--tinta); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__list li { font-size: .98rem; } }

/* ---------- Claim (azul limpio y moderno) ---------- */
.claim { color: #fff; padding: clamp(70px, 11vw, 128px) 0; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--criterio) 0%, var(--nucleo) 55%, #0d47d6 100%); }
.claim::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 25% 15%, rgba(255,255,255,.14), transparent 60%),
              radial-gradient(50% 70% at 85% 90%, rgba(76,92,255,.35), transparent 60%); }
.claim__inner { position: relative; z-index: 1; max-width: 860px; margin-inline: auto; }
.claim__quote { font-family: var(--font-serif); font-size: 6rem; line-height: .4; color: var(--foco); display: block; margin-bottom: 6px; }
.claim__text { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(1.7rem, 4.4vw, 3.1rem); }
.claim__text em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--foco); }
.claim__by { margin-top: 26px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.8); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact__intro .section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.contact__intro .tag { margin-bottom: 18px; }
.contact__direct { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.contact__line { font-weight: 500; color: var(--tinta); display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.contact__line span { color: var(--nucleo); }
.contact__line:hover { color: var(--nucleo); }
.contact__people { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.person { background: #fff; border: 1px solid rgba(14,15,25,.08); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--nucleo); }
.person strong { font-weight: 600; }
.person span { color: #55586b; font-size: .88rem; }
.contact__form { background: #fff; border: 1px solid rgba(14,15,25,.08); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-soft); color: var(--tinta); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--tinta); background: var(--aire); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 16px; transition: border-color .25s, background .25s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--nucleo); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0b5; }
.form__note { margin-top: 14px; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form__note.ok { color: #157a3e; }
.form__note.err { color: var(--accion); }

/* ---------- WhatsApp flotante ---------- */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); transition: transform .25s var(--ease); }
.wa-fab:hover { transform: scale(1.08) translateY(-2px); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #05236a 0%, var(--criterio) 100%); color: #fff; padding: clamp(50px, 7vw, 78px) 0 40px; }
.footer__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer__claim { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: rgba(255,255,255,.85); max-width: 460px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: rgba(255,255,255,.7); font-weight: 500; }
.footer__links a:hover { color: var(--foco); }
.footer__copy { color: rgba(255,255,255,.5); font-size: .88rem; }

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

/* Reveal por máscara (líneas que suben, estilo editorial) */
.mask-reveal { overflow: hidden; padding-bottom: .14em; }
.mask-reveal .mask-reveal__inner { display: inline-block; transform: translateY(118%); transition: transform 1.05s var(--ease); will-change: transform; }
.mask-reveal.is-visible .mask-reveal__inner { transform: translateY(0); }

/* Parallax */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services, .states { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .design-detail { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .services, .states { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .giant-comma { font-size: 70vw; top: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
