/* =========================================================
   Valenzuela Serrano & Asociados - Páginas internas
   Capa de diseño que reutiliza los tokens de styles.css.
   Sin header ni footer: la página empieza y termina en el
   contenido, con los paneles apilados del inicio.
   ========================================================= */

body.ip-page { background: var(--color-black); }

/* ---------- Accesibilidad ---------- */
.ip-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 120;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.ip-skip:focus { top: 14px; }

[id] { scroll-margin-top: 24px; }

/* =========================================================
   PANELES APILADOS (mismo gesto que la página de inicio)
   Cada sección queda pegada y la siguiente se le encima,
   dejando ver el borde redondeado y la línea dorada.
   ========================================================= */
.ip-panel { position: relative; overflow: clip; }

html.js.ip-stack .ip-panel {
  position: sticky;
  top: var(--stick-top, 0px);
  transition: box-shadow .4s var(--ease);
}

.ip-panel + .ip-panel {
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  box-shadow: 0 -24px 60px -10px rgba(0, 0, 0, .7);
}

.ip-panel + .ip-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--panel-radius);
  right: var(--panel-radius);
  height: 1px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 5s linear infinite;
  z-index: 3;
  pointer-events: none;
}

/* =========================================================
   HERO
   ========================================================= */
.ip-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 7vw, 110px);
  background: var(--color-black);
}
.ip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 75% at 88% 6%, rgba(15, 46, 82, .85) 0%, rgba(9, 31, 60, .35) 45%, transparent 72%),
    radial-gradient(55% 60% at 0% 100%, rgba(211, 170, 70, .08) 0%, transparent 70%);
  pointer-events: none;
}
.ip-hero__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 239, 241, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 239, 241, .05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(70% 70% at 68% 28%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 70% at 68% 28%, #000 0%, transparent 78%);
  pointer-events: none;
}
.ip-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
}
.ip-hero__copy { min-width: 0; }

.ip-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(237, 239, 241, .45);
}
.ip-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ip-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.ip-breadcrumb li + li::before { content: "/"; color: rgba(211, 170, 70, .55); }
.ip-breadcrumb a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.ip-breadcrumb a:hover { color: var(--color-gold); }
.ip-breadcrumb [aria-current="page"] { color: rgba(237, 239, 241, .72); }

.ip-hero h1 {
  font-size: clamp(1.95rem, 4.6vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 21ch;
  margin-bottom: 24px;
}
.ip-hero__sub {
  max-width: 58ch;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  color: var(--muted-dark);
  margin-bottom: 34px;
}
.ip-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(237, 239, 241, .55);
}
.ip-hero__meta li { display: inline-flex; align-items: center; gap: 9px; }
.ip-hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold-gradient);
}

/* Foto opcional de la portada: texto a la izquierda, foto a la derecha */
.ip-hero__media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 70, .28);
  background: rgba(15, 46, 82, .45);
  box-shadow: 0 40px 90px -50px #000;
  aspect-ratio: 4 / 3;
}
.ip-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(211, 170, 70, .16) 0%, transparent 38%);
  mix-blend-mode: screen;
}
.ip-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 960px) {
  .ip-hero--media .ip-hero__media { aspect-ratio: 1 / 1; }
  .ip-hero--media .ip-hero h1 { max-width: 23ch; }
  .ip-hero--media .ip-hero__sub { max-width: 54ch; }
}

/* Tarjeta lateral: obligaciones */
.ip-hero__card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 18px;
  border: 1px solid rgba(211, 170, 70, .3);
  background:
    linear-gradient(180deg, rgba(15, 46, 82, .9) 0%, rgba(9, 31, 60, .55) 100%);
  box-shadow: 0 30px 70px -40px #000;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.ip-hero__card:hover,
.ip-hero__card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(211, 170, 70, .62);
  box-shadow: 0 44px 90px -44px #000;
}
.ip-hero__card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
}
.ip-hero__card-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.ip-hero__card-title {
  margin: 10px 0 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.42rem;
  line-height: 1.25;
  color: var(--color-white);
}
.ip-hero__card ul { display: grid; gap: 12px; }
.ip-hero__card li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .95rem;
  color: var(--color-silver);
}
.ip-hero__card li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ip-hero__card li span { min-width: 0; overflow-wrap: anywhere; }
.ip-hero__card-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(237, 239, 241, .1);
  font-size: .82rem;
  color: rgba(237, 239, 241, .55);
}

