[x-cloak] { display: none !important; }

:root {
  --af-navy: #071a3d;
  --af-blue: #0b4dba;
  --af-blue-light: #29b6f6;
  --af-orange: #ff6b00;
  --af-orange-light: #ff9b42;
  --af-ink: #10213f;
  --af-muted: #63708a;
  --af-surface: #f4f7fb;
  --af-white: #ffffff;
  --af-border: rgba(7, 26, 61, 0.1);
  --af-shadow: 0 18px 50px rgba(7, 26, 61, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--af-surface);
  color: var(--af-ink);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

/* Encabezado institucional */
.af-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--af-border);
  box-shadow: 0 8px 30px rgba(7, 26, 61, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.af-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--af-orange) 0 20%,
    var(--af-blue) 45%,
    var(--af-blue-light) 100%
  );
}

.af-nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.af-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.af-logo {
  width: auto;
  height: 64px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.af-brand:hover .af-logo {
  transform: translateY(-2px);
}

.af-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.af-nav-link {
  position: relative;
  padding: 12px 11px;
  color: var(--af-ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.af-nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--af-orange), var(--af-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.af-nav-link:hover,
.af-nav-link:focus-visible {
  color: var(--af-blue);
}

.af-nav-link:hover::after,
.af-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.af-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 12px;
  color: var(--af-white);
  background: linear-gradient(135deg, var(--af-orange), #ff8a1f);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.af-header-cta:hover,
.af-header-cta:focus-visible {
  color: var(--af-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.34);
}

.af-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--af-border);
  border-radius: 12px;
  background: var(--af-white);
  color: var(--af-navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.af-mobile-panel {
  display: none;
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--af-border);
}

.af-mobile-inner {
  width: min(100%, 680px);
  margin: 0 auto;
  padding-top: 12px;
  display: grid;
  gap: 5px;
}

.af-mobile-link {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--af-ink);
  font-weight: 650;
  text-decoration: none;
}

.af-mobile-link:hover,
.af-mobile-link:focus-visible {
  color: var(--af-blue);
  background: rgba(11, 77, 186, 0.07);
}

.af-mobile-cta {
  margin-top: 8px;
}

.af-header a:focus-visible,
.af-header button:focus-visible {
  outline: 3px solid rgba(41, 182, 246, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .af-desktop-nav,
  .af-header > .af-nav-shell > .af-header-cta {
    display: none;
  }

  .af-menu-toggle {
    display: inline-flex;
  }

  .af-mobile-panel {
    display: block;
  }
}

@media (max-width: 640px) {
  .af-nav-shell {
    width: min(100% - 28px, 1180px);
    min-height: 72px;
  }

  .af-logo {
    height: 53px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .af-header * {
    transition: none;
  }
}
/* =========================================================
   IDENTIDAD EDITORIAL — PETRÓLEO, MARFIL Y TERRACOTA
   ========================================================= */

:root {
  --af-navy: #103b3f;
  --af-blue: #2f6f69;
  --af-blue-light: #a9bfaf;
  --af-orange: #c85f3d;
  --af-orange-light: #e39a78;
  --af-ink: #1d2b2c;
  --af-muted: #66726f;
  --af-surface: #f6f1e8;
  --af-white: #fffdf8;
  --af-border: rgba(29, 43, 44, 0.14);
  --af-shadow: 0 24px 60px rgba(29, 43, 44, 0.13);
}

body {
  color: var(--af-ink);
  background: var(--af-surface);
}

/* Encabezado */
.af-header {
  background: rgba(255, 253, 248, 0.95);
  border-bottom-color: rgba(16, 59, 63, 0.12);
  box-shadow: 0 8px 30px rgba(29, 43, 44, 0.07);
}

.af-header::before {
  background: linear-gradient(
    90deg,
    var(--af-orange) 0 30%,
    var(--af-blue-light) 30% 67%,
    var(--af-navy) 67% 100%
  );
}

.af-nav-link {
  color: var(--af-ink);
}

.af-nav-link::after {
  background: var(--af-orange);
}

.af-nav-link:hover,
.af-nav-link:focus-visible {
  color: var(--af-navy);
}

.af-header-cta {
  background: var(--af-navy);
  box-shadow: 0 11px 25px rgba(16, 59, 63, 0.22);
}

.af-header-cta:hover,
.af-header-cta:focus-visible {
  background: #174b4e;
  box-shadow: 0 15px 32px rgba(16, 59, 63, 0.28);
}

/* =========================================================
   ASESORÍAS FUTURO — IDENTIDAD FINANCIAMIENTO Y OPORTUNIDADES
   Diseño aprobado: azul cobalto, azul eléctrico y naranjo
   ========================================================= */

:root {
  --af2-cobalt-950: #04183f;
  --af2-cobalt-900: #06235f;
  --af2-cobalt-800: #0a327d;
  --af2-blue-600: #155eef;
  --af2-blue-500: #176bff;
  --af2-azure: #24b7ff;
  --af2-orange: #ff6b2c;
  --af2-amber: #ff9d2e;
  --af2-white: #ffffff;
  --af2-ice: #f4f8ff;
  --af2-text: #081b42;
  --af2-muted: #566783;
  --af2-border: rgba(8, 42, 115, 0.13);
  --af2-shadow: 0 24px 60px rgba(6, 35, 95, 0.15);
}

/* El contenido nuevo utiliza todo el ancho disponible */
main {
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
}

.af2-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.af2-section {
  position: relative;
  padding: 108px 0;
}

.af2-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--af2-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.af2-section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--af2-orange), var(--af2-amber));
}

.af2-kicker-light {
  color: #a9d8ff;
}

.af2-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 52px;
}

.af2-section-heading h2,
.af2-process h2,
.af2-final-cta h2 {
  margin: 0;
  color: var(--af2-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.15rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.af2-section-heading > p {
  margin: 0 0 4px;
  color: var(--af2-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =========================
   PORTADA
   ========================= */

.af2-hero {
  position: relative;
  min-height: 790px;
  padding: 78px max(20px, calc((100vw - 1180px) / 2)) 0;
  overflow: hidden;
  color: var(--af2-white);
  background:
    radial-gradient(circle at 52% 15%, rgba(36, 183, 255, 0.32), transparent 27%),
    linear-gradient(120deg, var(--af2-cobalt-950) 0%, var(--af2-cobalt-900) 34%, var(--af2-cobalt-800) 63%, #0b47aa 100%);
}

.af2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.af2-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(480px, 1.07fr);
  min-height: 570px;
  gap: 44px;
  align-items: center;
}

.af2-hero-copy {
  position: relative;
  z-index: 5;
  padding: 18px 0 100px;
}

.af2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: #d9ecff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.af2-eyebrow > span {
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--af2-orange), var(--af2-amber));
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.8);
}

.af2-hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--af2-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.8rem, 5.6vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.af2-hero h1 strong {
  display: inline;
  color: var(--af2-orange);
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(255, 107, 44, 0.22);
}

.af2-hero-copy > p {
  max-width: 610px;
  margin: 30px 0 0;
  color: #e8f3ff;
  font-size: clamp(1.06rem, 1.35vw, 1.25rem);
  line-height: 1.65;
}

.af2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.af2-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.af2-button:hover {
  transform: translateY(-3px);
}

.af2-button-primary {
  color: var(--af2-white);
  background: linear-gradient(135deg, var(--af2-orange), #ff861b);
  box-shadow: 0 16px 34px rgba(255, 107, 44, 0.29);
}

.af2-button-primary:hover {
  color: var(--af2-white);
  box-shadow: 0 20px 42px rgba(255, 107, 44, 0.42);
}

.af2-button-outline {
  color: var(--af2-white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.af2-button-outline:hover {
  color: var(--af2-white);
  border-color: var(--af2-white);
  background: rgba(255, 255, 255, 0.13);
}

.af2-hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 610px;
}

.af2-photo-shape {
  position: absolute;
  top: -22px;
  right: -90px;
  bottom: 0;
  left: -30px;
  overflow: hidden;
  border-radius: 49% 0 0 42%;
  background: #0c4baa;
  box-shadow: -35px 28px 80px rgba(0, 0, 0, 0.25);
}

.af2-photo-shape::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 35, 95, 0.72) 0%, rgba(6, 35, 95, 0.08) 35%, transparent 62%),
    linear-gradient(0deg, rgba(4, 24, 63, 0.42), transparent 48%);
}

.af2-photo-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.af2-opportunity-badge {
  position: absolute;
  z-index: 5;
  top: 45px;
  right: 18px;
  display: flex;
  width: 285px;
  align-items: center;
  gap: 16px;
  padding: 15px 19px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  color: var(--af2-white);
  background: linear-gradient(135deg, rgba(255,255,255,0.23), rgba(255,255,255,0.09));
  box-shadow: 0 18px 45px rgba(4, 24, 63, 0.22);
  backdrop-filter: blur(18px);
}

.af2-opportunity-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: var(--af2-orange);
  background: rgba(255,255,255,0.14);
  font-size: 1.45rem;
}

.af2-opportunity-badge > span:last-child {
  display: flex;
  flex-direction: column;
  color: #e9f4ff;
  font-size: 0.79rem;
  line-height: 1.35;
}

.af2-opportunity-badge strong {
  margin-bottom: 3px;
  color: var(--af2-white);
  font-size: 1rem;
}

.af2-wave {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid transparent;
}

.af2-wave-one {
  width: 920px;
  height: 440px;
  top: -175px;
  left: 28%;
  transform: rotate(-13deg);
  border-bottom-color: var(--af2-azure);
  box-shadow:
    0 8px 18px rgba(36, 183, 255, 0.5),
    inset 0 -8px 18px rgba(36, 183, 255, 0.28);
}

.af2-wave-two {
  width: 1040px;
  height: 500px;
  left: -160px;
  bottom: -320px;
  transform: rotate(8deg);
  border-top-color: var(--af2-orange);
  box-shadow:
    0 -7px 18px rgba(255, 107, 44, 0.46),
    inset 0 7px 18px rgba(255, 107, 44, 0.22);
}

.af2-dot-pattern {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 78px;
  width: 300px;
  height: 210px;
  opacity: 0.35;
  background-image: radial-gradient(var(--af2-azure) 1.4px, transparent 1.4px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, black, transparent);
}

.af2-guidance {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  width: min(1320px, calc(100vw - 80px));
  min-height: 118px;
  margin: -48px auto 0;
  padding: 18px 28px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 28px;
  color: var(--af2-text);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 24px 65px rgba(4, 24, 63, 0.23);
  backdrop-filter: blur(18px);
}

.af2-guidance-heading {
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

/* =========================
   FRANJA DE VALOR
   ========================= */

/* =========================
   SERVICIOS
   ========================= */

.af2-services {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(36,183,255,0.13), transparent 30%),
    var(--af2-ice);
}

.af2-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.af2-service-card {
  position: relative;
  min-height: 380px;
  padding: 31px 27px;
  overflow: hidden;
  border: 1px solid var(--af2-border);
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 42px rgba(6, 35, 95, 0.07);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.af2-service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(21, 94, 239, 0.34);
  box-shadow: 0 25px 55px rgba(6, 35, 95, 0.15);
}

