/* "Elige tu camino" (Servicios): portada Hogares / Empresas con la familia
   recortada, tarjeta principal, accesos rápidos y franja de confianza. */

body[data-page="services"] .aud {
  --aud-red: #e60012;
  --aud-ink: #151923;
  --aud-body: #5b6472;
  --aud-soft: #fdecee;
  --aud-ease: cubic-bezier(.22, .8, .24, 1);
  position: relative;
  display: block;
  padding: 64px 0 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 45% 55% at 82% 45%, rgba(230, 0, 18, .07), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}
body[data-page="services"] .aud-glow {
  position: absolute; z-index: -1; left: -8%; top: -18%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 18, .08), transparent 65%);
  pointer-events: none;
}

body[data-page="services"] .aud-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0;
}
body[data-page="services"] .aud-copy { grid-area: 1 / 1; position: relative; z-index: 2; padding-bottom: 26px; }
body[data-page="services"] .aud-switch { grid-area: 1 / 2; position: relative; z-index: 3; align-self: start; justify-self: start; }
body[data-page="services"] .aud-visual { grid-area: 1 / 2 / 3 / 3; position: relative; z-index: 0; min-height: 520px; }
body[data-page="services"] .aud-panel { grid-area: 2 / 1; position: relative; z-index: 2; align-self: end; margin-bottom: 18px; }

/* Encabezado */
body[data-page="services"] .aud-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4.2vw, 58px) !important;
  line-height: 1 !important;
  letter-spacing: -.035em;
  color: var(--aud-ink);
}
body[data-page="services"] .aud-copy h2 em { display: block; font-style: normal; color: var(--aud-red); }
body[data-page="services"] .aud-lead { max-width: 470px; margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--aud-body); }