/* =========================================================
   SECCIONES INTERNAS
   ========================================================= */
.ip-section {
  position: relative;
  padding: 84px 0;
}
.ip-section--black { background: var(--color-black); }
.ip-section--navy { background: var(--color-navy); }
.ip-section--light { background: var(--color-paper); color: var(--muted-light); }
.ip-section--light h2,
.ip-section--light h3 { color: var(--color-navy); }
.ip-section--light .section__lead { color: var(--muted-light); }
.ip-section--light .eyebrow:not(.eyebrow--dark) { color: var(--color-navy); background: none; animation: none; }
.ip-section--light .swipe-hint { color: #66758a; }

/* ---------- Señales (problema) ---------- */
.ip-signals { display: grid; gap: 18px; }
.ip-signal {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(237, 239, 241, .1);
  background: linear-gradient(180deg, rgba(15, 46, 82, .42) 0%, rgba(9, 31, 60, .1) 100%);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ip-signal::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
}
.ip-signal:hover,
.ip-signal:focus-within {
  transform: translateY(-6px);
  border-color: rgba(211, 170, 70, .5);
  box-shadow: 0 32px 60px -34px #000;
}
.ip-signal__num {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-head);
  font-size: 1.55rem;
  line-height: 1;
  color: rgba(237, 239, 241, .13);
  transition: color .45s var(--ease);
}
.ip-signal:hover .ip-signal__num { color: rgba(211, 170, 70, .5); }
.ip-signal .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  transition: transform .5s var(--ease);
}
.ip-signal:hover .icon { transform: scale(1.1) rotate(2.5deg); }
.ip-signal p { color: var(--color-silver); font-size: 1rem; }

/* ---------- Qué incluye ---------- */
.ip-check-list { display: grid; gap: 14px; }
.ip-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid rgba(9, 31, 60, .08);
  box-shadow: 0 14px 30px -30px rgba(9, 31, 60, .55);
  font-size: .96rem;
  line-height: 1.55;
  color: var(--muted-light);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.ip-check-item:hover,
.ip-check-item:focus-within {
  transform: translateY(-4px);
  border-color: rgba(211, 170, 70, .65);
  box-shadow: 0 24px 44px -26px rgba(9, 31, 60, .45);
}
.ip-check-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.ip-check-item:hover svg { transform: scale(1.18); }
.ip-note {
  margin-top: 26px;
  font-size: .8rem;
  color: #66758a;
}

/* ---------- Para quién ---------- */
.ip-audience { display: grid; gap: 16px; }
.ip-audience__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(237, 239, 241, .1);
  background: rgba(15, 46, 82, .3);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.ip-audience__item:hover,
.ip-audience__item:focus-within {
  transform: translateY(-5px);
  border-color: rgba(211, 170, 70, .45);
  background: rgba(15, 46, 82, .58);
}
.ip-audience__num {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-gold);
  transition: color .45s var(--ease);
}
.ip-audience__item:hover .ip-audience__num { color: var(--color-white); }
.ip-audience__item p { color: var(--color-silver); font-size: .98rem; }

/* ---------- Cómo trabajamos ---------- */
.ip-steps { display: grid; gap: 30px; }
.ip-step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid rgba(237, 239, 241, .14);
}
.ip-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 54px;
  height: 2px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 5s linear infinite;
  transition: width .5s var(--ease);
}
.ip-step:hover::before { width: 100%; }
.ip-step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(237, 239, 241, .16);
  margin-bottom: 14px;
  transition: color .45s var(--ease);
}
.ip-step:hover .ip-step__num { color: rgba(211, 170, 70, .45); }
.ip-step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: color .4s var(--ease);
}
.ip-step:hover h3 { color: var(--color-gold); }
.ip-step p { color: var(--muted-dark); font-size: .95rem; }

/* ---------- Video ---------- */
.ip-video__frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 70, .38);
  background: #000;
  box-shadow: 0 34px 80px -46px #000;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ip-video__frame:hover { border-color: rgba(211, 170, 70, .68); box-shadow: 0 44px 90px -44px #000; }
