/* ============================================================
   NOSOTROS — Incrementa Group
   Pagina centrada en el fundador y CEO. Solo lo propio de esta pagina:
   variables, cabecera, pie y botones vienen de /landing/styles.css.
   ============================================================ */

/* ---------- Piezas comunes ---------- */
.ceo-eyebrow {
  font-family: var(--font-title);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-3);
}

/* El amarillo no se usa como color de texto: sobre fondo oscuro el rotulo va en
   blanco y lleva debajo una barra amarilla, que es solo adorno. */
.ceo-eyebrow::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: var(--sp-2);
  background: var(--c-accent);
}

/* En las cabeceras centradas la barra se centra bajo el rotulo. */
.ceo-head .ceo-eyebrow::after {
  margin-inline: auto;
}

/* Sobre fondo claro el rotulo pasa al azul de marca. */
.ceo-eyebrow--oscuro {
  color: var(--c-primary);
}

.ceo-head {
  max-width: 760px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}

.ceo-title {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-ink);
  text-wrap: balance;
}

.ceo-lead {
  margin-top: var(--sp-3);
  font-size: var(--t-base);
  color: var(--c-muted);
  line-height: 1.7;
}

.we-breadcrumb {
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-5);
}

.we-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.we-breadcrumb a:hover {
  color: #fff;
}

/* ---------- 1. PORTADA ---------- */
.ceo-hero {
  position: relative;
  /* + 89 px: la barra flotante va por encima de la portada. */
  padding: calc(var(--sp-8) + 89px) 0 0;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(0, 91, 255, 0.55), transparent 70%),
    linear-gradient(135deg, var(--c-darkest), var(--c-primary-dark));
  color: #fff;
  overflow: hidden;
}

.ceo-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--sp-7);
  align-items: end;
}

.ceo-hero__texto {
  align-self: center;
  padding-bottom: var(--sp-8);
}

.ceo-hero__title {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.ceo-hero__sub {
  max-width: 52ch;
  font-size: var(--t-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.ceo-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.ceo-hero__foto {
  position: relative;
  margin: 0;
  justify-self: end;
  /* Sale un poco de la columna hacia la derecha: el retrato gana tamano sin
     quitarle ancho al texto. */
  width: 540px;
  max-width: none;
  margin-right: -50px;
}

/* El retrato es un recorte sin fondo: va directamente sobre el azul. La aureola
   clara detras separa el traje oscuro del fondo; sin ella se perdia. */
.ceo-hero__foto::before {
  content: "";
  position: absolute;
  inset: 4% -14% 0;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(closest-side at 50% 38%, rgba(120, 170, 255, 0.85), rgba(0, 91, 255, 0.35) 55%, transparent 100%);
}

.ceo-hero__foto img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(6, 0, 70, 0.45));
}

.ceo-hero__foto figcaption {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(19, 0, 140, 0.82);
  backdrop-filter: blur(6px);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: var(--t-base);
  line-height: 1.3;
}

.ceo-hero__foto figcaption span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 2. CIFRAS ---------- */
.ceo-cifras {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.ceo-cifras__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ceo-cifra {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}

.ceo-cifra + .ceo-cifra {
  border-left: 1px solid var(--c-line);
}

.ceo-cifra strong {
  display: block;
  font-family: var(--font-title);
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-primary);
}

.ceo-cifra span {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--t-base);
  color: var(--c-muted);
}

/* ---------- 3. HISTORIA ---------- */
.ceo-historia {
  background: var(--c-bg, #f8fafc);
}

/* Ruta con la linea al centro: las tarjetas se alternan a izquierda y derecha.
   La linea se dibuja y cada hito entra desde su lado al aparecer en pantalla. */
.ceo-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  /* Las cartillas entran desde un costado (motion.js): sin esto desbordan la pagina en movil. */
  overflow-x: clip;
}

.ceo-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(var(--c-primary), var(--c-darkest));
  /* --p lo pone motion.js (0 a 1) segun el scroll; sin JS la linea va entera. */
  transform: scaleY(var(--p, 1));
  transform-origin: top;
}

.ceo-hito {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: start;
  padding-bottom: var(--sp-6);
}

.ceo-hito:last-child {
  padding-bottom: 0;
}

.ceo-hito__nodo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 32px;
  height: 32px;
  margin-top: 18px;
  border-radius: 50%;
  background: var(--c-darkest);
  border: 6px solid var(--c-accent);
  box-sizing: border-box;
  box-shadow: 0 0 0 6px var(--c-bg, #f0f4f8);
}

.ceo-hito--actual .ceo-hito__nodo {
  background: var(--c-accent);
  border-color: var(--c-darkest);
}

