@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/BricolageGrotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('assets/fonts/Inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --cem-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --cem-body: Inter, system-ui, sans-serif;
}
body, button, input, textarea, select { font-family: var(--cem-body); }
h1, h2, h3, .speed, .plan-top, .category strong,
.plans-locality > div > strong, .innova-tagline, .innova-updates .innova-coming,
.footer-col h2, .carousel-preview span, .stat-line strong, .speed-stack strong {
  font-family: var(--cem-heading);
}
h1, h2, h3, .speed strong { letter-spacing: -.035em; }
.btn, .tab-list button, .plan-bonus { font-family: var(--cem-body); }
.btn { font-size: 15px; }
.plan-card .btn, .app-section .btn, .innova-updates .btn { font-size: 15px; }
.header-cta { font-size: 13px; font-weight: 700; }
.site-header { background: linear-gradient(110deg, #061c32f7, #0b2c45f7); }
.announcement-copy h2 { font-size: clamp(34px, 4.2vw, 66px); line-height: 1.02; }
.with-photo-background .announcement-slide[data-topic='sensa'] h2 {
  font-size: clamp(24px, 3.4vw, 61px);
}
.announcement-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.announcement-copy { min-width: 0; }
.with-photo-background .announcement-copy h2 { overflow-wrap: anywhere; }

.hero.hero-announcements[data-topic='fibra'] {
  --accent: #32edfb;
  background: #061b31;
}
.hero.hero-announcements[data-topic='fibra']::before {
  background: linear-gradient(90deg, #06162cf7 0%, #061b32d6 36%, #061b3230 65%, transparent),
    url('assets/portada/fibra-luz.webp') right center / cover no-repeat;
  opacity: 1;
}
.hero.hero-announcements[data-topic='fibra']::after {
  content: '';
  position: absolute;
  inset: auto -10% 2% 24%;
  height: 20%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(106deg, transparent 10%, #45f6fa 48%, transparent 62%) 0 65% / 240% 2px no-repeat,
    linear-gradient(105deg, transparent 15%, #3defff8a 56%, transparent 72%) 0 80% / 220% 1px no-repeat;
  filter: drop-shadow(0 0 7px #14dafb);
  transform: skewY(-7deg);
  animation: cem-fiber-flow 7s ease-in-out infinite;
  animation-play-state: paused;
}
.hero.hero-announcements[data-topic='fibra'][data-running='true']::after { animation-play-state: running; }
.fiber-slide { min-height: clamp(410px, 36vw, 540px); grid-template-columns: minmax(0, 1fr); }
.fiber-slide .announcement-copy { max-width: min(60%, 780px); }
.fiber-slide .announcement-copy h2 { font-size: clamp(42px, 5.4vw, 88px); }
.fiber-slide .announcement-copy > p { font-size: clamp(15px, 1.5vw, 21px); max-width: 600px; }
.fiber-slide .btn-primary, .plan-card .btn {
  background: #36e7f4;
  border-color: #7ef3fa;
  color: #041a2c;
}
@keyframes cem-fiber-flow {
  from { background-position: 100% 65%, 100% 80%; opacity: .25; }
  45% { opacity: .85; }
  to { background-position: 0 65%, 0 80%; opacity: .25; }
}

body[data-page='home'] #planes {
  position: relative;
  isolation: isolate;
  color: #e9faff;
  background: #082a46;
  box-shadow: 0 0 0 100vmax #082a46;
}
body[data-page='home'] #planes::before {
  content: '';
  position: absolute;
  inset: 0 calc(0px - var(--page-gutter));
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 90%, #086c8c70, transparent 60%),
    linear-gradient(110deg, transparent 10%, #1caeca80 50%, transparent 70%) 100% 86% / 240% 2px no-repeat,
    linear-gradient(110deg, transparent 15%, #3ae8ff60 56%, transparent 75%) 100% 90% / 220% 1px no-repeat,
    linear-gradient(145deg, #06213d, #0a3454);
  animation: cem-plan-flow 10s ease-in-out infinite;
}
@keyframes cem-plan-flow {
  0%, 100% { background-position: center, 100% 86%, 100% 90%, center; }
  50% { background-position: center, 0 86%, 0 90%, center; }
}
body[data-page='home'] #planes .section-heading { text-align: left; margin-bottom: 24px; }
body[data-page='home'] #planes .section-heading .eyebrow { justify-content: flex-start; color: #91eff9; }
body[data-page='home'] #plans-heading { color: #f6fcff; font-size: clamp(34px, 4vw, 58px); }
body[data-page='home'] #planes .section-heading p,
body[data-page='home'] #planes .plans-note { color: #c0dce9; }
.plans-locality { background: #0b2e49; border-color: #396887; }
.plans-locality > div > strong { font-size: 19px; }
.plans-locality p, .plans-locality label { color: #c6e4f0; }
.plans-locality select { color: #f2fbff; background: #113a58; border-color: #5998af; }
.plans-locality .select-wrap .icon { color: #6debf8; }
.plan-card, .plan-card.featured {
  background: radial-gradient(ellipse at 95% 100%, #0d55765e, transparent 55%), #0b2945;
  border-radius: 18px;
}
.plan-card.featured { border-color: #38eefa; }
body[data-page='home'] .plan-card.featured { animation: cem-border-pulse 6s ease-in-out infinite; }
@keyframes cem-border-pulse {
  0%, 100% { box-shadow: 0 0 10px #29e8f54f; }
  50% { box-shadow: 0 0 23px #29e8f585; }
}
.plan-top h3 { font-size: clamp(26px, 2.6vw, 36px); }
.plan-card .speed { color: #44effb; gap: 7px; }
.plan-card .speed strong { font-size: clamp(44px, 5vw, 72px); }
.plan-card .speed span { color: inherit; font-size: clamp(19px, 2.6vw, 34px); }
.plan-bonus { font-size: 13px; }
.innova-feature h2 { font-size: clamp(36px, 5vw, 76px); }
.innova-tagline { font-size: clamp(18px, 2.4vw, 25px); }

@media (max-width: 1220px) and (min-width: 1001px) {
  .nav-links { gap: 14px; }
  .nav-links > a { font-size: 12px; }
}
@media (max-width: 760px) {
  .announcement-copy h2 { font-size: clamp(31px, 8vw, 44px); }
  .with-photo-background .announcement-slide[data-topic='sensa'] h2 { font-size: clamp(27px, 7.8vw, 42px); }
  .hero.hero-announcements[data-topic='fibra']::before {
    background: linear-gradient(0deg, #061b32f5 0%, #061b32f5 43%, #061b3260 78%),
      url('assets/portada/fibra-luz.webp') 72% center / cover no-repeat;
  }
  .fiber-slide { min-height: 500px; justify-content: flex-end; }
  .fiber-slide .announcement-copy { max-width: 100%; }
  .fiber-slide .announcement-copy h2 { font-size: clamp(37px, 10vw, 56px); }
  .announcement-actions .btn, .header-cta { font-size: 13px; }
  .innova-feature h2 { font-size: clamp(36px, 10vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero-announcements[data-topic='fibra']::after,
  body[data-page='home'] #planes::before,
  body[data-page='home'] .plan-card.featured { animation: none; }
}

/* Innova: identidad de programación y títulos con una f de trazo claro. */
.announcement-topline h1,
#anuncio-innova .announcement-copy h2 { font-family: var(--cem-body); }
.hero.hero-announcements[data-topic='innova'] {
  --accent: #8af7ff;
  background: radial-gradient(ellipse at 83% 45%, #1b92a757, transparent 58%),
    linear-gradient(120deg, #123c63, #183c69 65%, #263c75);
}
#anuncio-innova { min-height: 460px; }
#anuncio-innova .innova-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 530px;
  margin: 0 0 22px;
}
#anuncio-innova .innova-code-lockup { display: flex; align-items: center; justify-content: flex-start; gap: clamp(6px, 1vw, 16px); width: 100%; margin: 0; }
#anuncio-innova .code-bracket { font: 400 clamp(32px, 5vw, 78px)/1 monospace; color: #6eecff; opacity: 1; text-shadow: 0 0 22px #50d5ee55; }
#anuncio-innova .innova-promo-mark > span { display: block; font: 700 18px/1.6 var(--cem-body); letter-spacing: .25em; color: #a7f5ff; }
#anuncio-innova .innova-promo-mark strong { font: 800 clamp(32px, 4.4vw, 70px)/1.12 var(--cem-body); letter-spacing: -.05em; color: #f2fcff; }
#anuncio-innova .innova-promo-mark small { display: block; margin-top: 8px; font: 600 clamp(9px, .9vw, 13px)/1.5 monospace; letter-spacing: .06em; color: #b7f0ff; }
#anuncio-innova .topic-tags { justify-content: flex-start; gap: 7px; margin-top: 0; }
#anuncio-innova .topic-tags span { font: 500 14px/1.4 var(--cem-body); padding: 6px 10px; border-color: #65cbe566; background: #183e60b0; color: #e0f9ff; }
#anuncio-innova .free-promo { margin-top: 0; font: 700 13px/1.5 var(--cem-body); letter-spacing: .07em; color: #9cffe0; }
@media (min-width: 1400px) { #anuncio-innova { min-height: 500px; } }
@media (max-width: 760px) {
  #anuncio-innova { min-height: 635px; }
  .with-photo-background #anuncio-innova { min-height: 780px; padding-top: 325px; }
  #anuncio-innova .innova-identity { gap: 10px; margin-bottom: 16px; }
  #anuncio-innova .topic-tags span { font-size: 13px; }
}


/* Cada sucursal tiene su propio contacto, visible también sin JavaScript. */
.branch-whatsapp { margin-top: 19px; }
.footer-col .branch-whatsapp h3 { font: 600 14px/1.5 var(--cem-body); color: #e4faff; margin-bottom: 8px; letter-spacing: 0; }
.footer-col .branch-link { margin-block: 9px; max-width: 100%; }
.branch-link > span:last-child { min-width: 0; }
.branch-link strong, .branch-number { display: block; font: 500 14px/1.5 var(--cem-body); }
.branch-link strong { color: #e5f6ff; }
.branch-number { color: #b4d9ec; white-space: nowrap; }
.branch-link .social-mark { flex-shrink: 0; }

/* Acceso directo al chat de atención al público. */
.webchat-float {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 18px;
  color: #eafdff;
  background: linear-gradient(125deg, #07518b, #0a708c);
  border: 1px solid #69dff2;
  border-radius: 18px;
  box-shadow: 0 8px 28px #00172d66;
  transition: transform .2s, background .2s;
  text-decoration: none;
}
.webchat-float:hover { transform: translateY(-3px); background: #096d99; }
.webchat-float:focus-visible { outline: 3px solid #a5f6ff; outline-offset: 4px; }
.webchat-float .icon { width: 27px; height: 27px; flex-shrink: 0; }
.webchat-float strong { display: block; font: 700 15px/1.4 var(--cem-body); }
.webchat-float small { display: block; font: 500 12px/1.4 var(--cem-body); color: #d0eff8; }
@media (max-width: 760px) {
  .webchat-float { right: 16px; bottom: 18px; min-height: 50px; padding: 9px 14px; gap: 9px; border-radius: 15px; }
  .webchat-float small { display: none; }
  .site-footer .footer-bottom { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) { .webchat-float { transition: none; } }

/* Imágenes reales de CEM junto a instituciones locales. */
.community-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 44px;
  margin-bottom: 38px;
  border: 1px solid #5bbbd663;
  border-radius: 22px;
  background: #16496a;
}
.community-feature-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.community-feature-fill { width: 100%; height: 100%; object-fit: cover; filter: blur(22px); opacity: .35; transform: scale(1.08); }
#community-feature-video { position: absolute; inset: 0 4% 0 auto; height: 100%; width: auto; max-width: 50%; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.community-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #103f60f5, #103f60e0 42%, #164a6c4d 72%, #164a6c20); }
.community-feature .home-community-heading { margin: 0; max-width: 59%; text-align: left; }
.community-feature .home-community-heading .eyebrow { justify-content: flex-start; }
.community-feature .home-community-heading h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; }
.community-feature .home-community-heading p { max-width: 520px; margin: 22px 0 0; font-size: 16px; color: #e0f2fc; }
.community-feature-caption { display: block; margin-top: 24px; color: #9ce9ef; font-size: 13px; line-height: 1.5; }
.community-video-toggle { position: absolute; right: 24px; bottom: 18px; min-height: 44px; padding: 10px 15px; border: 1px solid #a2dbe580; border-radius: 9px; color: #f0fcff; background: #103f60df; font: 600 13px/1.4 var(--cem-body); }
.community-video-toggle:hover { background: #175b7b; }
.community-video-toggle:focus-visible { outline: 3px solid #a5f6ff; outline-offset: 3px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin: 16px 0 22px; color: #f2fcff; }
.plan-price strong { font: 750 clamp(27px, 3vw, 38px)/1.2 var(--cem-body); letter-spacing: -.04em; }
.plan-price span { font: 500 14px/1.5 var(--cem-body); color: #c7e1ef; }
@media (max-width: 760px) {
  .community-feature { padding: 360px 23px 80px; min-height: 700px; margin-bottom: 26px; align-items: flex-end; }
  #community-feature-video { right: 50%; transform: translateX(50%); width: auto; height: 360px; max-width: 100%; -webkit-mask-image: none; mask-image: none; }
  .community-feature::after { background: linear-gradient(180deg, #16496a10 180px, #16496a44 280px, #16496aef 360px, #16496a 460px); }
  .community-feature .home-community-heading { max-width: 100%; }
  .community-feature .home-community-heading h2 { font-size: clamp(30px, 8.5vw, 40px); }
  .community-feature .home-community-heading p { font-size: 16px; margin-top: 18px; }
  .community-feature-caption { margin-top: 18px; }
  .community-video-toggle { right: 22px; bottom: 18px; }
}

#anuncio-innova .innova-upcoming-badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #73efdba6;
  border-radius: 8px;
  color: #bcffed;
  background: #0b5d6ed9;
  font: 700 13px/1.5 var(--cem-body);
  letter-spacing: .04em;
}
.home-community .community-feature { margin-bottom: 0; }