.ip-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ip-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.ip-video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.ip-video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(9, 31, 60, .55) 100%);
}
.ip-video__play:hover img,
.ip-video__play:focus-visible img { opacity: .92; transform: scale(1.03); }
.ip-video__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  background-size: 200% auto;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .65);
  transition: transform .45s var(--ease);
  animation: gold-shimmer 5s linear infinite;
}
.ip-video__play:hover .ip-video__btn,
.ip-video__play:focus-visible .ip-video__btn { transform: scale(1.1); }
.ip-video__btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  color: var(--color-navy);
}
.ip-video__fallback {
  position: absolute;
  inset: auto 0 24px;
  text-align: center;
  font-size: .9rem;
}
.ip-video__fallback a { color: var(--color-gold); }

/* ---------- Por qué ---------- */
.ip-why__quote { max-width: 880px; margin: 0 auto; text-align: center; transition: transform .45s var(--ease); }
.ip-why__quote:hover { transform: translateY(-4px); }
.ip-why__quote .ip-quote {
  width: 52px;
  height: 52px;
  margin: 0 auto 26px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.ip-why__quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.9vw, 2.05rem);
  line-height: 1.42;
  color: var(--color-navy);
}
.ip-why__quote cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a22;
}
.ip-facts { display: grid; gap: 0; margin-top: 56px; }
.ip-fact {
  padding: 22px 6px;
  border-top: 1px solid rgba(9, 31, 60, .13);
  transition: transform .4s var(--ease);
}
.ip-fact:hover { transform: translateY(-3px); }
.ip-fact strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--color-navy);
  transition: color .4s var(--ease);
}
.ip-fact:hover strong { color: #8a6a22; }
.ip-fact span {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #66758a;
}
/* Variante para paneles oscuros */
.ip-section--black .ip-fact { border-top-color: rgba(237, 239, 241, .14); }
.ip-section--black .ip-fact strong { color: #f6e8b8; }
.ip-section--black .ip-fact span { color: rgba(237, 239, 241, .58); }
.ip-section--black .ip-fact:hover strong { color: var(--color-gold); }
@media (min-width: 640px) {
  .ip-section--black .ip-fact + .ip-fact { border-left: 1px solid rgba(237, 239, 241, .14); }
}

/* ---------- Preguntas frecuentes ---------- */
.ip-section .faq__item {
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.ip-section .faq__item:hover { border-color: rgba(211, 170, 70, .42); }
.ip-section .faq__item summary:hover { color: var(--color-gold); }

/* ---------- CTA ---------- */
.ip-cta {  overflow: clip;
  padding: 96px 0 84px;
  text-align: center;
  background:
    radial-gradient(58% 62% at 50% 44%, rgba(15, 46, 82, .8) 0%, rgba(0, 0, 0, .55) 72%),
    var(--color-black);
}
.ip-cta__ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  padding: 1px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .2;
  pointer-events: none;
}
.ip-cta__ring--2 { width: 980px; height: 980px; margin: -490px 0 0 -490px; opacity: .09; }
.ip-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ip-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  max-width: 15ch;
}
.ip-cta .section__lead { margin: 20px auto 38px; max-width: 600px; }

.ip-related {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin: 72px auto 0;
  padding-top: 38px;
  border-top: 1px solid rgba(237, 239, 241, .12);
  text-align: left;
}
.ip-related__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(237, 239, 241, .5);
  margin-bottom: 18px;
}
.ip-related ul { display: grid; gap: 14px; }
.ip-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(237, 239, 241, .14);
  background: rgba(15, 46, 82, .34);
  text-decoration: none;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.ip-related a:hover,
.ip-related a:focus-visible {
  border-color: rgba(211, 170, 70, .55);
  background: rgba(15, 46, 82, .55);
  transform: translateY(-2px);
}
.ip-related strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-white);
}
.ip-related__text > span {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(237, 239, 241, .5);
}
.ip-related svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 2;
  transition: transform .4s var(--ease);
}
.ip-related a:hover svg { transform: translateX(4px); }

/* =========================================================
   REVEAL AL SCROLL
   Se anima con `translate` (no con `transform`) para no
   bloquear los efectos hover de cada tarjeta.
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity .7s var(--ease),
    translate .7s var(--ease),
    transform .45s var(--ease),
    border-color .45s var(--ease),
    background-color .45s var(--ease),
    box-shadow .45s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* =========================================================
   DESLIZADOR HORIZONTAL (celular)
   ========================================================= */
@media (max-width: 959px) {
  .ip-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 16px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ip-slider::-webkit-scrollbar { display: none; }
  .ip-slider > * { flex: 0 0 84%; max-width: 380px; scroll-snap-align: start; }
}

