/* ============================================================
   SAMSA Consultores — Design System v2
   Paleta real de marca: teal + azul marino. Look fluido/orgánico.
   Sitio estático, sin build. Editá las variables en :root.
   ============================================================ */

:root {
  /* ---- Color de marca (hex oficiales del logo) ---- */
  --teal:       #5ABDB2;   /* teal del logo */
  --teal-light: #8AD6CC;
  --teal-deep:  #2E8C82;   /* para texto/hover, mejor contraste */
  --teal-50:    #ECF7F5;
  --navy:       #183356;   /* navy del logo */
  --navy-deep:  #0F2742;
  --navy-700:   #14304C;
  --blue:       #3C82BC;

  /* ---- Neutros ---- */
  --paper:    #FFFFFF;
  --mist:     #F1F7F7;   /* fondo alterno, teal muy lavado */
  --sand:     #F6F8F9;
  --ink:      #16242F;
  --ink-soft: #4C5C68;
  --line:     #E1EAEB;

  /* ---- Tipografía ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Fredoka", var(--font-body);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 40px;

  /* ---- Sombra ---- */
  --shadow-sm: 0 2px 12px rgba(20, 48, 75, .07);
  --shadow-md: 0 18px 44px rgba(20, 48, 75, .12);
  --shadow-lg: 0 34px 80px rgba(20, 48, 75, .20);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

/* ------------------------- Tipografía ------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.45rem); color: var(--ink-soft); line-height: 1.5; }
em { font-style: normal; }

/* --------------------------- Utilidades -------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.bg-mist  { background: var(--mist); }
.bg-sand  { background: var(--sand); }
.bg-teal  { background: var(--teal-50); }
.bg-navy  { background: var(--navy-deep); color: #D5E2EC; }
.bg-navy h1,.bg-navy h2,.bg-navy h3 { color: #fff; }
.bg-navy p { color: #A9BCCB; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.relative { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.bg-navy .eyebrow { color: var(--teal-light); }

/* --------------------- Formas fluidas / decor -------------------- */
.blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; pointer-events: none; }
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave svg { width: 100%; height: 100%; display: block; }

/* ----------------------------- Botones --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: .98rem; padding: .95em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #06302C; box-shadow: 0 8px 20px rgba(47,178,166,.30); }
.btn--primary:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 12px 28px rgba(47,178,166,.38); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.bg-navy .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .ia .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.bg-navy .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .ia .btn--ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ------------------------------ Logo ----------------------------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; line-height: 1; }
.brand-logo { height: 45px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; }
.brand-word { font-family: var(--font-brand); font-weight: 600; font-size: 1.7rem; color: var(--navy); letter-spacing: -.01em; }
.brand-word em { color: var(--teal); font-style: normal; }
.bg-navy .brand-word, .site-footer .brand-word { color: #fff; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.brand-lockup .brand-tag { font-family: var(--font-body); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); font-weight: 500; }
.site-footer .brand-tag, .bg-navy .brand-tag { color: #8FA4B5; }

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .35s var(--ease), border-color .35s, transform .35s var(--ease);
  padding-block: 8px;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

/* EXPERIMENTO (home con video intro): el header arranca oculto para no tapar
   el video, y aparece apenas se empieza a scrollear (misma clase .scrolled
   que ya togglea main.js). En el resto de las páginas el header sigue fijo
   siempre visible — este bloque solo aplica con body.has-video-intro. */
