/*--------------------------------------------------------------
# Página de servicio: SGSI ISO/IEC 27001
--------------------------------------------------------------*/
.iso-page {
  --iso-navy: #0f1733;
  --iso-ink: #1b2340;
  --iso-soft: #f4f6fd;
  --iso-line: rgba(27, 35, 64, 0.1);
}

.iso-page .main {
  font-size: 16px;
}

.iso-page h1,
.iso-page h2,
.iso-page h3 {
  font-family: "Poppins", var(--heading-font);
  text-wrap: balance;
}

/* Hero de la página */
.iso-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 90px;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(ellipse 45% 70% at 100% 0%, rgba(86, 170, 242, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(135, 64, 168, 0.4) 0%, transparent 70%),
    var(--iso-navy);
}

/* Cuadrícula sutil de fondo */
.iso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.iso-hero .container {
  position: relative;
}

.iso-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.iso-breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
}

.iso-breadcrumbs a:hover {
  color: #fff;
}

.iso-breadcrumbs .current {
  color: var(--brand-blue);
}

.iso-kicker,
.iso-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.iso-kicker {
  color: var(--brand-blue);
}

.iso-hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 22px;
}

.iso-hero .iso-lead {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.iso-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.iso-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: "Poppins", var(--heading-font);
  font-weight: 600;
  color: var(--iso-ink);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.iso-btn:hover {
  color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.iso-link {
  font-family: "Poppins", var(--heading-font);
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

.iso-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Datos clave de la norma */
.iso-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.iso-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.iso-facts strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.iso-facts span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* Secciones */
.iso-section {
  padding: 100px 0;
  background: #fff;
}

.iso-section.iso-soft {
  background: var(--iso-soft);
}

.iso-section h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--iso-ink);
  margin-bottom: 20px;
}

.iso-section p {
  line-height: 1.75;
}

.iso-head {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

/* Confidencialidad / Integridad / Disponibilidad */
.iso-cia {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.iso-cia div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--iso-soft);
  font-family: "Poppins", var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--iso-ink);
}

.iso-cia i {
  color: var(--brand-purple);
}

/* Ciclo PDCA */
.pdca {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.pdca-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: pdca-spin 60s linear infinite;
}

.pdca-arc {
  fill: none;
  stroke-width: 34;
  stroke-linecap: round;
  /* circunferencia de r=150 = 942.5; cada cuarto 235.6 */
  stroke-dasharray: 205 737.5;
  transform-origin: 200px 200px;
}

.pdca-arc.a1 { stroke: #8740a8; transform: rotate(-80deg); }
.pdca-arc.a2 { stroke: #6f6ccb; transform: rotate(10deg); }
.pdca-arc.a3 { stroke: #5f8fe2; transform: rotate(100deg); }
.pdca-arc.a4 { stroke: #56aaf2; transform: rotate(190deg); }

.pdca-center {
  position: absolute;
  inset: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 51, 0.12);
  text-align: center;
}

.pdca-center strong {
  font-family: "Poppins", var(--heading-font);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--iso-ink);
}

.pdca-center span {
  font-size: 13px;
  color: var(--default-color);
}

.pdca-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 51, 0.12);
  white-space: nowrap;
}

.pdca-label strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 15px;
  color: var(--iso-ink);
}

.pdca-label span {
  font-size: 12px;
  color: var(--default-color);
}

.pdca-label.l1 { right: 74%; top: 4%; }
.pdca-label.l2 { left: 74%; top: 4%; }
.pdca-label.l3 { left: 74%; bottom: 4%; }
.pdca-label.l4 { right: 74%; bottom: 4%; }

@keyframes pdca-spin {
  to { transform: rotate(360deg); }
}

/* Tarjetas de beneficios */
.iso-card {
  height: 100%;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--iso-line);
  transition: transform 0.3s, box-shadow 0.3s;
}

.iso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 51, 0.1);
}

.iso-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 22px;
  color: #fff;
  background: var(--brand-gradient);
}

.iso-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--iso-ink);
  margin-bottom: 10px;
}

.iso-card p {
  margin: 0;
  font-size: 15px;
}

/* Modalidades */
.iso-plan {
  height: 100%;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--iso-line);
  background: #fff;
}

.iso-plan.featured {
  color: rgba(255, 255, 255, 0.85);
  border-color: transparent;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(86, 170, 242, 0.35) 0%, transparent 70%),
    var(--iso-navy);
}

.iso-plan-top {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--iso-line);
}