/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 640px) {
  .ip-facts { grid-template-columns: repeat(3, 1fr); }
  .ip-fact { padding: 22px; }
  .ip-fact + .ip-fact { border-left: 1px solid rgba(9, 31, 60, .13); }
  .ip-related ul { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .ip-hero { padding-top: 72px; padding-bottom: 118px; }
  .ip-hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); gap: 72px; align-items: center; }
  .ip-hero h1 { max-width: 20ch; }
  .ip-hero__card { padding: 34px 32px 36px; }
  .ip-section { padding: 118px 0; }
  .ip-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ip-signal { padding: 34px 30px 32px; }
  .ip-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ip-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 480px) {
  .ip-hero .eyebrow {
    gap: 10px;
    font-size: .68rem;
    letter-spacing: .12em;
  }
  .ip-hero .eyebrow::before { width: 22px; }
  .ip-hero__meta { font-size: .72rem; letter-spacing: .06em; }

  .ip-video__btn { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .ip-video__btn svg { width: 24px; height: 24px; margin-left: 3px; }
}

@media (max-width: 420px) {
  .ip-hero h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .ip-cta__ring,
  .ip-hero__card::before,
  .ip-signal::before,
  .ip-step::before,
  .ip-card::before,
  .ip-member__photo::after,
  .ip-video__btn { animation: none; }
  .ip-member__photo::after { opacity: 0; }
  .ip-signal, .ip-signal .icon, .ip-signal__num,
  .ip-check-item, .ip-check-item svg,
  .ip-audience__item, .ip-audience__num,
  .ip-step::before, .ip-step__num, .ip-step h3,
  .ip-fact, .ip-fact strong,
  .ip-why__quote,
  .ip-card, .ip-card svg,
  .ip-member__photo, .ip-member__photo::before, .ip-member__photo img,
  .ip-testimonial__quote,
  .ip-channel, .ip-channel__icon,
  .ip-map,
  .ip-hero__card, .ip-video__play img, .ip-video__btn { transition: none; }
}

/* =========================================================
   TARJETAS DE SERVICIO ENLAZADAS (página de auditoría)
   En celular se convierten en deslizador horizontal.
   ========================================================= */
.ip-cards { gap: 18px; }
.ip-cards > li { display: flex; }

.ip-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(237, 239, 241, .1);
  background: linear-gradient(180deg, rgba(15, 46, 82, .42) 0%, rgba(9, 31, 60, .1) 100%);
  text-decoration: none;
  color: inherit;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.ip-card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
}
.ip-card:hover,
.ip-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(211, 170, 70, .5);
  background: linear-gradient(180deg, rgba(15, 46, 82, .62) 0%, rgba(9, 31, 60, .18) 100%);
  box-shadow: 0 32px 60px -34px #000;
}
.ip-card__index {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(211, 170, 70, .6);
  transition: color .45s var(--ease);
}
.ip-card:hover .ip-card__index { color: var(--color-gold); }
.ip-card h3 {
  font-size: 1.25rem;
  line-height: 1.28;
  transition: color .4s var(--ease);
}
.ip-card:hover h3 { color: var(--color-gold); }
.ip-card p { color: var(--color-silver); font-size: .95rem; }
.ip-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.ip-card__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 2;
  transition: transform .4s var(--ease);
}
.ip-card:hover .ip-card__cta svg,
.ip-card:focus-visible .ip-card__cta svg { transform: translateX(5px); }

/* Tarjetas de equipo (página Nosotros) */
.ip-member__role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(211, 170, 70, .85);
}

/* Marco del retrato: halo dorado y destello de luz EN LA CAJA.
   Las fotos son PNG con transparencia; el efecto vive detrás del
   recorte (z-index 0) y la persona (z-index 1) queda intacta. */