.af2-service-featured {
  color: var(--af2-white);
  border-color: transparent;
  background:
    radial-gradient(circle at 95% 5%, rgba(36,183,255,0.34), transparent 30%),
    linear-gradient(145deg, var(--af2-cobalt-900), var(--af2-blue-600));
}

.af2-service-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: rgba(8, 27, 66, 0.22);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.af2-service-featured .af2-service-number {
  color: rgba(255,255,255,0.5);
}

.af2-service-icon {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 18px;
  color: var(--af2-blue-600);
  background: #eaf1ff;
  font-size: 1.45rem;
}

.af2-service-featured .af2-service-icon {
  color: var(--af2-orange);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13);
}

.af2-service-card h3 {
  margin: 0 0 16px;
  color: var(--af2-text);
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.16;
}

.af2-service-card p {
  margin: 0;
  color: var(--af2-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.af2-service-featured h3,
.af2-service-featured p {
  color: var(--af2-white);
}

.af2-service-featured p {
  color: #dcecff;
}

.af2-service-link {
  position: absolute;
  right: 27px;
  bottom: 28px;
  left: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--af2-blue-600);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.af2-service-featured .af2-service-link {
  color: #bfe4ff;
}

/* =========================
   PROCESO
   ========================= */

.af2-process {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  color: var(--af2-white);
  background:
    linear-gradient(115deg, var(--af2-cobalt-950), var(--af2-cobalt-800) 68%, #0b4cac);
}

.af2-process::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: radial-gradient(rgba(255,255,255,0.75) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.af2-process-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(36, 183, 255, 0.18);
  filter: blur(70px);
}

.af2-process-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 95px;
  align-items: center;
}

.af2-process h2 {
  color: var(--af2-white);
}

.af2-process-intro > p {
  margin: 26px 0 0;
  color: #d7e9ff;
  font-size: 1.02rem;
  line-height: 1.8;
}

.af2-process-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--af2-white);
  font-weight: 800;
  text-decoration: none;
}

.af2-process-link:hover {
  color: var(--af2-orange);
}

.af2-process-steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af2-process-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 32px;
  width: 2px;
  background: linear-gradient(var(--af2-orange), var(--af2-azure));
}

.af2-process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 23px;
  align-items: center;
  padding: 17px 0;
}

.af2-process-steps li > span {
  z-index: 2;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  color: var(--af2-white);
  background: linear-gradient(145deg, var(--af2-orange), var(--af2-amber));
  box-shadow: 0 12px 28px rgba(255, 107, 44, 0.24);
  font-weight: 900;
}

.af2-process-steps li > div {
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
}

.af2-process-steps h3 {
  margin: 0 0 6px;
  color: var(--af2-white);
  font-size: 1.05rem;
  font-weight: 850;
}

.af2-process-steps p {
  margin: 0;
  color: #bdd6f5;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* =========================
   EXPERIENCIA
   ========================= */

.af2-experience {
  background: var(--af2-white);
}

.af2-heading-centered {
  grid-template-columns: 1fr;
  max-width: 830px;
  gap: 20px;
  margin-inline: auto;
  text-align: center;
}

.af2-heading-centered .af2-section-kicker {
  justify-content: center;
}

.af2-heading-centered > p {
  max-width: 660px;
  margin-inline: auto;
}

.af2-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.af2-experience-card {
  position: relative;
  min-height: 305px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--af2-border);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(244,248,255,0.98));
  box-shadow: 0 16px 42px rgba(6, 35, 95, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.af2-experience-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -75px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(21, 94, 239, 0.06);
  border-radius: 50%;
}

.af2-experience-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 55px rgba(6, 35, 95, 0.13);
}

.af2-experience-tag {
  color: var(--af2-blue-600);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.af2-experience-card h3 {
  margin: 12px 0;
  color: var(--af2-text);
  font-size: 1.27rem;
  font-weight: 850;
  line-height: 1.25;
}

.af2-experience-card p {
  margin: 0;
  color: var(--af2-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* =========================
   NOSOTROS
   ========================= */

/* =========================
   CTA FINAL
   ========================= */

.af2-final-cta {
  position: relative;
  padding: 105px 0;
  overflow: hidden;
  color: var(--af2-white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(36,183,255,0.35), transparent 36%),
    linear-gradient(125deg, var(--af2-cobalt-950), var(--af2-cobalt-800), #0a48aa);
}

.af2-final-content {
  position: relative;
  z-index: 3;
}

.af2-final-cta h2 {
  max-width: 850px;
  margin-inline: auto;
  color: var(--af2-white);
}

.af2-final-cta p {
  max-width: 680px;
  margin: 24px auto 32px;
  color: #d8ebff;
  font-size: 1.05rem;
  line-height: 1.75;
}

.af2-final-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.af2-final-wave-one {
  width: 720px;
  height: 260px;
  top: -160px;
  left: -80px;
  border-bottom: 3px solid var(--af2-orange);
  transform: rotate(-8deg);
  box-shadow: 0 10px 24px rgba(255,107,44,0.36);
}

.af2-final-wave-two {
  width: 800px;
  height: 300px;
  right: -170px;
  bottom: -210px;
  border-top: 3px solid var(--af2-azure);
  transform: rotate(9deg);
  box-shadow: 0 -10px 24px rgba(36,183,255,0.34);
}

/* =========================
   ADAPTACIÓN RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .af2-hero {
    padding-inline: 34px;
  }

  .af2-hero-grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .af2-hero h1 {
    font-size: clamp(3.7rem, 7vw, 5.5rem);
  }

  .af2-photo-shape {
    right: -130px;
  }

  .af2-guidance {
    grid-template-columns: 1fr 1fr;
  }

  .af2-guidance-heading {
    display: none;
  }

  .af2-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 820px) {
  .af2-section {
    padding: 82px 0;
  }

  .af2-hero {
    min-height: auto;
    padding: 65px 24px 0;
  }

  .af2-hero-grid {
    grid-template-columns: 1fr;
  }

  .af2-hero-copy {
    padding-bottom: 20px;
  }

  .af2-hero h1 {
    font-size: clamp(3.3rem, 13vw, 5rem);
  }

  .af2-hero-visual {
    min-height: 500px;
  }

  .af2-photo-shape {
    top: 0;
    right: -24px;
    left: -24px;
    border-radius: 44% 44% 0 0;
  }

  .af2-guidance {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .af2-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .af2-process-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .af2-experience-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .af2-container {
    width: min(100% - 28px, 1180px);
  }

  .af2-hero {
    padding-inline: 15px;
  }

  .af2-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  .af2-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .af2-hero-actions {
    flex-direction: column;
  }

  .af2-button {
    width: 100%;
  }

  .af2-hero-visual {
    min-height: 410px;
  }

  .af2-opportunity-badge {
    top: 20px;
    right: 0;
    width: 235px;
  }

  .af2-services-grid {
    grid-template-columns: 1fr;
  }

  .af2-service-card {
    min-height: 350px;
  }

  .af2-process-steps li {
    grid-template-columns: 50px 1fr;
    gap: 14px;
  }

  .af2-process-steps li > span {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .af2-process-steps::before {
    left: 24px;
  }

    /* Corrección móvil: evita que la portada se salga de la pantalla */
  .af2-hero-grid,
  .af2-hero-copy,
  .af2-hero-visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .af2-hero {
    width: 100%;
    max-width: 100%;
    padding: 48px 15px 0;
  }

  .af2-eyebrow {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 9px;
    margin-bottom: 22px;
    font-size: 0.56rem;
    line-height: 1.45;
    letter-spacing: 0.09em;
  }

  .af2-eyebrow > span {
    flex: 0 0 28px;
    width: 28px;
  }

  .af2-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .af2-hero-copy > p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .af2-hero-actions,
  .af2-button {
    width: 100%;
    max-width: 100%;
  }

  .af2-button {
    box-sizing: border-box;
    padding-inline: 16px;
    text-align: center;
  }

}

/* Ajuste de proporciones de la portada */
@media (min-width: 1101px) {
  .af2-hero {
    min-height: 700px;
  }

  .af2-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
    min-height: 520px;
  }

  .af2-hero-copy {
    padding: 0 0 70px;
  }

  .af2-hero h1 {
    max-width: 610px;
    font-size: clamp(4rem, 4.15vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
  }

  .af2-hero-copy > p {
    max-width: 560px;
    margin-top: 24px;
  }

  .af2-hero-actions {
    margin-top: 28px;
  }

  .af2-hero-visual {
    min-height: 545px;
  }

  .af2-photo-shape {
    top: -10px;
    right: calc(-1 * max(34px, calc((100vw - 1180px) / 2)));
    bottom: 0;
    left: -15px;
  }

  .af2-opportunity-badge {
    right: 8px;
  }

  .af2-guidance {
    margin-top: -62px;
  }
}

/* Portada con ilustración propia de Asesorías Futuro */
@media (min-width: 1101px) {
  .af2-hero {
    min-height: 720px;
    padding-right: max(36px, calc((100vw - 1450px) / 2));
    padding-left: max(36px, calc((100vw - 1450px) / 2));
  }

  .af2-hero-grid {
    grid-template-columns: minmax(620px, 0.92fr) minmax(650px, 1.08fr);
    min-height: 545px;
    gap: 20px;
  }

  .af2-hero-copy {
    padding-bottom: 68px;
  }

  .af2-hero h1 {
    max-width: 690px;
    font-size: clamp(4.25rem, 4.45vw, 5.35rem);
    line-height: 0.94;
  }

  .af2-hero-copy > p {
    max-width: 610px;
  }

  .af2-hero-actions {
    flex-wrap: nowrap;
  }

  .af2-hero-visual {
    min-height: 570px;
  }

  .af2-photo-shape {
    top: -15px;
    right: -60px;
    bottom: 5px;
    left: -55px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .af2-photo-shape::before {
    display: none;
  }

  .af2-photo-shape img {
    object-fit: contain;
    object-position: center;
    filter: none;
  }

  /* La insignia de oportunidades no se muestra en esta portada de escritorio. */
  .af2-opportunity-badge {
    display: none;
  }

  .af2-wave-one {
    left: 43%;
  }

  .af2-guidance {
    margin-top: -62px;
  }
}

/* Ajuste de fondos cálidos y franja tecnológica */
.af2-wave-one,
.af2-wave-two {
  display: none;
}

.af2-guidance {
  color: #ffffff;
  border: 1px solid rgba(255, 157, 46, 0.55);
  background:
    linear-gradient(
      135deg,
      rgba(6, 35, 95, 0.94),
      rgba(10, 50, 125, 0.9)
    );
  box-shadow:
    0 22px 55px rgba(4, 24, 63, 0.35),
    0 0 24px rgba(255, 107, 44, 0.16);
  backdrop-filter: blur(18px);
}

.af2-guidance-heading {
  color: #ffffff;
}

.af2-services {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(255, 157, 46, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 5% 88%,
      rgba(36, 183, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #fff8f1, #fff1e4);
}

.af2-experience {
  background:
    linear-gradient(
      135deg,
      #fffaf5 0%,
      #fff3e8 55%,
      #f7faff 100%
    );
}

.af2-service-card,
.af2-experience-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.af2-hero h1 > span {
  display: block;
}

/* Fondos naranjos luminosos para las secciones informativas */
main {
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 224, 170, 0.75),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #ffb23f 0%,
      #ff812e 48%,
      #ff5f2e 100%
    );
}

.af2-services {
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(255, 238, 196, 0.9),
      transparent 25%
    ),
    radial-gradient(
      circle at 8% 82%,
      rgba(255, 95, 46, 0.38),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #ffd19a 0%,
      #ffad5c 50%,
      #ff7b3b 100%
    );
}

.af2-experience {
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 241, 209, 0.88),
      transparent 24%
    ),
    linear-gradient(
      145deg,
      #ffbe75 0%,
      #ff9147 58%,
      #ff6a32 100%
    );
}

.af2-service-card,
.af2-experience-card {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 45px rgba(105, 35, 7, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
}

/* =========================================================
   AJUSTE DE EQUILIBRIO VISUAL
   Mantiene el naranja llamativo, pero separa mejor cada sección
   ========================================================= */

/* Fondo general cálido: reemplaza el blanco puro */
main {
  background:
    radial-gradient(
      circle at 15% 8%,
      rgba(255, 194, 105, 0.38),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #fff1dc 0%,
      #ffe3bd 100%
    );
}

/* Servicios: naranja luminoso, pero menos saturado */
.af2-services {
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 245, 218, 0.95),
      transparent 25%
    ),
    radial-gradient(
      circle at 8% 85%,
      rgba(255, 111, 44, 0.32),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #ffd89e 0%,
      #ffb467 52%,
      #ff8745 100%
    );
}