.iso-plan.featured .iso-plan-top {
  border-color: rgba(255, 255, 255, 0.12);
}

.iso-plan-top > i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 24px;
  color: #fff;
  background: var(--brand-gradient);
}

.iso-plan h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--iso-ink);
  margin: 0 0 4px;
}

.iso-plan.featured h3 {
  color: #fff;
}

.iso-plan-top p {
  margin: 0;
  font-size: 15px;
}

.iso-plan ul {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.iso-plan li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
}

.iso-plan li i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: var(--brand-purple);
}

.iso-plan.featured li i {
  color: var(--brand-blue);
}

/* Metodología (fondo oscuro) */
.iso-section.iso-dark {
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(135, 64, 168, 0.3) 0%, transparent 70%),
    var(--iso-navy);
}

.iso-dark h2 {
  color: #fff;
}

.iso-dark .iso-eyebrow {
  color: var(--brand-blue);
}

.iso-steps {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Línea vertical que une las fases */
.iso-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-purple), var(--brand-blue));
  opacity: 0.6;
}

.iso-steps li {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 26px 22px 0;
}

.iso-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: "Poppins", var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--iso-navy);
  border: 2px solid var(--brand-blue);
  box-shadow: 0 0 0 6px var(--iso-navy), 0 0 24px rgba(86, 170, 242, 0.35);
}

.iso-steps h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 6px;
}

.iso-steps p {
  margin: 0;
  font-size: 15px;
}

/* Anexo A */
.annex {
  display: grid;
  gap: 26px;
  list-style: none;
  padding: 32px;
  margin: 0;
  border-radius: 24px;
  background: var(--iso-soft);
}

.annex-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.annex-clause {
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-purple);
}

.annex-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--iso-ink);
}

.annex-row strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--iso-ink);
  font-variant-numeric: tabular-nums;
}

.annex-bar {
  height: 10px;
  border-radius: 10px;
  background: rgba(27, 35, 64, 0.08);
  overflow: hidden;
}

/* Ancho proporcional al número de controles (máximo 37) */
.annex-bar span {
  display: block;
  height: 100%;
  width: calc(var(--n) / 37 * 100%);
  border-radius: 10px;
  background: var(--brand-gradient);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.annex:not(.is-visible) .annex-bar span {
  transform: scaleX(0);
}

/* Entregables */
.iso-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--iso-line);
  font-weight: 500;
  line-height: 1.4;
  color: var(--iso-ink);
}

.iso-doc i {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--brand-purple);
}

/* Preguntas frecuentes */
.iso-faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
}

.iso-faq .accordion-item {
  border-bottom: 1px solid var(--iso-line);
}

.iso-faq .accordion-button {
  padding: 24px 0;
  font-family: "Poppins", var(--heading-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--iso-ink);
  background: transparent;
  box-shadow: none;
}

.iso-faq .accordion-button:not(.collapsed) {
  color: var(--brand-purple);
}

.iso-faq .accordion-body {
  padding: 0 40px 24px 0;
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 991px) {
  .iso-section {
    padding: 70px 0;
  }

  .pdca-label {
    padding: 6px 10px;
  }

  .pdca-label.l1 { right: auto; left: 0; top: 0; }
  .pdca-label.l2 { left: auto; right: 0; top: 0; }
  .pdca-label.l3 { left: auto; right: 0; bottom: 0; }
  .pdca-label.l4 { right: auto; left: 0; bottom: 0; }
}

@media (max-width: 575px) {
  .iso-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .iso-plan,
  .annex {
    padding: 24px;
  }

  .iso-steps li {
    gap: 16px;
    padding-right: 0;
  }

  .pdca-label strong {
    font-size: 13px;
  }

  .pdca-label span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdca-ring {
    animation: none;
  }

  .annex:not(.is-visible) .annex-bar span {
    transform: none;
  }
}


/* Imagen del hero (edificio y consultores) */
.iso-hero-visual {
  position: relative;
  text-align: center;
}

/* Resplandor de marca detrás de la imagen */
.iso-hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8% 15%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(86, 170, 242, 0.45), transparent 60%),
    radial-gradient(circle at 65% 70%, rgba(135, 64, 168, 0.45), transparent 60%);
  filter: blur(40px);
  animation: iso-glow 6s ease-in-out infinite alternate;
}