.ceo-hito__card {
  grid-row: 1;
  box-sizing: border-box;
  padding: var(--sp-5) var(--sp-5);
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ceo-hito--izq .ceo-hito__card {
  grid-column: 1;
}

.ceo-hito--der .ceo-hito__card {
  grid-column: 3;
}

.ceo-hito__marca {
  display: inline-block;
  margin-bottom: var(--sp-2);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-family: var(--font-title);
  font-size: var(--t-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ceo-hito--actual .ceo-hito__marca {
  background: var(--c-accent);
  color: var(--c-ink);
}

.ceo-hito h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--t-h3);
  line-height: 1.25;
  color: var(--c-ink);
}

.ceo-hito p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--c-muted);
}

/* La entrada de los hitos (tarjeta desde su lado, nodo que "salta") la hace
   public/motion.js con GSAP, no el CSS. */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ceo-hito__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 91, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ceo-timeline::before {
    transform: none;
    transition: none;
  }

}

/* Movil: la linea pasa a la izquierda y todas las tarjetas van a su derecha. */
@media (max-width: 760px) {
  .ceo-timeline::before {
    left: 15px;
    margin-left: 0;
  }

  .ceo-hito {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--sp-3);
  }

  .ceo-hito__nodo {
    grid-column: 1;
    box-shadow: none;
  }

  .ceo-hito--izq .ceo-hito__card,
  .ceo-hito--der .ceo-hito__card {
    grid-column: 2;
  }
}

/* ---------- 4. IDEA CENTRAL ---------- */
.ceo-frase {
  padding: var(--sp-8) 0;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-primary-dark));
  color: #fff;
  text-align: center;
}