/* Tarjetas claras para que el contenido sea fácil de leer */
.af2-service-card,
.af2-service-card:first-child {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(
      145deg,
      rgba(255, 252, 247, 0.96),
      rgba(255, 237, 218, 0.92)
    );
  color: #08245c;
  box-shadow:
    0 18px 42px rgba(105, 39, 8, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

/* Corrige especialmente el texto blanco de la primera tarjeta */
.af2-service-card:first-child h3,
.af2-service-card:first-child p {
  color: #08245c;
}

/* Experiencia: naranja más intenso con destellos luminosos */
.af2-experience {
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(255, 238, 193, 0.92),
      transparent 25%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(255, 184, 75, 0.62),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #ffbe68 0%,
      #ff8a3d 55%,
      #ff6231 100%
    );
}

/* Tarjetas de experiencia con contraste y efecto tipo cristal */
.af2-experience-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 248, 239, 0.92);
  box-shadow:
    0 20px 45px rgba(101, 31, 6, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

/* Bloque institucional: transición entre naranja y azul */

/* Suaviza el panel interior y conserva buena lectura */

/* Mejora el contraste del enlace en la primera tarjeta de servicios */
.af2-service-card:first-child .af2-service-link {
  color: #0b57d0;
}

/* =========================================================
   PÁGINA NOSOTROS — IDENTIDAD ASERORÍAS FUTURO
   Prefijo afn: evita conflictos con los estilos del Inicio
   ========================================================= */

.afn-page {
  --afn-blue-dark: #061f55;
  --afn-blue: #0d47a1;
  --afn-blue-bright: #176bff;
  --afn-orange: #ff6b2c;
  --afn-amber: #ffad3d;
  --afn-cream: #fff2df;
  --afn-text: #071d4c;
  overflow: hidden;
  background: var(--afn-cream);
  color: var(--afn-text);
}

.afn-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* -------------------------
   Portada
   ------------------------- */

.afn-hero {
  position: relative;
  isolation: isolate;
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    linear-gradient(
      125deg,
      #041a49 0%,
      #0a3d91 52%,
      #176bff 100%
    );
}

.afn-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(67, 175, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 175, 255, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
}

.afn-hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.afn-hero-glow-one {
  top: -230px;
  left: 30%;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(32, 192, 255, 0.65);
  box-shadow: 0 0 55px rgba(32, 192, 255, 0.4);
}

.afn-hero-glow-two {
  right: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  background: rgba(255, 107, 44, 0.15);
  box-shadow: 0 0 90px rgba(255, 107, 44, 0.38);
}

.afn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 76px;
  align-items: center;
}

.afn-label,
.afn-section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--afn-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.afn-label i {
  font-size: 0.58rem;
  text-shadow: 0 0 14px rgba(255, 107, 44, 0.9);
}

.afn-hero-copy h1 {
  max-width: 690px;
  margin: 24px 0;
  color: #ffffff;
  font-size: clamp(3.3rem, 5.2vw, 5.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.afn-hero-copy h1 span {
  display: block;
  color: var(--afn-orange);
}

.afn-hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.afn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.afn-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.afn-button:hover {
  transform: translateY(-3px);
}

.afn-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff632d, #ff9830);
  box-shadow:
    0 16px 34px rgba(255, 107, 44, 0.3),
    0 0 22px rgba(255, 154, 48, 0.18);
}

.afn-button-secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.afn-button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Fotografía institucional */

.afn-hero-visual {
  position: relative;
  min-height: 530px;
  padding: 24px 30px 24px 52px;
}

.afn-image-frame {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 34px 8px 34px 8px;
  background: #ffffff;
  box-shadow:
    0 34px 75px rgba(1, 18, 58, 0.42),
    18px 18px 0 rgba(255, 107, 44, 0.92);
}

.afn-image-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.afn-image-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      180deg,
      transparent 45%,
      rgba(4, 24, 68, 0.82) 100%
    );
  pointer-events: none;
}

.afn-image-caption {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.afn-caption-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--afn-orange);
  background: rgba(5, 33, 86, 0.76);
  backdrop-filter: blur(10px);
}

.afn-image-caption strong {
  display: block;
  margin-bottom: 2px;
}

.afn-image-caption span:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.afn-vertical-text {
  position: absolute;
  top: 50%;
  left: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

/* -------------------------
   Quiénes somos
   ------------------------- */

.afn-section {
  padding: 104px 0;
}

.afn-identity {
  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(255, 184, 77, 0.48),
      transparent 24%
    ),
    linear-gradient(135deg, #fff1d8, #ffbd72);
}

.afn-identity-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: start;
}

.afn-section-heading h2,
.afn-purpose-heading h2,
.afn-values-intro h2 {
  margin: 18px 0 0;
  color: var(--afn-text);
  font-size: clamp(2.7rem, 4.7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.afn-identity-copy {
  padding-top: 28px;
  color: #315078;
  font-size: 1rem;
  line-height: 1.85;
}

.afn-identity-copy p {
  margin: 0 0 22px;
}

.afn-identity-copy .afn-lead {
  color: var(--afn-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.55;
}

.afn-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 24px 55px rgba(106, 49, 13, 0.15);
  backdrop-filter: blur(12px);
}

.afn-principle {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 18px;
  padding: 30px;
}

.afn-principle + .afn-principle {
  border-left: 1px solid rgba(9, 48, 105, 0.14);
}

.afn-principle-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(145deg, #ff662e, #ff9b33);
  box-shadow: 0 12px 24px rgba(255, 107, 44, 0.24);
}

.afn-principle h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 850;
}

.afn-principle p {
  margin: 0;
  color: #506786;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* -------------------------
   Misión y visión
   ------------------------- */

.afn-purpose {
  position: relative;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(26, 112, 255, 0.55),
      transparent 28%
    ),
    linear-gradient(135deg, #061e54, #0c46a0);
}

.afn-purpose-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.afn-section-label-light {
  color: #ff9b35;
}

.afn-purpose-heading h2 {
  color: #ffffff;
}

.afn-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.afn-purpose-card {
  position: relative;
  min-height: 340px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 13, 50, 0.26);
  backdrop-filter: blur(14px);
}

.afn-purpose-card::after {
  position: absolute;
  right: -85px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(35, 188, 255, 0.5);
  border-radius: 50%;
  content: "";
}

.afn-card-number {
  position: absolute;
  top: 34px;
  right: 38px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.afn-purpose-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #ff642d, #ffad3d);
  box-shadow: 0 14px 30px rgba(255, 107, 44, 0.32);
}

.afn-purpose-card h3 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  font-weight: 850;
}

.afn-purpose-card p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

/* -------------------------
   Valores
   ------------------------- */

.afn-values {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 238, 195, 0.95),
      transparent 24%
    ),
    linear-gradient(135deg, #ffd79b, #ff9a50 58%, #ff7138);
}

.afn-values-intro {
  max-width: 850px;
  margin: 0 auto 54px;
  text-align: center;
}

.afn-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.afn-value-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 249, 240, 0.92);
  box-shadow: 0 20px 44px rgba(100, 35, 7, 0.15);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.afn-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(85, 28, 5, 0.22);
}

.afn-value-card > span {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(7, 29, 76, 0.25);
  font-size: 0.76rem;
  font-weight: 900;
}

.afn-value-card > i {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 15px;
  color: var(--afn-orange);
  background: #fff1e8;
}

.afn-value-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  font-weight: 850;
}

.afn-value-card p {
  margin: 0;
  color: #506786;
  line-height: 1.65;
}

/* -------------------------
   Llamado final
   ------------------------- */

.afn-final {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #041a49, #0d4cac);
}

.afn-final-glow {
  position: absolute;
  top: -240px;
  right: -100px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(35, 188, 255, 0.52);
  border-radius: 50%;
  box-shadow:
    0 0 38px rgba(35, 188, 255, 0.35),
    inset 0 0 38px rgba(35, 188, 255, 0.18);
}

.afn-final-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.afn-final h2 {
  margin: 14px 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.afn-final p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

/* -------------------------
   Adaptación para tablet
   ------------------------- */

@media (max-width: 1024px) {
  .afn-hero-grid,
  .afn-identity-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .afn-hero-copy {
    max-width: 780px;
  }

  .afn-hero-visual {
    min-height: auto;
  }

  .afn-principles {
    grid-template-columns: 1fr;
  }

  .afn-principle + .afn-principle {
    border-top: 1px solid rgba(9, 48, 105, 0.14);
    border-left: 0;
  }

  .afn-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------
   Adaptación para celular
   ------------------------- */

@media (max-width: 700px) {
  .afn-container {
    width: min(100% - 30px, 1180px);
  }

  .afn-hero {
    padding: 62px 0 72px;
  }

  .afn-hero-copy h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .afn-actions {
    flex-direction: column;
  }

  .afn-button {
    width: 100%;
  }

  .afn-hero-visual {
    min-height: 400px;
    padding: 10px 10px 10px 22px;
  }

  .afn-image-frame {
    min-height: 390px;
  }

  .afn-image-frame img {
    height: 390px;
  }

  .afn-vertical-text {
    left: -4px;
  }

  .afn-section {
    padding: 76px 0;
  }

  .afn-section-heading h2,
  .afn-purpose-heading h2,
  .afn-values-intro h2 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .afn-purpose-grid,
  .afn-values-grid {
    grid-template-columns: 1fr;
  }

  .afn-purpose-card {
    min-height: auto;
    padding: 34px 28px;
  }

  .afn-value-card {
    min-height: 240px;
  }

  .afn-final-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   FOOTER INSTITUCIONAL — ASERORÍAS FUTURO
   Azul tecnológico con acentos naranjos
   ========================================================= */

.aff-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 84% 20%,
      rgba(23, 107, 255, 0.42),
      transparent 27%
    ),
    linear-gradient(
      125deg,
      #03163f 0%,
      #062964 52%,
      #0b48a7 100%
    );
}

.aff-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background:
    linear-gradient(
      90deg,
      #ff632d,
      #ffab36,
      #25baff,
      #176bff
    );
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.58);
}