.ip-member__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  margin-bottom: 2px;
  border-radius: 10px;
  border: 1px solid rgba(211, 170, 70, .26);
  isolation: isolate;
  background:
    radial-gradient(62% 42% at 50% 10%, rgba(246, 232, 184, .16) 0%, rgba(211, 170, 70, .08) 48%, rgba(211, 170, 70, 0) 78%),
    radial-gradient(120% 66% at 50% 108%, rgba(211, 170, 70, .065) 0%, rgba(211, 170, 70, 0) 62%),
    linear-gradient(180deg, #163a63 0%, #0a2340 56%, #05121f 100%);
  box-shadow:
    0 22px 44px -36px rgba(211, 170, 70, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 46px rgba(4, 12, 24, .58),
    inset 0 26px 54px -30px rgba(211, 170, 70, .36);
  transition: border-color .55s var(--ease), box-shadow .55s var(--ease);
}
/* Halo + haz de luz detrás de la cabeza y los hombros */
.ip-member__photo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 30% at 50% 11%, rgba(246, 232, 184, .34) 0%, rgba(211, 170, 70, .14) 54%, rgba(211, 170, 70, 0) 80%),
    conic-gradient(from 0deg at 50% -8%,
      rgba(246, 232, 184, 0) 0deg,
      rgba(246, 232, 184, 0) 42deg,
      rgba(246, 232, 184, .13) 68deg,
      rgba(246, 232, 184, .09) 90deg,
      rgba(246, 232, 184, .13) 112deg,
      rgba(246, 232, 184, 0) 138deg,
      rgba(246, 232, 184, 0) 360deg),
    radial-gradient(68% 56% at 50% 44%, rgba(211, 170, 70, .13) 0%, rgba(211, 170, 70, 0) 72%);
  opacity: .65;
  transition: opacity .6s var(--ease);
}
/* Destello diagonal que recorre el fondo cada cierto tiempo */
.ip-member__photo:not(.is-missing)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(102deg,
    rgba(246, 232, 184, 0) 32%,
    rgba(246, 232, 184, .16) 46%,
    rgba(255, 255, 255, .07) 51%,
    rgba(246, 232, 184, .16) 56%,
    rgba(246, 232, 184, 0) 70%);
  background-size: 260% 100%;
  background-position: 135% 0;
  animation: member-flash 8s ease-in-out 1.6s infinite;
}
.ip-member__photo img {
  position: relative;
  z-index: 1;
  transition: transform .7s var(--ease);
}
.ip-card:hover .ip-member__photo,
.ip-card:focus-visible .ip-member__photo {
  border-color: rgba(211, 170, 70, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 42px rgba(4, 12, 24, .48),
    inset 0 24px 54px -24px rgba(211, 170, 70, .46),
    0 26px 44px -34px rgba(211, 170, 70, .55);
}
.ip-card:hover .ip-member__photo::before,
.ip-card:focus-visible .ip-member__photo::before {
  opacity: .8;
}
.ip-card:hover .ip-member__photo img,
.ip-card:focus-visible .ip-member__photo img { transform: scale(1.04); }
.ip-member__photo.is-missing::after { font-size: .66rem; letter-spacing: .12em; }

@keyframes member-flash {
  0%, 74%   { background-position: 135% 0; opacity: 0; }
  78%       { opacity: .65; }
  100%      { background-position: -35% 0; opacity: 0; }
}

/* Testimonios (página Casos de éxito) */
.ip-testimonial blockquote {
  margin: 0;
  color: var(--muted-dark);
  font-size: .97rem;
  line-height: 1.65;
}
.ip-testimonial h3 { font-size: 1.1rem; padding-right: 46px; }
.ip-testimonial__quote {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: .6;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.ip-testimonial:hover .ip-testimonial__quote { opacity: 1; transform: scale(1.1); }
/* Placa blanca 2:1 para los logos de clientes */
.ip-testimonial__logo {
  width: 190px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--color-white);
}
.ip-testimonial__logo img { width: 100%; height: 100%; object-fit: contain; }

/* Canales de contacto (página Contacto) */
.ip-channels { display: grid; gap: 18px; }
.ip-channels > li { display: flex; }
.ip-channel {
  flex: 1;
  display: flex;
  gap: 18px;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid rgba(9, 31, 60, .1);
  box-shadow: 0 18px 40px -34px rgba(9, 31, 60, .55);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ip-channel:hover,
.ip-channel:focus-within {
  transform: translateY(-5px);
  border-color: rgba(211, 170, 70, .6);
  box-shadow: 0 28px 52px -30px rgba(9, 31, 60, .42);
}
.ip-channel__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 70, .45);
  background: rgba(211, 170, 70, .08);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.ip-channel__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #8a6a22;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ip-channel:hover .ip-channel__icon {
  background: rgba(211, 170, 70, .16);
  border-color: rgba(211, 170, 70, .75);
}
.ip-channel__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a6a22;
}
.ip-channel__value {
  display: block;
  margin-top: 7px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--color-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .35s var(--ease);
}
a.ip-channel__value:hover { color: #8a6a22; }
.ip-channel__note { margin-top: 8px; font-size: .84rem; color: #66758a; }
.ip-channel__note a { color: #8a6a22; text-decoration: underline; text-underline-offset: 3px; }

/* Mapa (página Contacto) */
.ip-map {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 70, .3);
  background:
    radial-gradient(circle at 50% 42%, rgba(211, 170, 70, .12) 0%, rgba(211, 170, 70, 0) 58%),
    #0b2444;
  box-shadow: 0 44px 90px -55px #000;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ip-map:hover,
.ip-map:focus-within {
  border-color: rgba(211, 170, 70, .55);
  box-shadow: 0 52px 100px -48px #000;
}
.ip-map__frame { display: block; width: 100%; height: 360px; border: 0; }
.ip-map__card {
  padding: 24px 24px 26px;
  background: var(--color-white);
  border-top: 1px solid rgba(211, 170, 70, .35);
}
.ip-map__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a6a22;
}
.ip-map__address {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}
.ip-map__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6a22;
  text-decoration: none;
}
.ip-map__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.ip-map__link:hover svg { transform: translateX(5px); }

@media (min-width: 960px) {
  .ip-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ip-map__frame { height: 480px; }
  .ip-map__card {
    position: absolute;
    left: 28px;
    bottom: 28px;
    max-width: 340px;
    border-radius: 12px;
    border: 1px solid rgba(9, 31, 60, .08);
    box-shadow: 0 30px 60px -28px rgba(9, 31, 60, .55);
  }
}

/* Documento legal (página Política de datos) */
.ip-legal { max-width: 1020px; margin: 0 auto; }
.ip-legal__block {
  padding: 44px 0;
  border-top: 1px solid rgba(9, 31, 60, .12);
}
.ip-legal__block:first-child { padding-top: 0; border-top: 0; }
.ip-legal__block:last-child { padding-bottom: 0; }
.ip-legal__num {
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .1em;
  color: #8a6a22;
  transition: color .4s var(--ease);
}
.ip-legal__block:hover .ip-legal__num { color: var(--color-gold); }
.ip-legal__content { margin-top: 10px; }
.ip-legal__content h2 { font-size: 1.5rem; line-height: 1.28; }
.ip-legal__content p {
  margin-top: 16px;
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted-light);
}
.ip-legal__content a {
  color: #8a6a22;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ip-legal__content a:hover { color: var(--color-navy); }
.ip-legal__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 74ch;
}
.ip-legal__list li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--muted-light);
}
.ip-legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 2px;
  background: var(--color-gold);
}
.ip-legal__facts { display: grid; gap: 18px; margin-top: 24px; }
.ip-legal__facts dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a6a22;
}
.ip-legal__facts dd {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
  overflow-wrap: anywhere;
}
.ip-legal__note {
  margin-top: 26px;
  max-width: 74ch;
  padding: 18px 22px;
  border-left: 2px solid var(--color-gold);
  border-radius: 0 10px 10px 0;
  background: rgba(211, 170, 70, .08);
  font-size: .98rem;
  line-height: 1.65;
  color: var(--color-navy);
}

@media (min-width: 640px) {
  .ip-legal__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .ip-legal__block { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 30px; }
  .ip-legal__content { margin-top: 0; }
  .ip-legal__content h2 { font-size: 1.7rem; }
}

@media (min-width: 960px) {
  .ip-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ip-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-card { padding: 34px 30px 30px; }

  /* Hero sin tarjeta lateral: una sola columna de lectura */
  .ip-hero--solo .ip-hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
  .ip-hero--solo .ip-hero h1 { max-width: 26ch; }
  .ip-hero--solo .ip-hero__sub { max-width: 64ch; }
}

/* 4 columnas: 7 industrias en 4 + 3 centradas */
@media (min-width: 1200px) {
  .ip-cards--4 { display: flex; flex-wrap: wrap; justify-content: center; }
  .ip-cards--4 > li { flex: 0 0 calc(25% - 15px); }
  .ip-cards--4 .ip-card { padding: 30px 24px 26px; }
}

/* Equipo: 5 integrantes en 3 + 2 centradas (evita la celda huérfana) */
@media (min-width: 960px) {
  .ip-cards--team { display: flex; flex-wrap: wrap; justify-content: center; }
  .ip-cards--team > li { flex: 0 0 calc(33.333% - 14px); }
}