.iso-hero-visual > img {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: auto;
  /* la base del edificio se funde con el fondo */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  animation: iso-rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes iso-rise {
  from { opacity: 0; translate: 0 60px; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes iso-glow {
  from { opacity: 0.7; scale: 0.95; }
  to { opacity: 1; scale: 1.05; }
}

/* Datos clave en una franja bajo el hero */
.iso-hero .iso-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 50px;
}

@media (max-width: 991px) {
  .iso-hero .iso-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
  }

  .iso-hero-visual > img {
    max-width: 420px;
  }
}

@media (max-width: 575px) {
  .iso-hero .iso-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .iso-hero-visual::before,
  .iso-hero-visual > img {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Hero en blanco
--------------------------------------------------------------*/
.iso-hero {
  padding: 40px 0 80px;
  color: var(--default-color);
  background: #fff;
}

.iso-hero::before {
  display: none;
}

.iso-breadcrumbs {
  color: rgba(27, 35, 64, 0.35);
}

.iso-breadcrumbs a {
  color: var(--default-color);
}

.iso-breadcrumbs a:hover,
.iso-breadcrumbs .current {
  color: var(--brand-purple);
}

.iso-kicker {
  color: var(--brand-purple);
}

.iso-hero h1 {
  color: var(--iso-ink);
}

.iso-btn {
  color: #fff;
  background: var(--iso-ink);
}

.iso-btn:hover {
  color: #fff;
  background: var(--brand-purple);
  box-shadow: 0 12px 30px rgba(135, 64, 168, 0.3);
}

.iso-link {
  color: var(--iso-ink);
  border-bottom-color: rgba(27, 35, 64, 0.3);
}

.iso-link:hover {
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}

.iso-hero .iso-facts li {
  border-color: var(--iso-line);
  background: var(--iso-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.iso-hero .iso-facts strong {
  color: var(--iso-ink);
}

.iso-hero .iso-facts span {
  color: var(--default-color);
}

.iso-hero-visual::before {
  opacity: 0.6;
}

.iso-hero-visual > img {
  filter: drop-shadow(0 30px 40px rgba(15, 23, 51, 0.18));
}

/*--------------------------------------------------------------
# Escena animada del hero (capas: edificio + consultores)
--------------------------------------------------------------*/
.iso-scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1090 / 1012;
}

.iso-layer {
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.iso-layer img {
  display: block;
  width: 100%;
  height: auto;
}

/* El edificio se funde con el fondo en su base */
.iso-layer.edificio img {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  filter: drop-shadow(0 30px 40px rgba(15, 23, 51, 0.18));
}

.iso-scene:not(.is-ready) .iso-layer img,
.iso-scene:not(.is-ready) .iso-chip,
.iso-scene:not(.is-ready) .iso-seal {
  opacity: 0;
}

/* 1. El edificio se construye de abajo hacia arriba */
.iso-scene.is-ready .edificio img {
  animation: iso-build 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes iso-build {
  from {
    opacity: 0;
    translate: 0 18%;
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(0 0 0 0);
  }
}

/* 2. Los consultores aparecen con rebote, uno tras otro, y luego flotan */
.iso-scene.is-ready .persona img {
  animation: iso-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    iso-float 5s ease-in-out infinite;
}

.iso-scene.is-ready .p1 img { animation-delay: 0.9s, 1.7s; }
.iso-scene.is-ready .p2 img { animation-delay: 1.1s, 2.4s; animation-duration: 0.8s, 6s; }
.iso-scene.is-ready .p3 img { animation-delay: 1.3s, 2.1s; animation-duration: 0.8s, 5.5s; }

@keyframes iso-pop {
  from { opacity: 0; scale: 0.3; rotate: -8deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes iso-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* 3. Etiquetas de avance del SGSI */
.iso-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 51, 0.15);
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--iso-ink);
  white-space: nowrap;
}

.iso-chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.iso-scene.is-ready .iso-chip {
  animation: iso-chip-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.iso-scene.is-ready .iso-chip.c1 { animation-delay: 1.8s; }
.iso-scene.is-ready .iso-chip.c2 { animation-delay: 2.1s; }
.iso-scene.is-ready .iso-chip.c3 { animation-delay: 2.4s; }

@keyframes iso-chip-in {
  from { opacity: 0; translate: -16px 0; }
  to { opacity: 1; translate: 0 0; }
}

/* 4. Sello ISO que "se estampa" sobre el edificio */
.iso-seal {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 50px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 12px 30px rgba(135, 64, 168, 0.35);
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.iso-seal i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.2);
}

/* Onda que sale del sello */
.iso-seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid var(--brand-purple);
  opacity: 0;
}

.iso-scene.is-ready .iso-seal {
  animation: iso-stamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.8s both;
}

.iso-scene.is-ready .iso-seal::after {
  animation: iso-ring 2.4s ease-out 3.5s infinite;
}

@keyframes iso-stamp {
  0% { opacity: 0; scale: 2.2; rotate: -12deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes iso-ring {
  0% { opacity: 0.8; scale: 1; }
  100% { opacity: 0; scale: 1.5; }
}

@media (max-width: 575px) {
  .iso-chip,
  .iso-seal {
    font-size: 11px;
    padding: 5px 10px 5px 5px;
  }

  .iso-chip i,
  .iso-seal i {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iso-scene:not(.is-ready) .iso-layer img,
  .iso-scene:not(.is-ready) .iso-chip,
  .iso-scene:not(.is-ready) .iso-seal {
    opacity: 1;
  }

  .iso-scene.is-ready .iso-layer img,
  .iso-scene.is-ready .iso-chip,
  .iso-scene.is-ready .iso-seal,
  .iso-scene.is-ready .iso-seal::after {
    animation: none;
  }
}

/* En pantallas chicas, las etiquetas se acomodan dentro del ancho */
@media (max-width: 575px) {
  .iso-seal {
    left: auto !important;
    right: 0;
  }

  .iso-chip.c1,
  .iso-chip.c3 {
    left: 0 !important;
  }

  .iso-chip.c2 {
    left: auto !important;
    right: 0;
  }
}

/*--------------------------------------------------------------
# Modalidades: equipo junto a las tarjetas
--------------------------------------------------------------*/
.iso-head-left {
  margin: 0 0 36px;
  text-align: left;
}

.iso-team {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 40px;
}

/* Círculo de marca detrás del equipo */
.iso-team::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(86, 170, 242, 0.35), transparent 65%),
    radial-gradient(circle at 70% 75%, rgba(135, 64, 168, 0.3), transparent 65%),
    var(--iso-soft);
  transition: scale 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Anillo punteado que gira alrededor */
.iso-team::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 104%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border: 2px dashed rgba(135, 64, 168, 0.25);
  animation: iso-team-spin 40s linear infinite;
}

.iso-team img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
  filter: drop-shadow(0 25px 35px rgba(15, 23, 51, 0.18));
}

@keyframes iso-team-spin {
  to { rotate: 360deg; }
}

@media (max-width: 991px) {
  .iso-team img {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iso-team::after {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Escena del hero sin animaciones (imagen fija)
--------------------------------------------------------------*/
.iso-scene .iso-layer img,
.iso-scene .iso-chip,
.iso-scene .iso-seal,
.iso-hero-visual::before {
  opacity: 1 !important;
  animation: none !important;
}

.iso-scene .iso-seal::after {
  display: none;
}

.iso-scene .iso-layer {
  transform: none !important;
  transition: none;
}

/* Tarjeta "Implementación" con el azul del logo */
.iso-plan.featured {
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
    linear-gradient(135deg, #2f7fd6 0%, var(--brand-blue) 100%);
  box-shadow: 0 25px 50px rgba(86, 170, 242, 0.35);
}

.iso-plan.featured .iso-plan-top {
  border-color: rgba(255, 255, 255, 0.3);
}

.iso-plan.featured .iso-plan-top > i {
  color: var(--brand-blue);
  background: #fff;
}

.iso-plan.featured .iso-plan-top p,
.iso-plan.featured li {
  color: #fff;
}

.iso-plan.featured li i {
  color: #fff;
}

/* Imagen del equipo en Preguntas frecuentes */
.iso-team-faq {
  margin-top: 30px;
}

.iso-team-faq img {
  max-width: 320px;
}

/* La foto de la mesa tiene bordes rectos: se difuminan a los lados y abajo */
.iso-team-faq img {
  max-width: 360px;
  -webkit-mask-image:
    linear-gradient(180deg, #000 75%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 75%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

/*--------------------------------------------------------------
# Planeta 3D (¿Qué es un SGSI?)
# Posiciones calculadas sobre la imagen original de 1039 x 1024
--------------------------------------------------------------*/
.iso-globe {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1039 / 1024;
  margin: 0 auto;
}

/* Disco de fondo con el borde que recorta la mano */
.iso-globe-disc {
  position: absolute;
  left: 0.4%;
  top: 0.3%;
  width: 99.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(86, 170, 242, 0.35);
  background:
    radial-gradient(circle at 50% 55%, rgba(86, 170, 242, 0.18), transparent 60%),
    var(--iso-soft);
}

.iso-globe-hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* El planeta: centro en 52.65% / 54.5%, diámetro 51.2% (+ margen para el brillo) */
.iso-globe-canvas {
  position: absolute;
  left: calc(52.65% - 27.8%);
  top: calc(54.5% - 28.2%);
  width: 55.6%;
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 51, 0.35)) drop-shadow(0 0 30px rgba(86, 170, 242, 0.35));
}

/* Planeta solo, sin marco ni mano */
.iso-globe {
  width: min(100%, 460px);
  aspect-ratio: 1;
}

.iso-globe .iso-globe-canvas {
  left: 0;
  top: 0;
  width: 100%;
}

/*--------------------------------------------------------------
# Consultoría en Ciberseguridad
--------------------------------------------------------------*/
/* La ilustración del hero se muestra completa, sin difuminar la base */
.iso-hero-visual > img.con-hero-img {
  max-width: 600px;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 25px 40px rgba(47, 127, 214, 0.18));
}

/* Fotos con esquinas redondeadas */
.con-photo {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 51, 0.18);
}

.con-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s;
}

.con-photo.tall img {
  aspect-ratio: 4 / 5;
}

.con-photo:hover img {
  transform: scale(1.04);
}

/* Franja de marcos de referencia (Consultoría) */
.con-frameworks {
  display: flex;
  align-items: stretch;
  margin-top: 50px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 51, 0.1);
  border: 1px solid var(--iso-line);
}

.con-fw-label {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  color: #fff;
  background: var(--brand-gradient);
  font-family: "Poppins", var(--heading-font);
  line-height: 1.2;
}

.con-fw-label span {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.con-fw-label strong {
  font-size: 22px;
  font-weight: 700;
}

.con-frameworks ul {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.con-frameworks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  border-left: 1px solid var(--iso-line);
  transition: background 0.3s;
}

.con-frameworks li:first-child {
  border-left: 0;
}

.con-frameworks li:hover {
  background: var(--iso-soft);
}

.con-frameworks li > i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--brand-purple);
  background: rgba(135, 64, 168, 0.1);
}

.con-frameworks li div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.con-frameworks li strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--iso-ink);
}

.con-frameworks li span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--default-color);
}