.aff-footer::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(74, 169, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 169, 255, 0.2) 1px, transparent 1px);
  background-size: 72px 72px;
}

.aff-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.aff-footer-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.aff-footer-glow-one {
  top: -260px;
  left: -170px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(255, 107, 44, 0.52);
  box-shadow:
    0 0 35px rgba(255, 107, 44, 0.3),
    inset 0 0 35px rgba(255, 107, 44, 0.18);
}

.aff-footer-glow-two {
  right: -160px;
  bottom: -250px;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(35, 188, 255, 0.48);
  box-shadow: 0 0 42px rgba(35, 188, 255, 0.28);
}

.aff-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 58px;
}

.aff-logo {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aff-logo img {
  width: auto;
  height: 62px;
}

.aff-brand > p {
  max-width: 440px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.75;
}

.aff-socials {
  display: flex;
  gap: 11px;
}

.aff-socials a {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.aff-socials a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 154, 48, 0.72);
  background: linear-gradient(145deg, #ff642d, #ff9830);
  box-shadow: 0 12px 24px rgba(255, 107, 44, 0.24);
}

.aff-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #ff9a31;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aff-heading::before {
  width: 24px;
  height: 2px;
  content: "";
  background: #ff6b2c;
  box-shadow: 0 0 10px rgba(255, 107, 44, 0.76);
}

.aff-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 22px;
}

.aff-links ul,
.aff-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aff-links li + li {
  margin-top: 14px;
}

.aff-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.aff-links a i {
  color: #ff7b31;
  font-size: 0.68rem;
}

.aff-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.aff-contact > p {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.45;
}

.aff-contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 0 20px;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #ff632d, #ff9930);
  box-shadow: 0 14px 30px rgba(255, 107, 44, 0.25);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.aff-contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(255, 107, 44, 0.34);
}

.aff-contact-list {
  display: grid;
  gap: 13px;
}

.aff-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

.aff-contact-list i {
  width: 16px;
  margin-top: 3px;
  color: #32bcff;
  text-align: center;
}

.aff-contact-list a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.aff-contact-list a:hover {
  color: #ffffff;
}

.aff-bottom {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
}

.aff-bottom p {
  margin: 0;
}

.aff-bottom span {
  color: rgba(255, 154, 48, 0.76);
  font-style: italic;
}

/* Footer en tablet */
@media (max-width: 1024px) {
  .aff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aff-brand {
    grid-column: 1 / -1;
  }
}

/* Footer en celular */
@media (max-width: 700px) {
  .aff-footer {
    padding-top: 58px;
  }

  .aff-container {
    width: min(100% - 30px, 1180px);
  }

  .aff-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .aff-brand {
    grid-column: auto;
  }

  .aff-link-columns {
    max-width: 360px;
  }

  .aff-bottom {
    min-height: 110px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
  }
}

/* ==========================================================
   CONTACTO — IDENTIDAD TECNOLÓGICA AZUL Y NARANJA
   Prefijo: afc = Asesorías Futuro Contacto
   ========================================================== */

.afc-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 24px 80px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 75% 8%,
      rgba(0, 174, 255, 0.24),
      transparent 31%
    ),
    radial-gradient(
      circle at 5% 76%,
      rgba(255, 105, 24, 0.2),
      transparent 28%
    ),
    linear-gradient(135deg, #031b4d 0%, #07377d 48%, #0757c8 100%);
}

/* Cuadrícula tecnológica situada detrás del contenido */
.afc-grid {
  position: absolute;
  z-index: -4;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(104, 197, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 197, 255, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Luces ambientales */
.afc-glow {
  position: absolute;
  z-index: -3;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.afc-glow-one {
  top: -180px;
  right: 8%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(20, 190, 255, 0.58);
  box-shadow:
    0 0 90px rgba(0, 176, 255, 0.24),
    inset 0 0 80px rgba(0, 176, 255, 0.14);
}

.afc-glow-two {
  bottom: -260px;
  left: -130px;
  width: 520px;
  height: 520px;
  background: rgba(255, 103, 24, 0.1);
  border: 1px solid rgba(255, 126, 45, 0.45);
  box-shadow: 0 0 100px rgba(255, 103, 24, 0.22);
}

.afc-orbit {
  position: absolute;
  z-index: -2;
  top: 270px;
  right: -120px;
  width: 680px;
  height: 220px;
  border-top: 2px solid rgba(0, 204, 255, 0.72);
  border-radius: 50%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.85));
  pointer-events: none;
}

.afc-container {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* Encabezado principal */

.afc-eyebrow,
.afc-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ff8438;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.afc-eyebrow span {
  display: block;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff651b, #ffb057);
  box-shadow: 0 0 12px rgba(255, 112, 29, 0.76);
}

/* Mensajes generales de Django */
.afc-messages {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.afc-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(7, 28, 69, 0.82);
  box-shadow: 0 14px 30px rgba(0, 10, 38, 0.22);
  backdrop-filter: blur(12px);
}

.afc-message-success {
  border-color: rgba(50, 220, 149, 0.52);
}

.afc-message-success i {
  color: #3de4a0;
}

.afc-message-error {
  border-color: rgba(255, 120, 89, 0.62);
}

.afc-message-error i {
  color: #ff805e;
}

/* Estructura de los dos paneles */
.afc-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.48fr);
  overflow: hidden;
  border: 1px solid rgba(118, 198, 255, 0.34);
  border-radius: 28px;
  background: rgba(4, 29, 72, 0.65);
  box-shadow:
    0 36px 80px rgba(0, 10, 38, 0.42),
    0 0 40px rgba(0, 166, 255, 0.08);
  backdrop-filter: blur(18px);
}

/* Panel izquierdo */
.afc-info-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px 36px;
  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 112, 39, 0.2),
      transparent 42%
    ),
    linear-gradient(
      155deg,
      rgba(3, 23, 59, 0.98),
      rgba(7, 52, 119, 0.94)
    );
}

.afc-info-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(
    transparent,
    rgba(46, 190, 255, 0.72),
    rgba(255, 116, 37, 0.6),
    transparent
  );
}

.afc-info-panel h2,
.afc-form-panel h2,
.afc-success h2 {
  margin: 13px 0 12px;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.afc-form-intro {
  margin: 0;
  color: #b9cee9;
  font-size: 0.95rem;
  line-height: 1.65;
}

.afc-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.afc-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(131, 197, 255, 0.17);
  border-radius: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

a.afc-contact-item:hover {
  transform: translateX(5px);
  border-color: rgba(255, 128, 51, 0.68);
  color: #ffffff;
  background: rgba(255, 116, 37, 0.1);
  box-shadow: 0 10px 24px rgba(0, 12, 41, 0.2);
}

.afc-contact-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(55, 194, 255, 0.42);
  border-radius: 13px;
  color: #ff7b2d;
  background: rgba(17, 99, 196, 0.28);
  box-shadow: inset 0 0 18px rgba(0, 180, 255, 0.08);
}

.afc-contact-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.afc-contact-item small {
  color: #7fcfff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afc-contact-item strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.afc-contact-item em {
  margin-top: 2px;
  color: #ff9a5d;
  font-size: 0.76rem;
  font-style: normal;
}

.afc-response-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 25px;
  padding: 15px;
  border: 1px solid rgba(53, 204, 255, 0.24);
  border-radius: 14px;
  background: rgba(0, 171, 255, 0.07);
}

.afc-response-note p {
  margin: 0;
  color: #aecaeb;
  font-size: 0.79rem;
  line-height: 1.55;
}

.afc-response-note strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
}

.afc-pulse {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #34e1a1;
  box-shadow: 0 0 0 6px rgba(52, 225, 161, 0.11);
}

.afc-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
}

.afc-social > span {
  color: #99b4d5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.afc-social > div {
  display: flex;
  gap: 9px;
}

.afc-social a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(135, 202, 255, 0.34);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.afc-social a:hover {
  transform: translateY(-3px);
  border-color: #ff8235;
  color: #ffffff;
  background: #ff7027;
}

/* Panel derecho y formulario */
.afc-form-panel {
  min-width: 0;
  padding: 42px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(24, 162, 255, 0.12),
      transparent 36%
    ),
    rgba(5, 33, 79, 0.82);
}

.afc-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.afc-form-heading h2 {
  margin-bottom: 0;
}

.afc-form-code {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(86, 202, 255, 0.28);
  border-radius: 999px;
  color: #7bd2ff;
  background: rgba(0, 169, 255, 0.08);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.afc-form-intro {
  max-width: 620px;
  margin-top: 14px;
}

.afc-form-intro strong {
  color: #ff8a43;
}

.afc-form {
  margin-top: 30px;
}

.afc-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}

.afc-field {
  min-width: 0;
}

.afc-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #dceaff;
  font-size: 0.79rem;
  font-weight: 700;
}

.afc-field label i {
  color: #53c8ff;
}

.afc-field label span {
  color: #ff7b2d;
}

/*
  Se aplican estilos a los campos generados automáticamente
  por {{ form.nombre }}, {{ form.email }}, etc.
*/
.afc-field input,
.afc-field textarea,
.afc-field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(115, 181, 239, 0.28);
  border-radius: 12px;
  outline: none;
  color: #ffffff;
  background: rgba(1, 20, 53, 0.66);
  box-shadow: inset 0 1px 3px rgba(0, 7, 25, 0.3);
  font-family: inherit;
  font-size: 0.91rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.afc-field input::placeholder,
.afc-field textarea::placeholder {
  color: #718daf;
  opacity: 1;
}

.afc-field input:hover,
.afc-field textarea:hover,
.afc-field select:hover {
  border-color: rgba(71, 197, 255, 0.54);
}

.afc-field input:focus,
.afc-field textarea:focus,
.afc-field select:focus {
  border-color: #27bfff;
  background: rgba(1, 24, 62, 0.92);
  box-shadow:
    0 0 0 4px rgba(0, 185, 255, 0.12),
    0 0 22px rgba(0, 185, 255, 0.12);
}

.afc-field-message {
  margin-top: 21px;
}

.afc-field textarea {
  min-height: 142px;
  resize: vertical;
}

.afc-field-errors {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.afc-field-errors p {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #ff987a;
  font-size: 0.75rem;
  line-height: 1.4;
}

.afc-form-errors {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 120, 89, 0.38);
  border-radius: 10px;
  background: rgba(255, 91, 58, 0.08);
}