/* Conmutador */
body[data-page="services"] .aud-switch {
  display: inline-flex; gap: 4px; padding: 6px;
  border: 1px solid rgba(16, 20, 26, .06); border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -18px rgba(16, 22, 30, .45);
}
body[data-page="services"] .aud-switch button {
  min-height: 48px; padding: 0 26px; gap: 10px;
  font: 800 .92rem 'Manrope', sans-serif; color: #333a45;
}
body[data-page="services"] .aud-switch button .sv-i { width: 20px; height: 20px; }
body[data-page="services"] .aud-switch button.is-active {
  background: linear-gradient(110deg, #f5182d, #d70012);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(230, 0, 18, .75);
}

/* Escena visual */
body[data-page="services"] .aud-scene {
  position: absolute; right: -120px; bottom: 0;
  width: 150%; aspect-ratio: 3 / 2;
  transition: opacity .5s var(--aud-ease), transform .6s var(--aud-ease);
}
body[data-page="services"] .aud-photo {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 20%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(0deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 20%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
body[data-page="services"] .aud-fiber { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
body[data-page="services"] .aud-fiber path {
  fill: none; stroke: #ff2a3d; stroke-width: 2.4; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 30, 50, .9)) drop-shadow(0 0 14px rgba(255, 30, 50, .5));
  opacity: .75;
}
body[data-page="services"] .aud-fiber .aud-fiber-flow {
  stroke: #fff; stroke-width: 2.6; opacity: 1;
  stroke-dasharray: 60 900;
  animation: aud-flow 3.6s linear infinite;
}
@keyframes aud-flow { from { stroke-dashoffset: 960; } to { stroke-dashoffset: 0; } }

body[data-page="services"] .aud-wifi {
  position: absolute; z-index: 2; left: 74%; top: 53%;
  width: 54px; height: 54px; color: #ff2a3d;
  filter: drop-shadow(0 0 6px rgba(255, 40, 60, .9)) drop-shadow(0 0 16px rgba(255, 40, 60, .55));
  animation: aud-wifi 2.4s ease-in-out infinite;
}
body[data-page="services"] .aud-wifi svg { width: 100%; height: 100%; }
@keyframes aud-wifi { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

body[data-page="services"] .aud-note {
  position: absolute; z-index: 3; right: 0; top: 70px; margin: 0;
  font: 700 1.7rem/1.02 'Caveat', cursive; color: #2a2f38;
  transform: rotate(-9deg);
  transition: opacity .4s ease;
}
body[data-page="services"] .aud-note::after {
  content: ""; display: block; width: 150px; height: 10px; margin: 4px 0 0 20px;
  border-bottom: 2.5px solid var(--aud-red); border-radius: 0 0 50% 50%;
  transform: rotate(-4deg);
}

body[data-page="services"] .aud-photo-business {
  position: absolute; right: -10px; bottom: 30px;
  width: 100%; height: calc(100% - 120px); object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(16, 22, 30, .55);
  opacity: 0; transform: translateX(24px) scale(.98);
  transition: opacity .5s var(--aud-ease), transform .6s var(--aud-ease);
}
body[data-page="services"] .aud[data-aud="business"] .aud-photo-business { opacity: 1; transform: none; }
body[data-page="services"] .aud[data-aud="business"] .aud-scene { opacity: 0; transform: translateX(-24px); }
body[data-page="services"] .aud[data-aud="business"] .aud-note { opacity: 0; }

/* Tarjeta principal */
body[data-page="services"] .aud-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon title cta" "icon desc cta" "feats feats feats";
  column-gap: 20px;
  align-items: center;
  padding: 24px 26px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -28px rgba(16, 22, 30, .45), 0 0 0 1px rgba(16, 20, 26, .05);
}
body[data-page="services"] .aud-main-text { display: contents; }
body[data-page="services"] .aud-main-icon {
  grid-area: icon; align-self: start;
  display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 20px;
  background: var(--aud-soft); color: var(--aud-red);
}
body[data-page="services"] .aud-main-icon svg { width: 34px; height: 34px; }
body[data-page="services"] .aud-main h3 {
  grid-area: title; align-self: end;
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--aud-ink);
}
body[data-page="services"] .aud-main-text > p { grid-area: desc; align-self: start; margin: 0; max-width: 40ch; font-size: .95rem; line-height: 1.55; color: var(--aud-body); }
body[data-page="services"] .aud-feats { grid-area: feats; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 0; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(16, 20, 26, .07); list-style: none; }
body[data-page="services"] .aud-feats li {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 18px; border-left: 1px solid rgba(16, 20, 26, .1);
}
body[data-page="services"] .aud-feats li:first-child { padding-left: 0; border-left: 0; }
body[data-page="services"] .aud-feats svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--aud-red); }
body[data-page="services"] .aud-feats span { display: grid; font: 500 .8rem/1.25 'DM Sans', sans-serif; color: var(--aud-body); }
body[data-page="services"] .aud-feats b { font: 800 .86rem/1.25 'Manrope', sans-serif; color: var(--aud-ink); }

body[data-page="services"] .aud-main-cta {
  grid-area: cta;
  display: grid; justify-items: center; gap: 14px;
  padding-left: 22px; border-left: 1px solid rgba(16, 20, 26, .08);
}
body[data-page="services"] .aud-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(110deg, #f5182d, #d70012);
  box-shadow: 0 14px 26px -12px rgba(230, 0, 18, .7);
  font: 800 .95rem 'Manrope', sans-serif; color: #fff; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--aud-ease), box-shadow .25s var(--aud-ease);
}
body[data-page="services"] .aud-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(230, 0, 18, .8); }
body[data-page="services"] .aud-btn span { transition: transform .25s var(--aud-ease); }
body[data-page="services"] .aud-btn:hover span { transform: translateX(3px); }
body[data-page="services"] .aud-link { font: 600 .88rem 'DM Sans', sans-serif; color: #3a414c; text-decoration: none; white-space: nowrap; }
body[data-page="services"] .aud-link:hover { color: var(--aud-red); }

/* Accesos rápidos */
body[data-page="services"] .aud-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
body[data-page="services"] .aud-mini {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px 16px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px -26px rgba(16, 22, 30, .5), 0 0 0 1px rgba(16, 20, 26, .05);
  text-decoration: none; color: inherit;
  transition: transform .3s var(--aud-ease), box-shadow .3s var(--aud-ease);
}
body[data-page="services"] .aud-mini:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(16, 22, 30, .55), 0 0 0 1px rgba(230, 0, 18, .15); }
body[data-page="services"] .aud-mini-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--aud-soft); color: var(--aud-red);
  transition: background .25s, color .25s;
}
body[data-page="services"] .aud-mini:hover .aud-mini-icon { background: var(--aud-red); color: #fff; }
body[data-page="services"] .aud-mini-icon svg { width: 26px; height: 26px; }
body[data-page="services"] .aud-mini > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
body[data-page="services"] .aud-mini b { font: 800 .98rem/1.15 'Manrope', sans-serif; color: var(--aud-ink); }
body[data-page="services"] .aud-mini small { font: 400 .8rem/1.35 'DM Sans', sans-serif; color: var(--aud-body); }
body[data-page="services"] .aud-mini em { font-style: normal; font-size: 1.4rem; line-height: 1; color: #6b7280; transition: transform .25s, color .25s; }
body[data-page="services"] .aud-mini:hover em { color: var(--aud-red); transform: translateX(3px); }

/* Franja de confianza */
body[data-page="services"] .aud-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px; padding-top: 24px;
  border-top: 1px solid rgba(16, 20, 26, .07);
}
body[data-page="services"] .aud-trust > div { display: flex; align-items: center; gap: 14px; padding: 4px 22px; border-left: 1px solid rgba(16, 20, 26, .09); }
body[data-page="services"] .aud-trust > div:first-child { padding-left: 0; border-left: 0; }
body[data-page="services"] .aud-ti { flex: 0 0 auto; width: 34px; height: 34px; color: var(--aud-red); }
body[data-page="services"] .aud-ti svg { width: 100%; height: 100%; }
body[data-page="services"] .aud-trust p { display: grid; gap: 2px; margin: 0; max-width: none; }
body[data-page="services"] .aud-trust b { font: 800 .92rem 'Manrope', sans-serif; color: var(--aud-ink); }
body[data-page="services"] .aud-trust small { font: 400 .8rem 'DM Sans', sans-serif; color: var(--aud-body); }

/* Transición al cambiar Hogares / Empresas */
body[data-page="services"] .aud.is-swapping .aud-copy h2,
body[data-page="services"] .aud.is-swapping .aud-lead,
body[data-page="services"] .aud.is-swapping .aud-main,
body[data-page="services"] .aud.is-swapping .aud-mini { animation: aud-in .5s var(--aud-ease) both; }
body[data-page="services"] .aud.is-swapping .aud-lead { animation-delay: .04s; }
body[data-page="services"] .aud.is-swapping .aud-main { animation-delay: .08s; }
body[data-page="services"] .aud.is-swapping .aud-mini:nth-child(1) { animation-delay: .14s; }
body[data-page="services"] .aud.is-swapping .aud-mini:nth-child(2) { animation-delay: .19s; }
body[data-page="services"] .aud.is-swapping .aud-mini:nth-child(3) { animation-delay: .24s; }
@keyframes aud-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1100px) {
  body[data-page="services"] .aud-main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "icon desc" "feats feats" "cta cta"; }
  body[data-page="services"] .aud-main-cta { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 22px; margin-top: 16px; padding: 0; border-left: 0; }
}
@media (max-width: 960px) {
  body[data-page="services"] .aud { padding: 44px 0 26px; }
  body[data-page="services"] .aud-shell { grid-template-columns: 1fr; grid-template-rows: none; }
  body[data-page="services"] .aud-copy { grid-area: auto; padding-bottom: 18px; }
  body[data-page="services"] .aud-switch { grid-area: auto; margin-bottom: 8px; }
  body[data-page="services"] .aud-visual { grid-area: auto; min-height: 0; height: clamp(260px, 62vw, 460px); margin: 0 -4.3vw; }
  body[data-page="services"] .aud-scene { right: 50%; width: min(760px, 118vw); transform: translateX(50%); }
  body[data-page="services"] .aud[data-aud="business"] .aud-scene { transform: translateX(50%); }
  body[data-page="services"] .aud-photo { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 14%); mask-image: linear-gradient(0deg, transparent 0, #000 14%); }
  body[data-page="services"] .aud-photo-business { right: 4.3vw; left: 4.3vw; width: auto; height: calc(100% - 20px); bottom: 10px; }
  body[data-page="services"] .aud-note { top: 12px; right: 6vw; font-size: 1.35rem; }
  body[data-page="services"] .aud-panel { grid-area: auto; margin-top: -30px; }
  body[data-page="services"] .aud-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  body[data-page="services"] .aud-trust > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  body[data-page="services"] .aud-main { grid-template-columns: 1fr; grid-template-areas: "icon" "title" "desc" "feats" "cta"; padding: 22px; row-gap: 10px; }
  body[data-page="services"] .aud-feats { display: grid; gap: 12px; }
  body[data-page="services"] .aud-feats li { padding: 0; border-left: 0; }
  body[data-page="services"] .aud-note { display: none; }
  body[data-page="services"] .aud-main-icon { width: 56px; height: 56px; border-radius: 16px; }
  body[data-page="services"] .aud-feats { gap: 12px 0; }
  body[data-page="services"] .aud-main-cta { grid-template-columns: 1fr; justify-items: stretch; text-align: center; }
  body[data-page="services"] .aud-btn { justify-content: center; }
  body[data-page="services"] .aud-minis { grid-template-columns: 1fr; }
  body[data-page="services"] .aud-switch button { padding: 0 18px; }
  body[data-page="services"] .aud-trust { grid-template-columns: 1fr; }
  body[data-page="services"] .aud-trust > div { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="services"] .aud-fiber .aud-fiber-flow,
  body[data-page="services"] .aud-wifi,
  body[data-page="services"] .aud.is-swapping * { animation: none !important; }
}