.ceo-frase p {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--font-title);
  font-size: var(--t-h12);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.ceo-frase span {
  display: block;
  margin-top: var(--sp-4);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 5. PILARES (franjas que se expanden) ----------
   Cinco franjas verticales. Una esta abierta (la primera, o la que tenga el
   cursor o el foco); las demas muestran su titulo en vertical. El icono de cada
   pilar va grande y tenue detras, a un lado. */
.ceo-franjas {
  display: flex;
  gap: 14px;
  height: 460px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ceo-franja {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
  outline-offset: 3px;
  transition: flex-grow 0.7s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.ceo-franja--f1 { background: linear-gradient(160deg, var(--c-darkest), var(--c-primary-dark)); }
.ceo-franja--f2 { background: linear-gradient(160deg, var(--c-primary-dark), var(--c-primary)); }
.ceo-franja--f3 { background: linear-gradient(160deg, var(--c-darkest), var(--c-primary)); }
.ceo-franja--f4 { background: linear-gradient(160deg, var(--c-primary-dark), var(--c-darkest)); }
.ceo-franja--f5 { background: linear-gradient(160deg, var(--c-primary), var(--c-primary-dark)); }

/* Abierta: la primera por defecto; con cursor o foco sobre la fila, la que lo recibe. */
.ceo-franjas .ceo-franja:first-child {
  flex-grow: 3.4;
}

.ceo-franjas:hover .ceo-franja,
.ceo-franjas:focus-within .ceo-franja {
  flex-grow: 1;
}

.ceo-franjas .ceo-franja:hover,
.ceo-franjas .ceo-franja:focus-visible,
.ceo-franjas .ceo-franja:focus {
  flex-grow: 3.4;
  box-shadow: 0 22px 44px rgba(19, 0, 140, 0.28);
}

/* Icono grande y tenue por detras, a la derecha. */
.ceo-franja__fondo {
  position: absolute;
  right: -56px;
  top: 50%;
  width: 340px;
  height: 340px;
  margin-top: -170px;
  color: #fff;
  opacity: 0.14;
  pointer-events: none;
  transition: transform 0.8s var(--ease-out), opacity 0.5s;
}

.ceo-franja:hover .ceo-franja__fondo,
.ceo-franja:focus .ceo-franja__fondo {
  opacity: 0.2;
  transform: rotate(-6deg) scale(1.06);
}

.ceo-franja__n {
  display: block;
  font-family: var(--font-title);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* Cerrada: numero arriba y titulo en vertical. */
.ceo-franja__vert {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  opacity: 1;
  transition: opacity 0.3s;
}

.ceo-franja__vtitulo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-title);
  font-size: var(--t-h6);
  font-weight: 700;
  white-space: nowrap;
}

/* Abierta: numero, titulo y texto abajo a la izquierda. */
.ceo-franja__full {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 380px;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--sp-6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}

.ceo-franja__full h3 {
  margin: var(--sp-1) 0 var(--sp-2);
  font-size: var(--t-h12);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

.ceo-franja__full p {
  font-size: var(--t-base);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

/* Estado abierto: muestra el contenido y esconde el titulo vertical. */
.ceo-franjas .ceo-franja:first-child .ceo-franja__full {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.ceo-franjas .ceo-franja:first-child .ceo-franja__vert {
  opacity: 0;
}

.ceo-franjas:hover .ceo-franja .ceo-franja__full,
.ceo-franjas:focus-within .ceo-franja .ceo-franja__full {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: 0s;
}

.ceo-franjas:hover .ceo-franja .ceo-franja__vert,
.ceo-franjas:focus-within .ceo-franja .ceo-franja__vert {
  opacity: 1;
}

.ceo-franjas .ceo-franja:hover .ceo-franja__full,
.ceo-franjas .ceo-franja:focus .ceo-franja__full {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.ceo-franjas .ceo-franja:hover .ceo-franja__vert,
.ceo-franjas .ceo-franja:focus .ceo-franja__vert {
  opacity: 0;
}

/* ---------- Animaciones (utilidades al estilo Tailwind) ----------
   Equivalentes a animate-fade-up, animate-pulse y animate-float, sin cargar
   Tailwind entero (su CDN reinicia los estilos de toda la pagina). Se activan
   con `.is-visible`, que ya pone el IntersectionObserver del sitio. */
@media (prefers-reduced-motion: reduce) {
  .ceo-franja,
  .ceo-franja__fondo,
  .ceo-franja__full,
  .ceo-franja__vert {
    transition: none;
  }
}

/* ---------- 6. EQUIPO ---------- */
.ceo-equipo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 860px;
  overflow: hidden;
  color: #fff;
  /* Lo que se ve mientras carga el video: el mismo azul del velo. */
  background: #13008c;
}

.ceo-equipo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ceo-equipo__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 0, 140, 0) 25%, rgba(19, 0, 140, 0.92) 100%);
}

.ceo-equipo__texto {
  position: relative;
  /* + 89 px: la barra flotante va por encima de la portada. */
  padding-top: calc(var(--sp-8) + 89px);
  padding-bottom: var(--sp-7);
}

.ceo-equipo__texto h1 {
  max-width: 22ch;
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.ceo-equipo__texto p:not(.ceo-eyebrow) {
  max-width: 56ch;
  margin-top: var(--sp-3);
  font-size: var(--t-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- 7. MISION, VISION Y EJES ---------- */
.ceo-mv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.ceo-mv__card {
  padding: var(--sp-6);
  border-radius: var(--radius);
  background: var(--c-primary-soft);
  color: var(--c-ink);
}

.ceo-mv__card--oscura {
  background: var(--c-darkest);
  color: #fff;
}

.ceo-mv__card h3 {
  font-size: var(--t-h12);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  color: inherit;
}

.ceo-mv__card p {
  font-size: var(--t-base);
  line-height: 1.75;
  color: inherit;
}

.ceo-ejes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.ceo-ejes li {
  padding-top: var(--sp-4);
  border-top: 3px solid var(--c-accent);
}

.ceo-ejes h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
}

.ceo-ejes p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--c-muted);
}

/* ---------- 8. CTA ---------- */
.ceo-cta {
  padding: var(--sp-8) 0;
  background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  text-align: center;
}

.ceo-cta h2 {
  max-width: 26ch;
  margin: 0 auto var(--sp-3);
  font-size: var(--t-h12);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}

.ceo-cta p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--c-primary-soft);
}

.ceo-cta__botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* ---------- Tablet y movil ---------- */
@media (max-width: 960px) {
  /* Sin cursor: las franjas se apilan, abiertas, con el icono tenue a un lado. */
  .ceo-franjas {
    flex-direction: column;
    height: auto;
  }

  .ceo-franja,
  .ceo-franjas .ceo-franja:first-child {
    flex-grow: 0;
    min-height: 220px;
  }

  .ceo-franja__vert {
    display: none;
  }

  .ceo-franja__full,
  .ceo-franjas .ceo-franja:first-child .ceo-franja__full,
  .ceo-franjas:hover .ceo-franja .ceo-franja__full,
  .ceo-franjas:focus-within .ceo-franja .ceo-franja__full {
    position: relative;
    width: auto;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ceo-franja__fondo {
    top: auto;
    bottom: -40px;
    margin-top: 0;
    width: 220px;
    height: 220px;
  }

  .ceo-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .ceo-hero__texto {
    padding-bottom: 0;
  }

  .ceo-hero__foto {
    justify-self: center;
    width: min(100%, 420px);
    max-width: 100%;
    margin-right: 0;
  }

  .ceo-cifras__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ceo-cifra:nth-child(3) {
    border-left: 0;
  }

  .ceo-cifra:nth-child(n + 3) {
    border-top: 1px solid var(--c-line);
  }

  .ceo-mv__grid,
  .ceo-ejes {
    grid-template-columns: minmax(0, 1fr);
  }

  .ceo-equipo {
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .ceo-equipo__img {
    object-position: 50% 20%;
  }
}

/* Botones principales de la portada y del cierre: fondo amarillo con texto
   oscuro (el amarillo nunca va en el texto). */
.ceo-hero__cta .btn--accent,
.ceo-cta__botones .btn--accent {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 8px 20px rgba(255, 180, 0, 0.32);
}

.ceo-hero__cta .btn--accent:hover,
.ceo-cta__botones .btn--accent:hover {
  background: #E6A200;
  box-shadow: 0 12px 26px rgba(255, 180, 0, 0.4);
}

/* ---------- NUESTROS EXPERTOS ----------
   Tarjetas compactas: solo foto; al pasar el cursor o enfocar con teclado sube
   desde abajo un panel con quien es y que hace. En tactil (sin hover) el panel
   queda siempre visible. El transform va en hijos, no en .reveal (GSAP). */
.ceo-expertos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4, 16px);
}