.afc-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 27px;
}

.afc-form-footer > p {
  display: flex;
  max-width: 350px;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #8faaca;
  font-size: 0.73rem;
  line-height: 1.5;
}

.afc-form-footer > p i {
  margin-top: 2px;
  color: #42d9a0;
}

.afc-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid #ff954f;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f18, #ff8b2d);
  box-shadow:
    0 12px 28px rgba(255, 92, 19, 0.26),
    0 0 18px rgba(255, 127, 38, 0.12);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.afc-submit:hover {
  transform: translateY(-3px);
  color: #ffffff;
  filter: brightness(1.08);
  box-shadow:
    0 17px 34px rgba(255, 92, 19, 0.34),
    0 0 24px rgba(255, 127, 38, 0.22);
}

/* Confirmación de envío */
.afc-success {
  display: flex;
  min-height: 510px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.afc-success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 23px;
  place-items: center;
  border: 1px solid rgba(69, 230, 164, 0.55);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(46, 209, 145, 0.13);
  box-shadow:
    0 0 0 12px rgba(46, 209, 145, 0.055),
    0 0 35px rgba(46, 209, 145, 0.18);
  font-size: 1.75rem;
}

.afc-success p {
  max-width: 530px;
  margin: 0 0 28px;
  color: #b9cee9;
  line-height: 1.7;
}

/* Tres etapas inferiores */
.afc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(114, 193, 255, 0.27);
  border-radius: 18px;
  background: rgba(4, 26, 65, 0.72);
  box-shadow: 0 18px 42px rgba(0, 11, 38, 0.24);
  backdrop-filter: blur(12px);
}

.afc-step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px 23px;
}

.afc-step + .afc-step {
  border-left: 1px solid rgba(115, 193, 255, 0.22);
}

.afc-step > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 132, 55, 0.52);
  border-radius: 10px;
  color: #ff8a3d;
  background: rgba(255, 111, 34, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
}

.afc-step p {
  margin: 0;
  color: #8faaca;
  font-size: 0.76rem;
  line-height: 1.45;
}

.afc-step strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 0.86rem;
}

/* ==========================================================
   DISEÑO RESPONSIVO
   ========================================================== */

@media (max-width: 960px) {
  .afc-contact {
    padding-top: 72px;
  }

  .afc-layout {
    grid-template-columns: 1fr;
  }

  .afc-info-panel::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(46, 190, 255, 0.72),
      rgba(255, 116, 37, 0.6),
      transparent
    );
  }

  .afc-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afc-social {
    margin-top: 5px;
  }
}

@media (max-width: 720px) {
  .afc-contact {
    padding: 60px 16px 62px;
  }

  .afc-info-panel,
  .afc-form-panel {
    padding: 30px 22px;
  }

  .afc-contact-list,
  .afc-fields-grid,
  .afc-steps {
    grid-template-columns: 1fr;
  }

  .afc-form-heading {
    flex-direction: column;
    gap: 12px;
  }

  .afc-form-code {
    order: -1;
  }

  .afc-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .afc-submit {
    width: 100%;
  }

  .afc-step + .afc-step {
    border-top: 1px solid rgba(115, 193, 255, 0.22);
    border-left: 0;
  }

  .afc-orbit {
    display: none;
  }
}