@media (max-width: 1199px) {
  .con-frameworks {
    flex-direction: column;
  }

  .con-fw-label {
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
    padding: 16px 24px;
  }

  .con-fw-label strong {
    font-size: 16px;
  }

  .con-frameworks ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .con-frameworks li:nth-child(odd) {
    border-left: 0;
  }

  .con-frameworks li:nth-child(n+3) {
    border-top: 1px solid var(--iso-line);
  }
}

@media (max-width: 575px) {
  .con-frameworks ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .con-frameworks li {
    border-left: 0;
  }

  .con-frameworks li + li {
    border-top: 1px solid var(--iso-line);
  }
}

/*--------------------------------------------------------------
# Franja de cifras (Consultoría)
--------------------------------------------------------------*/
.con-stats {
  padding: 90px 0 50px;
  color: var(--iso-ink);
  background: var(--brand-blue);
}

.con-stats-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.con-stats-lead {
  margin: 0;
  font-family: "Poppins", var(--heading-font);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.4;
}

.con-stat strong {
  display: block;
  font-family: "Poppins", var(--heading-font);
  font-size: clamp(44px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.con-stat > span {
  display: block;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
}

.con-stats-src {
  margin: 50px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 1199px) {
  .con-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .con-stats-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .con-stats {
    padding: 60px 0 40px;
  }

  .con-stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Ajuste de tamaño: las cifras caben en su columna sin encimarse */
.con-stats-grid {
  grid-template-columns: 0.9fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.con-stats-lead {
  font-size: clamp(20px, 1.8vw, 26px);
}

.con-stat strong {
  font-size: clamp(38px, 4vw, 56px);
  letter-spacing: -1.5px;
}

.con-stat strong small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 6px;
}

.con-stat strong small:first-child {
  margin-left: 0;
}

.con-stat > span {
  font-size: 16px;
}

/* Foto del rack en el hero de Consultoría */
.con-rack {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

/* Resplandor de marca detrás de la foto */
.con-rack::before {
  content: "";
  position: absolute;
  inset: 6% -8% -4% 8%;
  border-radius: 32px;
  background: var(--brand-gradient);
  opacity: 0.18;
  filter: blur(2px);
  transform: rotate(4deg);
}

.con-rack img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 51, 0.25);
}

@media (max-width: 991px) {
  .con-rack {
    width: min(100%, 340px);
  }
}

/* Fotos de Consultoría sin marco: sin esquinas redondeadas ni sombra */
.con-photo {
  border-radius: 0;
  box-shadow: none;
}

.con-photo img {
  border-radius: 0;
}

.con-photo:hover img {
  transform: none;
}

/* Ilustración "¿Por qué una consultoría?" */
.con-art {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

/* Cifras más grandes y centradas */
.con-stats {
  padding: 90px 0 50px;
  text-align: center;
}

.con-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 40px;
}

.con-stats-lead {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(22px, 2.4vw, 32px);
}

.con-stat strong {
  font-size: clamp(56px, 7.4vw, 108px);
  letter-spacing: -3px;
}

.con-stat > span {
  max-width: 300px;
  margin: 18px auto 0;
  font-size: 18px;
}

.con-stats-src {
  text-align: center;
}

@media (max-width: 767px) {
  .con-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .con-stat strong {
    font-size: clamp(60px, 18vw, 88px);
  }
}

/*--------------------------------------------------------------
# Peritaje y Análisis Forense
--------------------------------------------------------------*/
/* Fases de la investigación: línea que une cuatro pasos */
.for-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 60px 0 0;
}

.for-steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
  opacity: 0.35;
}