.ceo-experto {
  overflow: hidden;
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: var(--shadow);
}

.ceo-experto:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}

.ceo-experto__foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--c-ink);
}

.ceo-experto__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Foco por tarjeta (--foco en el article): las fotos ya vienen recortadas 2:3
     con la cabeza al ~20 % de la altura; en 4:5 (movil) --foco-m evita cortar el techo */
  object-position: var(--foco, 50% 14%);
  transition: transform 0.5s ease;
}


/* Etiqueta minima con el cargo, visible solo sin hover */
.ceo-experto__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-6, 32px) var(--sp-3, 12px) var(--sp-3, 12px);
  background: linear-gradient(to top, rgba(10, 18, 30, 0.8), rgba(10, 18, 30, 0));
  color: #fff;
  font-family: var(--font-title);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.ceo-experto__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-8, 48px) var(--sp-4, 16px) var(--sp-4, 16px);
  border-bottom: 4px solid var(--c-accent);
  background: linear-gradient(to top, rgba(10, 18, 30, 0.96) 62%, rgba(10, 18, 30, 0));
  color: #fff;
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ceo-experto__cargo {
  font-family: var(--font-title);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.8;
}

.ceo-experto__info h3 {
  margin: var(--sp-1, 4px) 0 var(--sp-2, 8px);
  font-size: var(--t-h3, 1.2rem);
  color: #fff;
}

.ceo-experto__info p {
  margin: 0;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.ceo-experto:hover .ceo-experto__info,
.ceo-experto:focus-within .ceo-experto__info,
.ceo-experto:focus .ceo-experto__info {
  transform: translateY(0);
}

.ceo-experto:hover .ceo-experto__tag,
.ceo-experto:focus-within .ceo-experto__tag,
.ceo-experto:focus .ceo-experto__tag {
  opacity: 0;
}

.ceo-experto:hover .ceo-experto__foto img,
.ceo-experto:focus .ceo-experto__foto img {
  transform: scale(1.04);
}

/* Tactil / sin hover: panel siempre visible */
@media (hover: none) {
  .ceo-experto__info {
    transform: none;
  }
  .ceo-experto__tag {
    display: none;
  }
}

@media (max-width: 1000px) {
  .ceo-expertos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .ceo-expertos__grid {
    gap: var(--sp-3, 12px);
  }
  .ceo-experto__info {
    padding: var(--sp-6, 32px) var(--sp-3, 12px) var(--sp-3, 12px);
  }
  .ceo-experto__info p {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ceo-experto__info,
  .ceo-experto__tag,
  .ceo-experto__foto img {
    transition: none;
  }
  .ceo-experto:hover .ceo-experto__foto img,
  .ceo-experto:focus .ceo-experto__foto img {
    transform: none;
  }
}

/* Movil estrecho: el panel con nombre y cargo es mas alto que la foto (4:5) y
   se cortaba por arriba. Pasa a ir debajo de la foto, siempre visible. */
@media (max-width: 560px) {
  .ceo-experto__foto {
    aspect-ratio: auto;
  }
  .ceo-experto__foto img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: var(--foco-m, 50% 8%);
  }
  .ceo-experto__tag {
    display: none;
  }
  .ceo-experto__info {
    position: relative;
    transform: none;
    padding: var(--sp-3, 12px);
    background: rgba(10, 18, 30, 0.96);
  }
  .ceo-experto:hover .ceo-experto__foto img,
  .ceo-experto:focus .ceo-experto__foto img {
    transform: none;
  }
}