@media (max-width: 430px) {
  .afc-contact {
    padding-right: 12px;
    padding-left: 12px;
  }

  .afc-layout {
    border-radius: 21px;
  }

  .afc-info-panel,
  .afc-form-panel {
    padding: 27px 17px;
  }

  .afc-contact-item {
    padding: 12px;
  }

  .afc-contact-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .afc-social {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reduce los movimientos si el usuario lo solicita en su sistema */
@media (prefers-reduced-motion: reduce) {
  .afc-contact *,
  .afc-contact *::before,
  .afc-contact *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   CONTACTO — AJUSTE COMPACTO PARA PANTALLAS DE ESCRITORIO
   Se integrará en las reglas principales durante la limpieza.
   ========================================================== */

@media (min-width: 961px) and (min-height: 760px) {
  .afc-contact {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .afc-info-panel,
  .afc-form-panel {
    padding: 27px 30px;
  }

  .afc-info-panel h2,
  .afc-form-panel h2 {
    margin-top: 8px;
    font-size: 1.75rem;
  }

  .afc-form-intro {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .afc-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
  }

  .afc-contact-item {
    padding: 10px;
  }

  .afc-contact-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .afc-response-note {
    margin-top: 14px;
    padding: 11px;
  }

  .afc-social {
    margin-top: 10px;
    padding-top: 10px;
  }

  .afc-form {
    margin-top: 20px;
  }

  .afc-fields-grid {
    gap: 15px 18px;
  }

  .afc-field input,
  .afc-field select {
    min-height: 44px;
    padding: 10px 13px;
  }

  .afc-field-message {
    margin-top: 15px;
  }

  .afc-field textarea {
    min-height: 96px;
    padding: 11px 13px;
  }

  .afc-form-footer {
    margin-top: 17px;
  }

  .afc-steps {
    margin-top: 16px;
  }

  .afc-step {
    padding: 13px 19px;
  }
}

/* ==========================================================
   CONTACTO — DISTRIBUCIÓN FORMULARIO PROTAGONISTA
   El título se integra en el panel izquierdo para que el
   formulario completo aparezca en el primer alto de pantalla.
   ========================================================== */

.afc-contact-protagonist {
  min-height: calc(100vh - 80px);
  padding: 30px 24px 26px;
}

.afc-protagonist-layout {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.5fr);
}

/* Panel izquierdo */
.afc-protagonist-info {
  padding: 28px 30px;
}

.afc-protagonist-heading h1 {
  margin: 14px 0 13px;
  color: #ffffff;
  font-size: clamp(2.25rem, 3.2vw, 3.55rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.afc-protagonist-heading h1 strong {
  display: block;
  color: #ff7027;
  font-weight: inherit;
  text-shadow: 0 0 24px rgba(255, 112, 39, 0.2);
}

.afc-protagonist-heading > p {
  max-width: 420px;
  margin: 0;
  color: #b9cee9;
  font-size: 0.86rem;
  line-height: 1.55;
}

/*
  Una sola columna evita que el correo y la ubicación
  se corten en pantallas de computador.
*/
.afc-protagonist-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 19px;
}

.afc-protagonist-contacts .afc-contact-item {
  min-height: 60px;
  padding: 9px 12px;
}

.afc-protagonist-contacts .afc-contact-icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.afc-protagonist-contacts .afc-contact-item small {
  font-size: 0.63rem;
}

.afc-protagonist-contacts .afc-contact-item strong {
  font-size: 0.82rem;
}

.afc-protagonist-contacts .afc-contact-item em {
  font-size: 0.68rem;
}

.afc-protagonist-bottom {
  margin-top: auto;
}

.afc-protagonist-bottom .afc-response-note {
  margin-top: 15px;
  padding: 10px 12px;
}

.afc-protagonist-bottom .afc-response-note p {
  font-size: 0.71rem;
}

.afc-protagonist-bottom .afc-social {
  margin-top: 10px;
  padding-top: 8px;
}

/* Panel derecho */
.afc-protagonist-form-panel {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 30px 34px;
}

.afc-protagonist-form-panel .afc-form-heading h2 {
  margin-top: 7px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
}

.afc-protagonist-form-panel .afc-form-intro {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.afc-protagonist-form-panel .afc-form {
  margin-top: 19px;
}

.afc-protagonist-form-panel .afc-fields-grid {
  gap: 13px 17px;
}

.afc-protagonist-form-panel .afc-field label {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.afc-protagonist-form-panel .afc-field input,
.afc-protagonist-form-panel .afc-field select {
  min-height: 43px;
  padding: 9px 13px;
  font-size: 0.82rem;
}

.afc-protagonist-form-panel .afc-field-message {
  margin-top: 13px;
}

.afc-protagonist-form-panel .afc-field textarea {
  min-height: 100px;
  padding: 10px 13px;
  font-size: 0.82rem;
}

.afc-protagonist-form-panel .afc-form-footer {
  margin-top: 16px;
}

.afc-protagonist-form-panel .afc-submit {
  min-height: 45px;
  padding: 11px 19px;
}

/* Franja inferior */
.afc-protagonist-steps {
  margin-top: 13px;
}

.afc-protagonist-steps .afc-step {
  padding: 11px 18px;
}

.afc-protagonist-steps .afc-step > span {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.afc-protagonist-steps .afc-step strong {
  font-size: 0.78rem;
}

.afc-protagonist-steps .afc-step p {
  font-size: 0.68rem;
}

/* ==========================================================
   FORMULARIO PROTAGONISTA — TABLET
   ========================================================== */

@media (max-width: 960px) {
  .afc-contact-protagonist {
    min-height: auto;
    padding: 50px 18px;
  }

  .afc-protagonist-layout {
    grid-template-columns: 1fr;
  }

  .afc-protagonist-heading h1 {
    max-width: 620px;
  }

  .afc-protagonist-heading > p {
    max-width: 620px;
  }

  .afc-protagonist-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afc-protagonist-bottom {
    margin-top: 0;
  }
}

/* ==========================================================
   FORMULARIO PROTAGONISTA — TELÉFONO
   ========================================================== */

@media (max-width: 620px) {
  .afc-contact-protagonist {
    padding: 32px 12px;
  }

  .afc-protagonist-info,
  .afc-protagonist-form-panel {
    padding: 25px 17px;
  }

  .afc-protagonist-heading h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .afc-protagonist-contacts {
    grid-template-columns: 1fr;
  }

  .afc-protagonist-form-panel .afc-fields-grid {
    grid-template-columns: 1fr;
  }

  .afc-protagonist-form-panel .afc-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .afc-protagonist-form-panel .afc-submit {
    width: 100%;
  }

  .afc-protagonist-steps {
    grid-template-columns: 1fr;
  }
}

/* CONTACTO PROTAGONISTA — AJUSTE PARA PANTALLAS DE MENOR ALTURA */
@media (min-width: 961px) and (max-height: 900px) {
  .afc-contact-protagonist {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .afc-protagonist-info {
    padding: 22px 26px;
  }

  .afc-protagonist-heading h1 {
    margin: 10px 0;
    font-size: clamp(2rem, 2.7vw, 3rem);
  }

  .afc-protagonist-heading > p {
    font-size: 0.79rem;
    line-height: 1.4;
  }

  .afc-protagonist-contacts {
    gap: 6px;
    margin-top: 14px;
  }

  .afc-protagonist-contacts .afc-contact-item {
    min-height: 50px;
    padding: 7px 10px;
  }

  .afc-protagonist-contacts .afc-contact-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .afc-protagonist-bottom .afc-response-note {
    margin-top: 9px;
    padding: 8px 10px;
  }

  .afc-protagonist-bottom .afc-social {
    margin-top: 5px;
    padding-top: 4px;
  }

  .afc-protagonist-form-panel {
    padding: 23px 30px;
  }

  .afc-protagonist-form-panel .afc-form {
    margin-top: 14px;
  }

  .afc-protagonist-form-panel .afc-fields-grid {
    gap: 9px 16px;
  }

  .afc-protagonist-form-panel .afc-field input,
  .afc-protagonist-form-panel .afc-field select {
    height: 42px !important;
    min-height: 42px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .afc-protagonist-form-panel .afc-field-message {
    margin-top: 10px;
  }

  .afc-protagonist-form-panel .afc-field textarea {
    height: 88px !important;
    min-height: 88px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .afc-protagonist-form-panel .afc-form-footer {
    margin-top: 12px;
  }

  .afc-protagonist-steps {
    margin-top: 10px;
  }

  .afc-protagonist-steps .afc-step {
    padding: 9px 16px;
  }
}

/* =========================================================
   PALETA FINAL: AZUL TECNOLÓGICO + NARANJO DE ACENTO
   Unifica las secciones informativas con la portada
   ========================================================= */

main {
  background: #061c4a;
}

/* Fondos tecnológicos de las secciones */
.af2-services,
.af2-experience {
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(35, 184, 255, 0.25),
      transparent 28%
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(255, 111, 44, 0.22),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #061c4a 0%,
      #0a347d 52%,
      #0d5bc4 100%
    );
}

/* Separación luminosa y sutil entre secciones */
.af2-services,
.af2-experience {
  border-top: 1px solid rgba(73, 190, 255, 0.3);
}

/* Encabezados blancos y detalles naranjos */
.af2-services .af2-section-heading h2,
.af2-experience .af2-section-heading h2 {
  color: #ffffff;
}

.af2-services .af2-section-heading p,
.af2-experience .af2-section-heading p {
  color: #cfe2ff;
}

.af2-services .af2-section-kicker,
.af2-experience .af2-section-kicker {
  color: #ff8735;
}

/* Tarjetas claras con efecto cristal azulado */
.af2-service-card,
.af2-service-card:first-child,
.af2-experience-card {
  border: 1px solid rgba(113, 202, 255, 0.48);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(228, 241, 255, 0.94)
    );
  color: #08245c;
  box-shadow:
    0 20px 48px rgba(1, 16, 54, 0.3),
    inset 0 3px 0 rgba(255, 122, 44, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.af2-service-card:hover,
.af2-experience-card:hover {
  border-color: rgba(255, 135, 55, 0.9);
  box-shadow:
    0 24px 58px rgba(1, 16, 54, 0.42),
    0 0 24px rgba(255, 114, 44, 0.2),
    inset 0 3px 0 #ff7a2c;
}

/* Panel institucional claro sobre el fondo azul */

/* Franja de valor integrada al nuevo estilo */

/* =========================================================
   DETALLES LUMINOSOS NARANJOS
   Curvas y franjas tecnológicas sin recargar el contenido
   ========================================================= */

.af2-services,
.af2-experience {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.af2-services > .af2-container,
.af2-experience > .af2-container {
  position: relative;
  z-index: 2;
}

/* Curvas luminosas */
.af2-services::before,
.af2-experience::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 720px;
  height: 260px;
  border: 2px solid rgba(255, 125, 44, 0.72);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  box-shadow:
    0 0 12px rgba(255, 115, 36, 0.55),
    inset 0 0 12px rgba(255, 115, 36, 0.28);
}

/* Franjas delgadas con brillo */
.af2-services::after,
.af2-experience::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 430px;
  height: 3px;
  border-radius: 999px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 119, 38, 0.45),
      #ff8b32,
      rgba(255, 173, 74, 0.5),
      transparent
    );
  box-shadow:
    0 0 12px rgba(255, 113, 35, 0.85),
    0 0 28px rgba(255, 113, 35, 0.38);
}

/* Distribución diferente en cada sección */
.af2-services::before {
  top: 100px;
  right: -420px;
  transform: rotate(-12deg);
}

.af2-services::after {
  top: 115px;
  right: 5%;
  transform: rotate(-8deg);
}

.af2-experience::before {
  left: -430px;
  bottom: 40px;
  transform: rotate(13deg);
}

.af2-experience::after {
  right: 8%;
  bottom: 100px;
  transform: rotate(9deg);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 820px) {
  .af2-services::before,
  .af2-experience::before {
    width: 440px;
    height: 170px;
    opacity: 0.55;
  }

  .af2-services::after,
  .af2-experience::after {
    width: 240px;
    opacity: 0.65;
  }
}

/* Refuerzo visual de las líneas naranjas */
.af2-services::before,
.af2-experience::before {
  width: 820px;
  height: 320px;
  border-width: 4px;
  border-color: rgba(255, 126, 39, 0.92);
  opacity: 0.96;
  box-shadow:
    0 0 14px rgba(255, 107, 36, 0.9),
    0 0 34px rgba(255, 107, 36, 0.48),
    inset 0 0 16px rgba(255, 143, 45, 0.42);
}

.af2-services::after,
.af2-experience::after {
  width: 600px;
  height: 6px;
  opacity: 1;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 119, 38, 0.68),
      #ff761f,
      #ffad3d,
      rgba(255, 119, 38, 0.72),
      transparent
    );
  box-shadow:
    0 0 14px rgba(255, 108, 32, 1),
    0 0 34px rgba(255, 108, 32, 0.62);
}

@media (max-width: 820px) {
  .af2-services::before,
  .af2-experience::before {
    width: 520px;
    height: 210px;
    border-width: 3px;
  }

  .af2-services::after,
  .af2-experience::after {
    width: 310px;
    height: 4px;
  }
}

/* =========================================================
   SECCIONES COMPLETAS EN UNA PANTALLA DE ESCRITORIO
   ========================================================= */

@media (min-width: 1101px) {
  .af2-section {
    padding: 56px 0;
  }

  .af2-section-heading {
    gap: 56px;
    margin-bottom: 30px;
  }

  .af2-section-heading h2 {
    font-size: clamp(2.7rem, 3.5vw, 3.55rem);
    line-height: 0.98;
  }

  .af2-section-heading > p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .af2-section-kicker {
    margin-bottom: 13px;
  }

  .af2-service-card {
    min-height: 330px;
    padding: 25px 24px;
  }

  .af2-service-icon {
    width: 51px;
    height: 51px;
    margin-bottom: 21px;
    border-radius: 16px;
  }

  .af2-service-card h3 {
    margin-bottom: 12px;
    font-size: 1.22rem;
  }

  .af2-service-card p {
    font-size: 0.89rem;
    line-height: 1.55;
  }

  .af2-experience-card {
    min-height: 275px;
    padding: 27px 28px;
  }

  .af2-experience-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  .af2-experience-card p {
    font-size: 0.89rem;
    line-height: 1.55;
  }
}

/* =========================================================
   NOSOTROS: PALETA TECNOLÓGICA Y SECCIONES COMPACTAS
   ========================================================= */

.afn-identity,
.afn-values {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(36, 183, 255, 0.25),
      transparent 28%
    ),
    radial-gradient(
      circle at 8% 90%,
      rgba(255, 107, 44, 0.12),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      #061e54 0%,
      #0b377f 52%,
      #1260c5 100%
    );
}

/* Curvas naranjas luminosas */
.afn-identity::before,
.afn-values::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 320px;
  border: 4px solid rgba(255, 119, 42, 0.9);
  border-left-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 12px rgba(255, 115, 38, 0.9),
    0 0 30px rgba(255, 115, 38, 0.45);
}

.afn-identity::before {
  top: -180px;
  right: -290px;
  transform: rotate(-8deg);
}

.afn-values::before {
  bottom: -210px;
  left: -300px;
  transform: rotate(10deg);
}

/* Franjas naranjas de movimiento */
.afn-identity::after,
.afn-values::after {
  content: "";
  position: absolute;
  width: 590px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    #ff6b2c 22%,
    #ff9c34 70%,
    transparent
  );
  box-shadow:
    0 0 12px rgba(255, 107, 44, 0.95),
    0 0 25px rgba(255, 139, 47, 0.62);
}

.afn-identity::after {
  top: 75px;
  right: -75px;
  transform: rotate(-8deg);
}

.afn-values::after {
  right: 5%;
  bottom: 72px;
  transform: rotate(7deg);
}

.afn-identity .afn-container,
.afn-values .afn-container {
  position: relative;
  z-index: 2;
}

.afn-identity .afn-section-heading h2,
.afn-values .afn-values-intro h2 {
  color: #ffffff;
}

.afn-identity-copy,
.afn-identity-copy .afn-lead {
  color: #e8f3ff;
}

.afn-principles,
.afn-value-card {
  border-color: rgba(255, 151, 68, 0.62);
  background:
    linear-gradient(
      145deg,
      rgba(248, 252, 255, 0.97),
      rgba(224, 237, 255, 0.94)
    );
  color: #08245c;
  box-shadow:
    0 20px 45px rgba(0, 15, 55, 0.28),
    inset 0 2px 0 rgba(255, 128, 47, 0.75);
}

.afn-principle p,
.afn-value-card p {
  color: #506786;
}

.afn-purpose {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 86% 15%,
      rgba(36, 183, 255, 0.28),
      transparent 28%
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(255, 107, 44, 0.14),
      transparent 28%
    ),
    linear-gradient(130deg, #041943, #0a347a 55%, #125bc1);
}

.afn-purpose-card {
  border-color: rgba(255, 139, 55, 0.58);
  background:
    linear-gradient(
      145deg,
      rgba(14, 60, 137, 0.82),
      rgba(18, 93, 190, 0.68)
    );
  box-shadow:
    0 20px 48px rgba(0, 13, 50, 0.3),
    inset 0 2px 0 rgba(255, 122, 42, 0.72);
}

/* Proporciones compactas para escritorio */
@media (min-width: 1101px) {
  .afn-section {
    padding: 56px 0;
  }

  .afn-identity-grid {
    gap: 68px;
  }

  .afn-section-heading h2,
  .afn-purpose-heading h2,
  .afn-values-intro h2 {
    margin-top: 12px;
    font-size: clamp(2.7rem, 3.6vw, 3.65rem);
    line-height: 0.98;
  }

  .afn-identity-copy {
    padding-top: 12px;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .afn-identity-copy p {
    margin-bottom: 14px;
  }

  .afn-identity-copy .afn-lead {
    font-size: 1.12rem;
    line-height: 1.45;
  }

  .afn-principles {
    margin-top: 34px;
  }

  .afn-principle {
    min-height: 118px;
    padding: 21px 24px;
  }

  .afn-principle-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .afn-purpose-heading,
  .afn-values-intro {
    margin-bottom: 30px;
  }

  .afn-purpose-card {
    min-height: 260px;
    padding: 30px 34px;
  }

  .afn-purpose-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }

  .afn-purpose-card h3 {
    margin-bottom: 12px;
    font-size: 1.55rem;
  }

  .afn-purpose-card p {
    line-height: 1.6;
  }

  .afn-value-card {
    min-height: 225px;
    padding: 24px;
  }

  .afn-value-card > i {
    width: 46px;
    height: 46px;
    margin-bottom: 26px;
  }

  .afn-value-card h3 {
    margin-bottom: 9px;
    font-size: 1.18rem;
  }

  .afn-value-card p {
    font-size: 0.91rem;
    line-height: 1.55;
  }

  .afn-final {
    padding: 60px 0;
  }
}

@media (max-width: 700px) {
  .afn-identity::before,
  .afn-values::before {
    width: 520px;
    height: 210px;
    border-width: 3px;
  }

  .afn-identity::after,
  .afn-values::after {
    width: 310px;
    height: 4px;
  }
}

/* =========================================================
   NOSOTROS: PORTADA COMPACTA EN ESCRITORIO
   ========================================================= */

@media (min-width: 1101px) {
  .afn-hero {
    min-height: calc(100vh - 104px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 42px 0 48px;
  }

  .afn-hero-grid {
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 54px;
  }

  .afn-hero-copy h1 {
    max-width: 610px;
    margin: 17px 0 18px;
    font-size: clamp(3.05rem, 4.15vw, 4.25rem);
    line-height: 0.96;
  }

  .afn-hero-copy > p {
    max-width: 590px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .afn-actions {
    margin-top: 24px;
  }

  .afn-button {
    min-height: 49px;
    padding-inline: 21px;
  }

  .afn-hero-visual {
    min-height: 430px;
    padding: 15px 24px 15px 43px;
  }

  .afn-image-frame {
    min-height: 415px;
    height: 415px;
    border-radius: 28px 8px 28px 8px;
    box-shadow:
      0 28px 62px rgba(1, 18, 58, 0.4),
      15px 15px 0 rgba(255, 107, 44, 0.92);
  }

  .afn-image-frame img {
    height: 415px;
    object-position: center 38%;
  }

  .afn-image-caption {
    right: 22px;
    bottom: 19px;
    left: 22px;
  }

  .afn-caption-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

/* =========================================================
   SERVICIOS: CRISTAL OSCURO TECNOLÓGICO
   ========================================================= */

#servicios {
  scroll-margin-top: 104px;
}

.af2-services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 18%,
      rgba(35, 139, 255, 0.5),
      transparent 34%
    ),
    radial-gradient(
      circle at 9% 90%,
      rgba(255, 105, 35, 0.3),
      transparent 29%
    ),
    linear-gradient(
      135deg,
      #031640 0%,
      #082f73 50%,
      #0c59bd 100%
    );
}

.af2-services > .af2-container {
  position: relative;
  z-index: 2;
}

/* Órbita naranja brillante del fondo */
.af2-services::before {
  position: absolute;
  top: 70px;
  right: -210px;
  width: 760px;
  height: 330px;
  border: 5px solid rgba(255, 119, 43, 0.9);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  opacity: 0.96;
  pointer-events: none;
  transform: rotate(-10deg);
  box-shadow:
    0 0 18px rgba(255, 109, 35, 0.72),
    0 0 46px rgba(255, 125, 45, 0.42);
}

/* Trazo luminoso superior */
.af2-services::after {
  position: absolute;
  top: 105px;
  right: 65px;
  width: 620px;
  height: 6px;
  border-radius: 999px;
  content: "";
  opacity: 0.9;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      #ff6c2b 22%,
      #ffa43b 64%,
      transparent 100%
    );
  transform: rotate(-8deg);
  box-shadow:
    0 0 14px rgba(255, 105, 35, 0.9),
    0 0 34px rgba(255, 143, 52, 0.62);
}

.af2-services .af2-section-heading h2 {
  color: #ffffff;
}

.af2-services .af2-section-heading > p {
  color: #d5e7ff;
}

.af2-services .af2-section-kicker {
  color: #ff8739;
}

.af2-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Tarjetas oscuras con efecto cristal */
.af2-services .af2-service-card,
.af2-services .af2-service-card:first-child {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "icon category"
    "icon title"
    "icon description"
    "icon link";
  column-gap: 16px;
  align-content: start;
  min-height: 195px;
  padding: 15px 19px 14px;
  overflow: hidden;
  border: 1px solid rgba(112, 195, 255, 0.42);
  border-radius: 20px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 116, 40, 0.17),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      rgba(2, 20, 57, 0.95),
      rgba(13, 63, 135, 0.88)
    );
  box-shadow:
    0 17px 38px rgba(0, 11, 43, 0.36),
    0 0 18px rgba(255, 111, 38, 0.08),
    inset 4px 0 0 #ff7428,
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(15px);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.af2-services .af2-service-card:nth-child(2),
.af2-services .af2-service-card:nth-child(3) {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(38, 159, 255, 0.2),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(3, 25, 68, 0.95),
      rgba(10, 72, 153, 0.88)
    );
}