body.has-video-intro .site-header { transform: translateY(-100%); }
body.has-video-intro .site-header.scrolled { transform: translateY(0); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--teal); border-radius: 2px; transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-platform { font-size: .94rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: .3em; }
.nav-platform:hover { color: var(--teal-deep); }
.nav-platform .ext { font-size: .85em; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: .3s var(--ease); border-radius: 2px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  transform: translateY(-100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; justify-content: center; gap: 1.3rem; padding: var(--gutter);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.mobile-menu a.btn, .mobile-menu a.nav-platform { font-family: var(--font-body); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ----------------------------- */
/* EXPERIMENTO: video de apertura full-bleed, a pantalla completa, primero
   que se ve al entrar — el header fijo flota encima (blur). */
.hero-intro { position: relative; height: 68svh; min-height: 380px; max-height: 760px; overflow: hidden; background: var(--navy-deep); }
.hero-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 80% -10%, #234d72 0%, var(--navy-deep) 55%);
  color: #fff; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(40px, 8vw, 90px);
}
.hero .blob-1 { width: 46vw; max-width: 560px; aspect-ratio: 1; right: -8vw; top: 4vw; background: radial-gradient(circle at 35% 30%, rgba(111,208,198,.55), rgba(47,178,166,.05) 65%); }
.hero .blob-2 { width: 30vw; max-width: 360px; aspect-ratio: 1; left: -8vw; bottom: -6vw; background: radial-gradient(circle, rgba(60,130,188,.40), transparent 65%); }
.hero .iso-watermark { position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); width: 44vw; max-width: 520px; opacity: .14; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero .eyebrow { color: var(--teal-light); }
.hero .lead { color: #B9CADA; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: #8FA4B5; }

/* Grilla de logos de clientes */
.clients-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); max-width: 1080px; margin-inline: auto; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: center; justify-items: center; }
.clients-grid .logo-cell { display: flex; align-items: center; justify-content: center; height: 52px; width: 100%; }
.clients-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.clients-grid img:hover { filter: none; opacity: 1; }
@media (max-width: 720px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 4vw, 3rem); margin-top: clamp(44px, 7vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.16); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat .num em { color: var(--teal-light); font-style: normal; }
.stat .label { font-size: .95rem; color: #93A8B9; margin-top: .5rem; }
.bg-mist .stat .num, .bg-sand .stat .num { color: var(--navy); }
.bg-mist .stat .num em { color: var(--teal-deep); }
.bg-mist .stat .label { color: var(--ink-soft); }
.bg-mist .stats, .bg-sand .stats { border-top-color: var(--line); }
@media (max-width: 640px){ .stats { grid-template-columns: 1fr; gap: 1.6rem; } }

/* --------------------- Encabezado de sección -------------------- */
.sec-head { max-width: 640px; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; }

/* ---------------------------- Servicios -------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2.4vw, 1.7rem); }
@media (max-width: 760px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3vw, 2.5rem); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--teal), var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-ico svg { width: 26px; height: 26px; }
.svc-card .idx { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.svc-card h3 { margin: .3rem 0 .5rem; }
.svc-card ul.bullets { margin-top: 1.2rem; display: grid; gap: .55rem; }
.svc-card ul.bullets li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink-soft); }
.svc-card ul.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* --------------------------- Señales (chips) --------------------- */
.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px){ .signals { grid-template-columns: 1fr; } }
.signal { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.signal:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.signal .q { font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: 1.08rem; margin: 0 0 .3rem; }
.signal p { margin: 0; font-size: .93rem; }
.signal .mk { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--teal-light); display: grid; place-items: center; font-family: var(--font-display); }

/* ------------------------ Filas con media ----------------------- */
.feature-row { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-row.rev { grid-template-columns: .98fr 1.02fr; }
@media (max-width: 880px){ .feature-row, .feature-row.rev { grid-template-columns: 1fr; } .feature-row .order-1 { order: -1; } }
.media {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3.3;
  background: linear-gradient(140deg, var(--navy) 0%, var(--teal-deep) 100%);
  box-shadow: var(--shadow-md); display: grid; place-items: end start;
}
.media.teal { background: linear-gradient(140deg, var(--teal) 0%, var(--blue) 100%); }
.media::after { content: ""; position: absolute; inset: 0; background: url(../img/isotipo-oficial.png) right -8% bottom -12% / 60% no-repeat; opacity: .16; }
.media .media-label { position: relative; z-index: 1; margin: 1.2rem; padding: .4rem .9rem; background: rgba(8,24,38,.45); color: #fff; border-radius: 999px; font-size: .78rem; letter-spacing: .03em; backdrop-filter: blur(4px); }
.media.tall { aspect-ratio: 3/4; }

/* ---------------------------- IA section ------------------------- */
.ia { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-deep), #0d2236); color: #cfe; }
.ia h2, .ia h3, .ia h4 { color: #fff; }
.ia .eyebrow { color: var(--teal-light); }
.ia p { color: #C7DAE2; }
.ia .blob-3 { width: 40vw; max-width: 480px; aspect-ratio: 1; left: 50%; top: -10vw; transform: translateX(-50%); background: radial-gradient(circle, rgba(47,178,166,.30), transparent 65%); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
@media (max-width: 820px){ .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.5rem; }
.flow-step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #06302C; display: grid; place-items: center; font-weight: 700; font-family: var(--font-brand); margin-bottom: 1rem; }
.flow-step h4 { color: #fff; font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .4rem; }
.flow-step p { color: #9FC0C9; font-size: .92rem; margin: 0; }
.ia-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* --------------------------- Productos --------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 760px){ .product-grid { grid-template-columns: 1fr; } }
.product { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product .media { border-radius: 0; aspect-ratio: 16/8; box-shadow: none; }
.product .p-body { padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.product .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-50); padding: .4em .9em; border-radius: 999px; }
.product .btn { margin-top: auto; align-self: flex-start; }

/* --------------------------- Clientes ---------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); opacity: .45; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* -------------------------- Testimonial -------------------------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.quote .mark { font-family: var(--font-display); font-size: 4rem; line-height: 0; color: var(--teal-light); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.3; color: #fff; margin: 1.5rem 0; font-weight: 400; }
.quote .who { color: var(--teal-light); font-weight: 600; }
.quote .role { color: #8FA4B5; font-size: .95rem; }

/* ------------------------------ Equipo --------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 980px){ .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px){ .team-grid { grid-template-columns: 1fr; } }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.member .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }
.member h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.member .role { font-size: .82rem; font-weight: 600; color: var(--teal-deep); margin-bottom: .6rem; }
.member p { font-size: .9rem; margin: 0; }

/* --------------------------- Equipo (flip) ------------------------ */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 980px){ .flip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px){ .flip-grid { grid-template-columns: 1fr; } }

.flip-card { perspective: 1800px; height: 360px; cursor: pointer; outline: none; }
.flip-card:focus-visible .flip-face { box-shadow: 0 0 0 3px var(--teal-50), 0 0 0 5px var(--teal); }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
/* Desktop/mouse: se da vuelta con hover. Touch/teclado: JS togglea .flipped (ver main.js) */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-inner, .flip-card:focus-visible .flip-inner { transform: rotateY(180deg); }
}

.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.flip-front { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.1rem 1.4rem 1.6rem; }
.flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.2rem; overflow-y: auto; }

.flip-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; box-shadow: 0 0 0 4px var(--teal-50); flex: 0 0 auto; }
.flip-front .avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .8rem; flex: 0 0 auto; }
.flip-front h3 { font-size: 1.08rem; margin-bottom: 0; }
.flip-front .role { font-size: .8rem; font-weight: 600; color: var(--teal-deep); margin-bottom: .5rem; }
.flip-front .summary { font-size: .84rem; color: var(--ink-soft); margin: 0; }

.flip-back p { font-size: .86rem; margin: 0 0 .7rem; }
.flip-back p:last-of-type { margin-bottom: 0; }
.flip-back-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); }
.flip-linkedin { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-50); color: var(--teal-deep); display: grid; place-items: center; transition: background .25s, color .25s; }
.flip-linkedin:hover { background: var(--teal); color: #06302C; }
.flip-linkedin svg { width: 17px; height: 17px; }

@media (max-width: 720px){ .flip-card { height: 400px; } }

/* ----------------------------- Podcast --------------------------- */
.episode { display: flex; gap: 1.4rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.episode:last-child { border-bottom: 0; }
.episode .play { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.05rem; transition: transform .25s var(--ease), background .25s; }
.episode:hover .play { background: var(--teal); transform: scale(1.06); }
.episode .meta h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.episode .meta p { margin: 0; font-size: .9rem; }

/* ------------------------------ Blog ----------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 860px){ .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .post-grid { grid-template-columns: 1fr; } }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post .thumb { aspect-ratio: 16/9; position: relative; background: linear-gradient(140deg, var(--navy), var(--teal-deep)); }
.post .thumb::after { content: ""; position: absolute; inset: 0; background: url(../img/isotipo-oficial.png) center/40% no-repeat; opacity: .18; }
.post .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post .cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.post h3 { font-size: 1.18rem; margin: 0; }
.post .more { margin-top: auto; font-weight: 600; color: var(--navy); font-size: .9rem; }

/* ------------------------------ CTA ------------------------------ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .blob-c { width: 50vw; max-width: 600px; aspect-ratio: 1; right: -12vw; top: -30%; background: radial-gradient(circle, rgba(47,178,166,.22), transparent 62%); }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
@media (max-width: 760px){ .cta-inner { grid-template-columns: 1fr; text-align: center; } .cta-inner .cta-actions { justify-content: center; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------- Formulario -------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font-family: inherit; font-size: 1rem; color: var(--ink); padding: .9em 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,178,166,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-deep); display: grid; place-items: center; }
.contact-info .ico svg { width: 20px; height: 20px; }
.contact-info strong { display: block; color: var(--ink); }
.contact-info a, .contact-info span { color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------ Footer --------------------------- */
.site-footer { background: var(--navy-deep); color: #9DB0C0; padding-block: clamp(56px, 8vw, 88px) 30px; position: relative; overflow: hidden; }
.site-footer p { color: #9DB0C0; }
.site-footer .blob-f { width: 40vw; max-width: 460px; aspect-ratio: 1; left: -10vw; bottom: -16vw; background: radial-gradient(circle, rgba(47,178,166,.14), transparent 65%); }
.footer-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.socials { display: flex; gap: .8rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s, transform .25s; }
.socials a:hover { background: var(--teal); border-color: var(--teal); color: #06302C; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .85rem; color: #6F8395; }

/* ------------------- Animaciones de aparición -------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------ Metodología / HOJEAR -------------------- */
.hojear-chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
@media (max-width: 980px){ .hojear-chain { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .hojear-chain { grid-template-columns: 1fr; } }
.hojear-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.15rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hojear-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.hojear-step .letter { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--teal-deep); line-height: 1; margin-bottom: .5rem; }
.hojear-step h4 { font-size: .92rem; margin: 0 0 .35rem; }
.hojear-step p { font-size: .82rem; margin: 0; }

.rr-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 760px){ .rr-layers { grid-template-columns: 1fr; } }
.rr-layer { background: var(--mist); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.rr-layer h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .4rem; font-size: 1.1rem; }
.rr-layer p { margin: 0; font-size: .9rem; }

.dim-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.dim-chip { background: var(--teal-50); color: var(--teal-deep); font-size: .82rem; font-weight: 600; padding: .5em 1.1em; border-radius: 999px; border: 1px solid rgba(47,178,166,.25); }

/* ---------------------------- Console mock ------------------------ */
/* Recreación fiel del diseño real de la consola (coaching-console) — paleta
   propia del producto, deliberadamente distinta de la del marketing site:
   navy #003159 / teal #51C4B6 / cream #EAE4DC / charcoal #383836 / amber #E8A63D. */
.console-shot { width: 100%; max-width: 460px; display: block; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }

.console-mock { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; font-family: "Inter", sans-serif; }
.console-mock .bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.console-mock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.console-mock .url { margin-left: .6rem; font-size: .76rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: .25em .8em; border-radius: 999px; }

.app-topbar { background: #fff; border-bottom: 1px solid #EAE4DC; padding: .9rem 1.3rem; }
.app-topbar .org { color: rgba(56,56,54,.4); font-size: .78rem; line-height: 1.2; }
.app-topbar .prog { color: #003159; font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-top: 1px; }

.app-body { padding: 1.2rem 1.3rem 1.4rem; }

.app-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.app-tab { padding: .4em 1em; border-radius: 10px; font-size: .78rem; font-weight: 600; background: #fff; color: rgba(56,56,54,.6); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.app-tab.active { background: #003159; color: #fff; }
.app-tab:not(.active):hover { background: #EAE4DC; }

/* Resumen general */
.app-hero { background: #003159; border-radius: 18px; padding: 1.1rem 1.2rem; display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.app-ring { flex: 0 0 auto; }
.app-stats { flex: 1; min-width: 260px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.app-stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: .6rem .7rem; }
.app-stat.full { grid-column: 1 / -1; }
.app-stat .k { color: rgba(255,255,255,.5); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.app-stat .v { color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.app-stat .v .of { color: rgba(255,255,255,.35); font-size: .76rem; font-weight: 400; margin-left: .2rem; }
.app-stat .bar-mini { margin-top: .5rem; height: 5px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.app-stat .bar-mini > span { display: block; height: 100%; background: #51C4B6; border-radius: 999px; }
.app-stat .procesos { display: flex; flex-wrap: nowrap; gap: .9rem; align-items: baseline; white-space: nowrap; }
.app-stat .procesos b { color: #fff; font-size: 1.05rem; font-weight: 700; }
.app-stat .procesos span.lab { color: rgba(255,255,255,.4); font-size: .62rem; margin-left: .2rem; }

.app-section-title { font-size: .72rem; font-weight: 700; color: rgba(56,56,54,.5); text-transform: uppercase; letter-spacing: .06em; margin: 1.3rem 0 .6rem; }
.app-table { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,49,89,.06); overflow: hidden; }
.app-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-bottom: 1px solid #EAE4DC; }
.app-row:last-child { border-bottom: 0; }
.app-row .av { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,49,89,.1); color: #003159; font-size: .68rem; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.app-row .nm { color: #003159; font-size: .82rem; font-weight: 500; width: 108px; flex: 0 0 auto; }
.app-row .prog-bar { flex: 1; height: 5px; background: #EAE4DC; border-radius: 999px; overflow: hidden; max-width: 90px; }
.app-row .prog-bar > span { display: block; height: 100%; background: #51C4B6; border-radius: 999px; }
.app-row .pct { font-size: .7rem; color: rgba(56,56,54,.4); width: 30px; }
.app-row .badge { margin-left: auto; font-size: .68rem; font-weight: 600; padding: .2em .6em; border-radius: 5px; }

/* Tablero cualitativo */
.tc-versionrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.tc-version-select { font-size: .8rem; color: rgba(56,56,54,.5); border: 1px solid #EAE4DC; border-radius: 8px; padding: .4em .8em; background: #fff; }
.tc-version-select b { color: #003159; font-weight: 600; }
.tc-version-meta { font-size: .72rem; color: rgba(56,56,54,.4); }

.tc-sintesis { background: #fff; border-left: 4px solid #E8A63D; border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.tc-sintesis-k { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #E8A63D; margin-bottom: .5rem; }
.tc-sintesis p { margin: 0; font-size: .84rem; color: #383836; line-height: 1.55; }

.tc-subtabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid #EAE4DC; margin-bottom: 1.1rem; }
.tc-subtab { padding: .55em .9em; font-size: .78rem; font-weight: 600; color: rgba(56,56,54,.5); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tc-subtab.active { color: #003159; border-bottom-color: #51C4B6; }

.tc-panel { background: #fff; border-radius: 12px; padding: 1.2rem; }
.tc-comp { margin-bottom: 1.1rem; }
.tc-comp:last-of-type { margin-bottom: .8rem; }
.tc-comp-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; margin-bottom: .35rem; }
.tc-comp-head span:first-child { color: #003159; font-weight: 500; }
.tc-comp-head span:last-child { font-size: .72rem; font-weight: 700; }
.tc-comp-bar { height: 6px; background: #EAE4DC; border-radius: 999px; overflow: hidden; }
.tc-comp-bar > span { display: block; height: 100%; border-radius: 999px; }
.tc-comp p { margin: .4rem 0 0; font-size: .74rem; color: rgba(56,56,54,.55); line-height: 1.4; }
.tc-comp-foot { font-size: .7rem; color: rgba(56,56,54,.4); margin: .3rem 0 0; }

/* --------------------------- Page hero --------------------------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% -20%, #234d72, var(--navy-deep) 60%); color: #fff; padding-top: clamp(140px, 18vw, 200px); padding-bottom: clamp(50px, 7vw, 90px); }
.page-hero .blob-1 { width: 38vw; max-width: 440px; aspect-ratio: 1; right: -6vw; top: -4vw; background: radial-gradient(circle at 35% 30%, rgba(111,208,198,.45), transparent 65%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero h1 em { color: var(--teal-light); font-style: normal; }
.page-hero .lead { color: #B9CADA; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #8FA4B5; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--teal-light); }

/* --------------------------- Post (artículo) --------------------------- */
.post-hero { padding-bottom: clamp(40px, 6vw, 64px); }
.post-hero-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .8rem; color: #B9CADA; }
.post-hero-meta .cat { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-light); font-size: .72rem; }
.post-hero-meta .dot { opacity: .5; }
.post-hero h1 { max-width: 22ch; }

.article-body { max-width: 700px; margin-inline: auto; }
.article-body p { margin: 0 0 1.3em; font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.article-body h2 { margin: 2.1em 0 .6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.article-body ul { margin: 0 0 1.4em; padding-left: 1.2em; display: grid; gap: .7em; }
.article-body li { line-height: 1.65; font-size: 1.05rem; }
.article-body strong { color: var(--navy); }
.article-body > p:first-of-type { font-size: 1.18rem; }

.article-cta { margin-top: 2.6em; padding: clamp(1.4rem, 3vw, 2rem); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-cta p { margin: 0 0 1.1rem; font-style: italic; color: var(--ink-soft); font-size: 1rem; }

.post-share { display: flex; align-items: center; gap: .8rem; margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.post-share span { font-size: .82rem; color: var(--ink-soft); }