.for-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.for-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-size: 26px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 8px #fff, 0 12px 28px rgba(86, 170, 242, 0.35);
}

.for-steps strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--iso-ink);
}

.for-steps li > span:last-child {
  max-width: 220px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--default-color);
}

@media (max-width: 767px) {
  .for-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px;
  }

  .for-steps::before {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hacking Ético – Pentesting
--------------------------------------------------------------*/
/* Franja oscura de tipos de prueba */
.pen-band {
  padding: 70px 0;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(ellipse 50% 90% at 0% 0%, rgba(135, 64, 168, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 45% 80% at 100% 100%, rgba(86, 170, 242, 0.25) 0%, transparent 70%),
    var(--iso-navy);
}

.pen-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-bottom: 36px;
}

.pen-band-head > span {
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.pen-band-head p {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.pen-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pen-type {
  padding: 30px 28px 6px 0;
}

.pen-type + .pen-type {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.pen-type i {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
  color: var(--brand-blue);
}

.pen-type h3 {
  margin: 0 0 8px;
  font-family: "Poppins", var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.pen-type p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .pen-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pen-type,
  .pen-type + .pen-type {
    padding: 28px 20px 8px 0;
    border-left: 0;
  }

  .pen-type:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 575px) {
  .pen-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .pen-type:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .pen-type + .pen-type {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Escala de severidad */
.pen-sev {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pen-sev li {
  display: grid;
  grid-template-columns: 110px 110px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--iso-line);
  border-left-width: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.pen-sev strong {
  font-family: "Poppins", var(--heading-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--iso-ink);
  font-variant-numeric: tabular-nums;
}

.pen-sev-tag {
  justify-self: start;
  padding: 5px 14px;
  border-radius: 50px;
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.pen-sev .crit { border-left-color: #b91c1c; }
.pen-sev .crit .pen-sev-tag { background: #b91c1c; }
.pen-sev .high { border-left-color: #ea580c; }
.pen-sev .high .pen-sev-tag { background: #ea580c; }
.pen-sev .med { border-left-color: #d97706; }
.pen-sev .med .pen-sev-tag { background: #d97706; }
.pen-sev .low { border-left-color: #2f7fd6; }
.pen-sev .low .pen-sev-tag { background: #2f7fd6; }

@media (max-width: 767px) {
  .pen-sev li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
  }

  .pen-sev li > span:last-child {
    grid-column: 1 / -1;
  }
}

/*--------------------------------------------------------------
# Redes WiFi Indoor / Outdoor
--------------------------------------------------------------*/
.wifi-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}

.wifi-specs li {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(135, 64, 168, 0.3);
  background: rgba(135, 64, 168, 0.06);
  font-family: "Poppins", var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--iso-ink);
}

/* Plano animado */
.wifi-map {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.wm-cov {
  opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: wm-breathe 5s ease-in-out infinite;
}

.wm-cov.d2 { animation-delay: -1.6s; }
.wm-cov.d3 { animation-delay: -3.2s; }
.wm-cov.out { opacity: 0.22; fill: #56aaf2; animation-delay: -2.4s; }

.wm-ring {
  fill: none;
  stroke: var(--brand-purple);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: wm-pulse 3s ease-out infinite;
}

.wm-ring.r2 { animation-delay: 1.5s; }
.wm-ring.d2 { animation-delay: 0.5s; }
.wm-ring.d2.r2 { animation-delay: 2s; }
.wm-ring.d3 { animation-delay: 1s; }
.wm-ring.d3.r2 { animation-delay: 2.5s; }
.wm-ring.out { stroke: var(--brand-blue); animation-delay: 0.8s; }
.wm-ring.out.r2 { animation-delay: 2.3s; }

@keyframes wm-breathe {
  0%, 100% { opacity: 0.14; transform: scale(0.94); }
  50% { opacity: 0.28; transform: scale(1); }
}

@keyframes wm-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(4.2); }
}

/* Indoor / Outdoor */
.wifi-space {
  height: 100%;
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--iso-line);
}

.wifi-space.dark {
  color: rgba(255, 255, 255, 0.82);
  border-color: transparent;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(86, 170, 242, 0.3) 0%, transparent 70%),
    var(--iso-navy);
}

.wifi-space-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.wifi-space-top > i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 28px;
  color: #fff;
  background: var(--brand-gradient);
}

.wifi-space-top span {
  font-family: "Poppins", var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.wifi-space.dark .wifi-space-top span {
  color: var(--brand-blue);
}

.wifi-space h3 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--iso-ink);
}

.wifi-space.dark h3 {
  color: #fff;
}

.wifi-space p {
  margin-bottom: 20px;
}

.wifi-space ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wifi-space li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.wifi-space li i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: var(--brand-purple);
}

.wifi-space.dark li i {
  color: var(--brand-blue);
}

/* Señales de que la red falla */
.wifi-signs {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.wifi-signs li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--iso-line);
  font-weight: 500;
  line-height: 1.45;
  color: var(--iso-ink);
}

.wifi-signs li i {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--brand-purple);
}

@media (max-width: 575px) {
  .wifi-space {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-cov,
  .wm-ring {
    animation: none;
  }

  .wm-cov {
    opacity: 0.2;
  }
}

/*--------------------------------------------------------------
# Servidores y Firewall
--------------------------------------------------------------*/
.fw-map {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

/* Paquetes de datos: los buenos atraviesan el firewall, los malos se detienen */
.fw-pkt {
  opacity: 0;
}

.fw-pkt.ok {
  fill: #22c55e;
  animation: fw-pass 5s ease-in-out infinite;
}

.fw-pkt.bad {
  fill: #dc2626;
  animation: fw-block 5s ease-in-out infinite;
}

.fw-pkt.b { animation-delay: 1.6s; }
.fw-pkt.c { animation-delay: 3.2s; }

@keyframes fw-pass {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(255px); }
}

@keyframes fw-block {
  0% { opacity: 0; transform: translateX(0) scale(1); }
  8% { opacity: 1; }
  38% { opacity: 1; transform: translateX(98px) scale(1); }
  46% { opacity: 1; transform: translateX(98px) scale(1.7); }
  60% { opacity: 0; transform: translateX(98px) scale(2.4); }
  100% { opacity: 0; transform: translateX(98px) scale(2.4); }
}

@media (prefers-reduced-motion: reduce) {
  .fw-pkt {
    animation: none;
  }

  .fw-pkt.ok { opacity: 1; transform: translateX(150px); }
  .fw-pkt.bad { opacity: 1; transform: translateX(98px); }
}

/*--------------------------------------------------------------
# Radioenlaces
--------------------------------------------------------------*/
.rl-map {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.rl-zone {
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: center;
  animation: rl-breathe 6s ease-in-out infinite;
}

.rl-beam {
  stroke-dasharray: 10 10;
  animation: rl-dash 1.4s linear infinite;
}

.rl-pkt {
  fill: #fff;
  stroke: var(--brand-purple);
  stroke-width: 3;
  opacity: 0;
  animation: rl-travel 3.6s ease-in-out infinite;
}

.rl-pkt.b { animation-delay: 1.2s; stroke: var(--brand-blue); }
.rl-pkt.c { animation-delay: 2.4s; }

.rl-ring {
  fill: none;
  stroke: var(--brand-purple);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: rl-pulse 3s ease-out infinite;
}

.rl-ring.r2 { animation-delay: 1.5s; }
.rl-ring.d { stroke: var(--brand-blue); animation-delay: 0.7s; }
.rl-ring.d.r2 { animation-delay: 2.2s; }

@keyframes rl-breathe {
  0%, 100% { opacity: 0.1; transform: scaleY(0.85); }
  50% { opacity: 0.22; transform: scaleY(1); }
}

@keyframes rl-dash {
  to { stroke-dashoffset: -20; }
}

@keyframes rl-travel {
  0% { opacity: 0; transform: translateX(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(282px); }
}

@keyframes rl-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(4); }
}

@media (prefers-reduced-motion: reduce) {
  .rl-zone,
  .rl-beam,
  .rl-pkt,
  .rl-ring {
    animation: none;
  }

  .rl-pkt { opacity: 1; transform: translateX(141px); }
}

/*--------------------------------------------------------------
# Capacitaciones
--------------------------------------------------------------*/
.cap-map {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

/* Las barras crecen desde el suelo, una tras otra */
.cap-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: cap-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cap-bar.b2 { animation-delay: 0.45s; }
.cap-bar.b3 { animation-delay: 0.7s; }
.cap-bar.b4 { animation-delay: 0.95s; }

.cap-labels {
  animation: cap-fade 0.6s ease 1.5s both;
}

/* El birrete cae sobre la barra más alta y luego flota */
.cap-hat {
  animation: cap-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both;
}

.cap-hat > path:first-child {
  animation: cap-float 4s ease-in-out 2.8s infinite;
}

@keyframes cap-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes cap-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cap-drop {
  from { opacity: 0; transform: translate(440px, -40px) scale(0.6); }
  to { opacity: 1; transform: translate(440px, 28px) scale(1); }
}

@keyframes cap-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .cap-bar,
  .cap-labels,
  .cap-hat,
  .cap-hat > path:first-child {
    animation: none;
  }
}

/* Hero de ISO 27001: ejecutivo con laptop */
.iso-hero-visual > img.iso-exec {
  max-width: 480px;
}

/* Ilustración horizontal en columna ancha */
.con-art.wide {
  max-width: 600px;
}


/*--------------------------------------------------------------
# Fondo suave para el contenido bajo el hero
# (lavanda con resplandores de color en las esquinas)
--------------------------------------------------------------*/
.iso-section.iso-soft,
.iso-hero + .iso-section {
  position: relative;
  background:
    radial-gradient(ellipse 55% 75% at 0% 0%, rgba(86, 170, 242, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(135, 64, 168, 0.3) 0%, transparent 70%),
    #f1f0fd;
}

/* Ilustración de Pentesting más grande, aprovechando el ancho de su columna */
#que-es .con-art[src*="pentest-login"] {
  max-width: 100%;
  width: 112%;
  margin-left: -6%;
}

@media (max-width: 1199px) {
  #que-es .con-art[src*="pentest-login"] {
    width: 100%;
    margin-left: auto;
  }
}

/* Servidores y Firewall: esquema más grande y sin el resplandor de color de fondo */
#srv-hero .iso-hero-visual::before {
  display: none;
}

#srv-hero .fw-map {
  max-width: 560px;
}

@media (min-width: 1200px) {
  #srv-hero .fw-map {
    width: 118%;
    max-width: none;
    margin-left: -9%;
  }
}

/* Radioenlaces: escena más grande y limpia */
#rad-hero .iso-hero-visual::before {
  display: none;
}

#rad-hero .rl-map {
  max-width: 600px;
}

@media (min-width: 1200px) {
  #rad-hero .rl-map {
    width: 122%;
    max-width: none;
    margin-left: -11%;
  }
}

.rl-cloud {
  animation: rl-drift 14s ease-in-out infinite alternate;
}

.rl-cloud.b {
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

@keyframes rl-drift {
  from { transform: translateX(-12px); }
  to { transform: translateX(16px); }
}

.rl-blink {
  animation: rl-blink 1.6s ease-in-out infinite;
}

.rl-blink.d {
  animation-delay: 0.8s;
}

@keyframes rl-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.rl-win {
  animation: rl-twinkle 4s ease-in-out infinite;
}

.rl-win.w2 { animation-delay: 1.3s; }
.rl-win.w3 { animation-delay: 2.6s; }

@keyframes rl-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-cloud,
  .rl-blink,
  .rl-win {
    animation: none;
  }
}