.af2-services .af2-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 139, 55, 0.92);
  box-shadow:
    0 23px 50px rgba(0, 11, 43, 0.48),
    0 0 27px rgba(255, 111, 38, 0.3),
    inset 5px 0 0 #ff782d,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.af2-services .af2-service-icon,
.af2-services .af2-service-featured .af2-service-icon {
  grid-area: icon;
  display: grid;
  width: 48px;
  height: 48px;
  margin: 1px 0 0;
  align-self: start;
  place-items: center;
  border: 1px solid rgba(255, 151, 73, 0.34);
  border-radius: 15px;
  color: #ff7b30;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 117, 42, 0.08)
    );
  box-shadow:
    0 10px 24px rgba(0, 10, 40, 0.22),
    0 0 18px rgba(255, 115, 38, 0.17),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.af2-service-category {
  grid-area: category;
  display: block;
  margin: 1px 42px 6px 0;
  color: #ff8739;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 112, 42, 0.32);
}

.af2-services .af2-service-card h3,
.af2-services .af2-service-card:first-child h3 {
  grid-area: title;
  margin: 0 30px 7px 0;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.18;
}

.af2-services .af2-service-card p,
.af2-services .af2-service-card:first-child p {
  grid-area: description;
  margin: 0;
  color: #c9ddf8;
  font-size: 0.79rem;
  line-height: 1.4;
}

.af2-services .af2-service-link,
.af2-services .af2-service-card:first-child .af2-service-link {
  position: static;
  grid-area: link;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
}

.af2-services .af2-service-link::before {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, #ff6b2b, #ffa43b);
  box-shadow: 0 0 10px rgba(255, 113, 40, 0.7);
}

.af2-services .af2-service-number,
.af2-services .af2-service-featured .af2-service-number {
  position: absolute;
  top: 17px;
  right: 19px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

/* Escritorio: toda la sección visible y equilibrada */
@media (min-width: 1101px) {
  .af2-services {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .af2-services .af2-section-heading {
    gap: 52px;
    margin-bottom: 12px;
  }

  .af2-services .af2-section-heading h2 {
    font-size: clamp(2.15rem, 2.45vw, 2.55rem);
    line-height: 0.98;
  }

  .af2-services .af2-section-heading > p {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .af2-services .af2-section-kicker {
    margin-bottom: 9px;
  }

  .af2-services .af2-service-card,
  .af2-services .af2-service-card:first-child {
    min-height: 195px;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .af2-services .af2-service-card,
  .af2-services .af2-service-card:first-child {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .af2-services-grid {
    grid-template-columns: 1fr;
  }

  .af2-services .af2-service-card,
  .af2-services .af2-service-card:first-child {
    min-height: 0;
  }

  .af2-services::before {
    right: -290px;
    width: 610px;
    height: 270px;
  }

  .af2-services::after {
    right: -120px;
    width: 480px;
  }
}

@media (max-width: 560px) {
  #servicios {
    scroll-margin-top: 76px;
  }

  .af2-services .af2-service-card,
  .af2-services .af2-service-card:first-child {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 13px;
    min-height: 0;
    padding: 17px 16px;
    border-radius: 18px;
  }

  .af2-services .af2-service-icon,
  .af2-services .af2-service-featured .af2-service-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
  }

  .af2-service-category {
    margin-right: 27px;
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .af2-services .af2-service-card h3,
  .af2-services .af2-service-card:first-child h3 {
    margin-right: 16px;
    font-size: 0.98rem;
  }

  .af2-services .af2-service-card p,
  .af2-services .af2-service-card:first-child p {
    font-size: 0.81rem;
    line-height: 1.45;
  }

}

/* =========================================================
   BANNER DE CONVOCATORIAS Y FUENTES DE FINANCIAMIENTO
   ========================================================= */

.af2-funding-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.af2-funding-track {
  display: flex;
  width: max-content;
  animation: af2-funding-scroll 22s linear infinite;
}

.af2-funding-marquee:hover .af2-funding-track {
  animation-play-state: paused;
}

.af2-funding-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

.af2-funding-group > span {
  display: inline-flex;
  min-width: max-content;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 0 21px;
  border: 1px solid rgba(107, 201, 255, 0.34);
  border-radius: 15px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 9px 24px rgba(0, 11, 43, 0.22);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
}

.af2-funding-group i {
  color: #ff7a2d;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 8px rgba(255, 113, 39, 0.55));
}

@keyframes af2-funding-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .af2-funding-track {
    animation-play-state: paused;
  }
}

/* =========================================================
   BANNER ANIMADO INTEGRADO A LA PORTADA
   ========================================================= */

.af2-guidance.af2-guidance-marquee {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 2.28fr);
  gap: 22px;
  min-height: 108px;
  padding: 16px 26px;
  overflow: hidden;
}

.af2-guidance-marquee .af2-guidance-heading {
  display: block;
  padding: 4px 24px 4px 8px;
  border-right: 1px solid rgba(255, 132, 48, 0.48);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.af2-guidance-marquee .af2-funding-marquee {
  width: 100%;
  min-width: 0;
}

.af2-guidance-marquee .af2-funding-group > span {
  min-height: 50px;
  border-color: rgba(100, 198, 255, 0.38);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.04)
    );
}

@media (max-width: 820px) {
  .af2-guidance.af2-guidance-marquee {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .af2-guidance-marquee .af2-guidance-heading {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 132, 48, 0.4);
    text-align: center;
  }
}

/* =========================================================
   BANNER DE CABECERA BAJO EL MENÚ
   ========================================================= */

@media (min-width: 1101px) {
  .af2-guidance.af2-guidance-marquee {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 12;
    grid-template-columns: minmax(285px, 0.72fr) minmax(0, 2.28fr);
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 8px max(28px, calc((100vw - 1500px) / 2));
    overflow: hidden;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 20px 20px;
    background:
      linear-gradient(
        90deg,
        rgba(3, 21, 61, 0.97),
        rgba(8, 55, 128, 0.95)
      );
    box-shadow:
      0 12px 30px rgba(0, 12, 46, 0.3),
      inset 0 -2px 0 rgba(255, 117, 42, 0.7);
  }

  .af2-guidance-marquee .af2-guidance-heading {
    padding: 0 24px 0 0;
    border-right: 1px solid rgba(255, 127, 44, 0.48);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.11em;
  }

  .af2-guidance-marquee .af2-funding-group > span {
    min-height: 42px;
    padding-inline: 17px;
    border-radius: 13px;
    font-size: 0.84rem;
  }
}

/* =========================================================
   CASOS REALES: TARJETAS EDITORIALES CON FOTOGRAFÍAS
   ========================================================= */

.af2-cases {
  position: relative;
  overflow: hidden;
}

.af2-cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.af2-cases .af2-case-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 190, 255, 0.46);
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      rgba(3, 24, 65, 0.98),
      rgba(10, 62, 137, 0.94)
    );
  box-shadow:
    0 22px 52px rgba(0, 13, 48, 0.38),
    inset 0 3px 0 rgba(255, 116, 40, 0.9);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.af2-cases .af2-case-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 132, 52, 0.92);
  box-shadow:
    0 30px 62px rgba(0, 13, 48, 0.48),
    0 0 28px rgba(255, 112, 39, 0.2),
    inset 0 3px 0 #ff7428;
}

.af2-case-image {
  position: relative;
  height: 220px;
  flex: 0 0 220px;
  overflow: hidden;
  background: #061d4d;
}

.af2-case-image::after {
  position: absolute;
  inset: 0;
  content: "";
  /* Deja visible la fotografía y mantiene legible el distintivo. */
  background:
    linear-gradient(
      180deg,
      rgba(2, 17, 51, 0.05) 35%,
      rgba(2, 17, 51, 0.55) 100%
    ),
    linear-gradient(
      135deg,
      rgba(18, 103, 224, 0.08),
      rgba(255, 112, 39, 0.1)
    );
  pointer-events: none;
}

.af2-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
  transition:
    transform 450ms ease,
    filter 450ms ease;
}

.af2-case-card:hover .af2-case-image img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.af2-case-image-transport img {
  object-position: center 44%;
}

.af2-case-status {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 156, 72, 0.66);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 25, 67, 0.86);
  box-shadow: 0 8px 22px rgba(0, 10, 40, 0.32);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.af2-case-status i {
  color: #ff7b2d;
}

.af2-case-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 25px 22px;
}

.af2-cases .af2-case-content .af2-experience-tag {
  color: #ff8535;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.af2-cases .af2-case-content h3 {
  margin: 10px 0 10px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.af2-cases .af2-case-content p {
  margin: 0;
  color: #d2e5ff;
  font-size: 0.9rem;
  line-height: 1.62;
}

.af2-case-person {
  display: block;
  margin-top: auto;
  padding-top: 17px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
}

.af2-case-person::before {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  border-radius: 999px;
  background: #ff7428;
  content: "";
}

.af2-cases-note {
  margin: 25px auto 0;
  color: #cfe2ff;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 1000px) {
  .af2-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .af2-cases-grid {
    grid-template-columns: 1fr;
  }

  .af2-cases .af2-case-card {
    min-height: 0;
  }

  .af2-case-image {
    height: 210px;
    flex-basis: 210px;
  }

  .af2-case-content {
    padding: 22px;
  }
}

/* =========================================================
   CASOS REALES: VERSIÓN COMPACTA PARA REVISIÓN
   ========================================================= */

@media (min-width: 701px) {
  .af2-cases {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .af2-cases .af2-section-heading.af2-heading-centered {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 30px;
    text-align: left;
  }

  .af2-cases .af2-section-heading h2 {
    max-width: 800px;
    margin: 10px 0 0;
    font-size: clamp(2.6rem, 3.5vw, 3.65rem);
    line-height: 0.98;
  }

  .af2-cases .af2-section-heading > p {
    max-width: 510px;
    margin: 0 0 5px;
    text-align: left;
  }

  .af2-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  /* Tarjetas casi cuadradas con fotografía circular. */
  .af2-cases .af2-case-card {
    width: 100%;
    min-width: 0;
    min-height: 400px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 26px;
  }

  /* Fotografías circulares definitivas, centradas dentro de cada tarjeta. */
  .af2-case-image {
    display: flex;
    width: 100%;
    height: 190px;
    min-height: 190px;
    flex: 0 0 190px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
  }

  .af2-case-image::after {
    display: none;
  }

  .af2-case-image img {
    width: 176px;
    height: 176px;
    object-position: center;
    border: 2px solid rgba(105, 193, 255, 0.55);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 13, 48, 0.3);
  }

  /* El distintivo conserva su texto y ocupa solo el espacio necesario. */
  .af2-case-status {
    right: 50%;
    bottom: -24px;
    left: auto;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .af2-case-content {
    padding: 45px 20px 19px;
  }

  .af2-cases .af2-case-content h3 {
    margin: 8px 0 9px;
    font-size: 1.16rem;
  }

  .af2-cases .af2-case-content p {
    font-size: 0.82rem;
    line-height: 1.52;
  }

  .af2-case-person {
    padding-top: 13px;
    font-size: 0.71rem;
  }

  .af2-cases-note {
    margin-top: 20px;
  }
}

@media (min-width: 701px) and (max-width: 1150px) {
  .af2-cases .af2-section-heading.af2-heading-centered {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .af2-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .af2-cases .af2-section-heading.af2-heading-centered {
    display: block;
    margin-bottom: 28px;
    text-align: left;
  }

  .af2-cases .af2-section-heading > p {
    margin-top: 18px;
    text-align: left;
  }

  .af2-cases .af2-case-card { display: flex; flex-direction: column; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: auto; box-sizing: border-box; border-radius: 26px; }

  .af2-cases .af2-case-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: auto; min-height: 0; flex: 0 0 auto; padding: 20px 12px 0; box-sizing: border-box; overflow: visible; background: transparent; }

  .af2-cases .af2-case-image::after { display: none; }

  .af2-cases .af2-case-image img { width: 160px; height: 160px; max-width: 100%; flex: 0 0 auto; box-sizing: border-box; object-fit: contain; object-position: center; border: 2px solid rgba(105, 193, 255, 0.55); border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 13, 48, 0.3); }

  .af2-cases .af2-case-status { position: static; inset: auto; transform: none; max-width: 100%; box-sizing: border-box; white-space: normal; text-align: center; }

  .af2-cases .af2-case-content { padding: 20px; }
}

/* La sección puede crecer para mostrar completas las fotos y descripciones. */
@media (min-width: 1101px) {
  .af2-cases {
    min-height: 660px;
    box-sizing: border-box;
  }
}

/* Ocultar botón flotante de WhatsApp en móviles */
@media (max-width: 820px) {
  .af-whatsapp-float {
    display: none !important;
  }
}

/* Menú móvil superpuesto y navegación interna corregida */
@media (max-width: 1100px) {
  .af-mobile-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-shadow: 0 20px 35px rgba(2, 20, 50, 0.2);
  }

  #servicios,
  #proceso,
  #casos {
    scroll-margin-top: 88px;
  }
}

@media (max-width: 640px) {
  #servicios,
  #proceso,
  #casos {
    scroll-margin-top: 76px;
  }
}

/* =========================================================
   CONTACTO: SELECTOR DE PERSONA O EMPRESA
   Permite identificar visualmente quién realiza la consulta.
   ========================================================= */

.afc-client-type {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.afc-client-type legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #0a2c67;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.afc-client-type legend i {
  color: #ff7428;
}

.afc-client-type legend > span {
  color: #ff5f29;
}

/* Las dos alternativas se mantienen alineadas en escritorio. */
.afc-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* El radio original permanece accesible, pero no se muestra visualmente. */
.afc-type-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.afc-type-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Tarjeta visible correspondiente a cada alternativa. */
.afc-type-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid rgba(20, 91, 180, 0.2);
  border-radius: 14px;
  color: #49617f;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(235, 244, 255, 0.94)
    );
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.afc-type-card > i {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #1463d6;
  background: rgba(20, 99, 214, 0.09);
  font-size: 1rem;
}

.afc-type-card > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.afc-type-card strong {
  color: #08275e;
  font-size: 0.84rem;
  line-height: 1.25;
}

.afc-type-card small {
  margin-top: 2px;
  color: #647895;
  font-size: 0.69rem;
  line-height: 1.3;
}

/* Destaca con naranjo la alternativa actualmente seleccionada. */
.afc-type-option > input:checked + .afc-type-card {
  border-color: rgba(255, 111, 40, 0.82);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 116, 40, 0.15),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(242, 247, 255, 0.96)
    );
  box-shadow:
    0 8px 20px rgba(8, 47, 111, 0.1),
    inset 3px 0 0 #ff7428;
  transform: translateY(-1px);
}

.afc-type-option > input:checked + .afc-type-card > i {
  color: #ff6b28;
  background: rgba(255, 111, 40, 0.12);
}

/* Mantiene visible el foco para navegación mediante teclado. */
.afc-type-option > input:focus-visible + .afc-type-card {
  outline: 3px solid rgba(36, 183, 255, 0.28);
  outline-offset: 2px;
}

/* =========================================================
   CONTACTO: DATOS EMPRESARIALES CONDICIONALES
   El contenedor aparece únicamente al seleccionar Empresa.
   ========================================================= */

.afc-company-fields {
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(36, 144, 235, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      rgba(232, 243, 255, 0.7),
      rgba(255, 247, 240, 0.72)
    );
}

/* Evita que otras reglas de cuadrícula anulen el atributo hidden. */
.afc-company-fields[hidden] {
  display: none !important;
}

/* En móviles, las alternativas se apilan para facilitar la lectura. */
@media (max-width: 640px) {
  .afc-type-options {
    grid-template-columns: 1fr;
  }

  .afc-type-card {
    min-height: 54px;
  }

  .afc-company-fields {
    padding: 12px;
  }
}

/* =========================================================
   CONTACTO: AJUSTE VISUAL DEL SELECTOR PERSONA / EMPRESA
   Mejora el contraste y reduce el alto adicional del formulario.
   ========================================================= */

/* El título necesita un tono claro porque el formulario tiene fondo azul. */
.afc-client-type legend {
  margin-bottom: 8px;
  color: #eaf5ff;
}

.afc-client-type legend i {
  color: #48c4ff;
}

/* Compacta ligeramente las alternativas sin reducir su legibilidad. */
.afc-client-type {
  margin-bottom: 12px;
}

.afc-type-options {
  gap: 9px;
}

.afc-type-card {
  min-height: 52px;
  padding: 8px 12px;
}

/* =========================================================
   CONTACTO: PANEL EMPRESARIAL EN CRISTAL OSCURO
   Integra los campos adicionales con el diseño tecnológico.
   ========================================================= */

.afc-company-fields {
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(77, 190, 255, 0.36);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 116, 40, 0.12),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(4, 30, 76, 0.86),
      rgba(12, 60, 126, 0.7)
    );
  box-shadow:
    inset 3px 0 0 rgba(255, 116, 40, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* Mantiene las etiquetas empresariales claras sobre el panel oscuro. */
.afc-company-fields .afc-field label {
  color: #edf7ff;
}

/* Los campos conservan el estilo oscuro utilizado en el resto del formulario. */
.afc-company-fields .afc-field input {
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
  border-color: rgba(89, 184, 255, 0.34);
  color: #ffffff;
  background: rgba(2, 23, 60, 0.78);
}

.afc-company-fields .afc-field input::placeholder {
  color: #7890b0;
}