/* Portada: hero con imagen, franja de valor y abanico de servicios con tarjetas «cyber».
   También la cargan las páginas de servicio (conversación de ejemplo, calculadora y planes completos). */
.home-page { --font-tech: "Space Grotesk", var(--font-head); }
.home-page [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.home-page .hero { padding: clamp(36px, 5vw, 72px) 0 clamp(52px, 6vw, 84px); isolation: isolate; }
.home-page .hero-bg { z-index: 0; }
/* Alineado arriba: si el texto cambia de alto al cargar la fuente, la foto no se desplaza (CLS). */
.home-page .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.home-page .hero-content { min-width: 0; max-width: 620px; }
.home-page .hero-title { font-size: clamp(2.05rem, 3.7vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.home-page .hero-title .grad-text { display: block; }
.home-page :is(.section-head h2, .fan-body h3, .cta-head h2) { text-wrap: balance; }
.home-page .hero-sub { font-size: 1.14rem; max-width: 560px; margin: 22px 0 28px; }
.home-page .hero-actions { gap: 12px; }
.btn-lg { font-size: 1.05rem; padding: 16px 28px; }
.hero-micro { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }
.hero-micro-icon { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e3f6ea; color: #1d7f35; }
.hero-micro-icon svg { width: 12px; height: 12px; }
/* Palomita dibujada con CSS: se ve igual en cualquier dispositivo, sin depender de fuentes de símbolos. */
.chip-week li::before { content: ""; position: absolute; width: 5px; height: 10px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.home-page .hero-trust { gap: 16px 0; margin-top: 30px; }
.home-page .hero-trust li { padding-right: 16px; padding-left: 16px; }
.home-page .hero-trust li:first-child { padding-left: 0; }
.home-page .hero-trust strong { font-size: 1.2rem; }

.hero-visual { position: relative; min-width: 0; width: min(500px, 100%); justify-self: end; margin-top: 8px; }
.hero-visual::before { content: ""; position: absolute; inset: 7% -5% -5% 9%; z-index: -1; border-radius: 34px; background: linear-gradient(135deg, var(--blue), var(--cyan) 55%, var(--green)); opacity: .9; transform: rotate(3.5deg); }
.hero-photo-frame { position: relative; overflow: hidden; border-radius: 28px; background: #dfe9f3; box-shadow: 0 30px 70px rgba(7, 20, 38, .22); }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-chip { position: absolute; z-index: 2; color: var(--ink); background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(7, 20, 38, .18); }
.chip-lead { top: 8%; left: -38px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; max-width: 300px; animation: chip-float 6s ease-in-out infinite; }
.chip-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e3f6ea; color: #0f7a3c; }
.chip-text small { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.chip-text strong { display: block; font-family: var(--font-head); font-size: .86rem; font-weight: 800; line-height: 1.25; }
.chip-check { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d7f35; color: #fff; }
.chip-week { right: -30px; bottom: 9%; padding: 14px 16px; min-width: 228px; animation: chip-float 6s ease-in-out infinite 1.2s; }
.chip-week small { display: block; margin-bottom: 8px; font: 800 .68rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.chip-week ul { list-style: none; display: grid; gap: 6px; }
.chip-week li { position: relative; padding-left: 22px; font-size: .84rem; font-weight: 700; }
.chip-week li::before { left: 4px; top: 2px; color: #1d7f35; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Punto luminoso de la franja de valor y estilos de foco compartidos. */
.calc-card :is(a, input):focus-visible { outline: 2px solid #9cffe6; outline-offset: 4px; }
.signal-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #73efd2; box-shadow: 0 0 0 4px #73efd217, 0 0 12px #73efd24d; }
.home-page .nav a:focus-visible, .home-page .nav-toggle:focus-visible { outline: 3px solid #095ca9; outline-offset: 3px; }

/* Una cinta continua con tipografía geométrica y conectores, a ritmo de lectura. */
.home-page .value-marquee { position: relative; display: flex; align-items: center; gap: 0; padding: 0; min-height: 90px; background: linear-gradient(100deg, #071829, #102e41 55%, #071829); border-block: 1px solid #2c6174; }
.value-marquee::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(#a9e7ff12 1px, transparent 1px), linear-gradient(90deg, #a9e7ff12 1px, transparent 1px); background-size: 16px 16px; }
.value-signature { display: flex; gap: 13px; align-items: center; flex: 0 0 220px; padding: 14px 25px; border-right: 1px solid #b4eaff23; color: #8dabc0; font: .6rem/1.8 var(--font-tech); letter-spacing: .1em; z-index: 1; }
.value-signature strong { color: #d6f1ff; font-weight: 500; }
.value-window { overflow: hidden; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.home-page .value-marquee .marquee-track { gap: 0; animation: scroll 48s linear infinite; }
.value-group { display: flex; flex-shrink: 0; align-items: center; }
.home-page .value-item { display: flex; align-items: center; gap: 15px; padding: 24px 0 24px 32px; white-space: nowrap; }
.home-page .value-item > span { font: 500 1.08rem var(--font-tech); color: #e1f6ff; opacity: 1; letter-spacing: -.02em; }
.value-item svg { width: 25px; height: 25px; color: #77ddd6; }
.value-item i { font: 300 1.1rem var(--font-tech); color: #5e93a6; margin-left: 20px; font-style: normal; }
.value-pause { position: relative; order: -1; flex: 0 0 44px; height: 44px; margin: 0 0 0 16px; border: 1px solid #416275; border-radius: 50%; background: #081c2e; color: #bde7f7; cursor: pointer; }
.value-pause:focus-visible { outline: 2px solid #8cffe3; outline-offset: 3px; }
.value-marquee:hover .marquee-track, .value-marquee:focus-within .marquee-track, .value-marquee[data-paused="true"] .marquee-track { animation-play-state: paused; }

/* ---------- Descubrimiento: conversación y calculadora ---------- */
.oportunidad { background: linear-gradient(180deg, var(--bg-soft), #fff 85%); }
.op-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.chat-demo { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--ink); }
.chat-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font: 900 1.05rem var(--font-head); }
.chat-name { color: #fff; font: 800 .95rem/1.3 var(--font-head); }
.chat-meta { color: #b8c9d9; font-size: .8rem; }
.chat-thread { list-style: none; display: grid; gap: 10px; padding: 20px; background-color: #eef4f8; background-image: radial-gradient(rgba(10, 116, 218, .07) 1px, transparent 1px); background-size: 16px 16px; }
.msg { max-width: 88%; padding: 9px 14px 11px; border-radius: 16px; box-shadow: 0 2px 6px rgba(14, 27, 44, .07); }
.msg p { font-size: .93rem; line-height: 1.5; color: var(--ink); }
.msg-who { display: block; margin-bottom: 2px; font: 800 .7rem var(--font-head); letter-spacing: .03em; }
.msg-us { justify-self: start; background: #fff; border-top-left-radius: 4px; }
.msg-us .msg-who { color: var(--blue-ink); }
.msg-them { justify-self: end; background: #dff3e6; border-top-right-radius: 4px; }
.msg-them .msg-who { color: #1b5e34; }
.chat-insight { margin: 18px 20px 0; padding: 14px 16px; border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; background: #f2fafe; font-size: .95rem; }
.chat-demo figcaption { padding: 12px 20px 18px; font-size: .78rem; color: #566a7c; }
.chat-demo.is-waiting :is(.msg, .chat-insight) { opacity: 0; transform: translateY(10px); }
.chat-demo.is-playing :is(.msg, .chat-insight) { animation: msg-in .45s ease both; }
.chat-demo.is-playing .msg:nth-child(2) { animation-delay: .8s; }
.chat-demo.is-playing .msg:nth-child(3) { animation-delay: 1.6s; }
.chat-demo.is-playing .msg:nth-child(4) { animation-delay: 2.4s; }
.chat-demo.is-playing .msg:nth-child(5) { animation-delay: 3.2s; }
.chat-demo.is-playing .msg:nth-child(6) { animation-delay: 4.2s; }
.chat-demo.is-playing .chat-insight { animation-delay: 5s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.calc-card { position: relative; overflow: hidden; padding: clamp(24px, 3.4vw, 36px); border-radius: 22px; color: #fff; background: radial-gradient(520px 300px at 100% 0, rgba(0, 194, 255, .2), transparent 60%), var(--bg-dark); box-shadow: 0 28px 60px rgba(7, 20, 38, .25); }
.calc-card h3 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 800; line-height: 1.25; }
.calc-intro { margin: 8px 0 22px; color: #b8c9d9; font-size: .92rem; }
.calc-field { margin-bottom: 18px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.calc-row label { color: #e1ecf5; font-size: .92rem; font-weight: 700; }
.calc-row output { color: #fff; font: 700 1.12rem var(--font-tech); white-space: nowrap; }
.calc-field input[type="range"] { --fill: 0%; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan) 0 var(--fill), rgba(255, 255, 255, .16) var(--fill) 100%); }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 24px; height: 24px; margin-top: -8px; border: 4px solid var(--cyan); border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.calc-field input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.calc-field input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--cyan); }
.calc-field input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border: 4px solid var(--cyan); border-radius: 50%; background: #fff; }
.calc-result { margin-top: 6px; padding: 20px; border: 1px solid rgba(0, 194, 255, .28); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.calc-label { color: #a9c1d4; font: 800 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.calc-amount { margin: 8px 0 6px; color: #c8d8e6; font-weight: 700; }
.calc-amount strong { font: 700 clamp(2.2rem, 5vw, 3rem)/1 var(--font-tech); letter-spacing: -.03em; color: #57d6ff; background: linear-gradient(90deg, #57d6ff, #5ce1c5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc-year { color: #c8d8e6; font-size: .9rem; }
.calc-year span { color: #fff; font-weight: 700; }
.calc-warn { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 206, 0, .12); color: #ffe27a; font-size: .82rem; }
.calc-disclaimer { margin: 14px 0 20px; color: #a9c1d4; font-size: .78rem; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-actions .btn { flex: 1 1 200px; padding: 14px 18px; }
.btn-wa-outline { color: #fff; background: transparent; border: 2px solid rgba(255, 255, 255, .35); }
.btn-wa-outline:hover { color: #5ce1c5; border-color: #5ce1c5; }

/* ---------- Convicción: planes ---------- */
.home-page .price-card .price-goal { min-height: 0; color: var(--ink); font-family: var(--font-head); font-weight: 700; line-height: 1.4; }
.price-first { margin: -6px 0 24px; padding: 16px 16px 14px; border: 1px dashed rgba(10, 116, 218, .32); border-radius: 14px; background: var(--bg-soft); }
.price-first-label { margin-bottom: 10px; color: var(--blue-ink); font: 800 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
/* Cronograma de 4 pasos; anula la palomita que styles.css pone a cada li de las tarjetas de precio. */
.price-steps { list-style: none; display: grid; gap: 12px; margin: 0 0 12px; }
.price-card .price-steps li { position: relative; padding-left: 18px; color: var(--ink-soft); }
.price-card .price-steps li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 194, 255, .16); transform: none; }
.price-card .price-steps li::after { content: ""; position: absolute; left: 3.5px; top: 17px; bottom: -11px; width: 1px; background: rgba(10, 116, 218, .25); }
.price-card .price-steps li:last-child::after { display: none; }
.step-when { display: block; margin-bottom: 2px; color: var(--blue-ink); font: 800 .7rem/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.step-what { display: block; font-size: .88rem; line-height: 1.45; }
.price-time { padding-top: 10px; border-top: 1px dashed rgba(10, 116, 218, .25); color: var(--ink-soft); font-size: .85rem; line-height: 1.45; }
.price-time strong { color: var(--ink); }
.pricing-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 36px auto 0; }
.pricing-roles > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.pricing-roles h3 { margin-bottom: 6px; font-size: 1rem; font-weight: 800; }
.pricing-roles p { color: var(--ink-soft); font-size: .93rem; }
/* «Ver más»: el precio y lo incluido quedan a la vista; el detalle se abre al elegirlo. */
.price-more { margin: -6px 0 22px; }
.price-more > summary, .roles-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; color: var(--blue-ink); font: 800 .86rem var(--font-head); }
.price-more > summary { min-height: 46px; padding: 11px 14px; border: 1px dashed rgba(10, 116, 218, .32); border-radius: 12px; background: var(--bg-soft); }
.price-more > summary::-webkit-details-marker, .roles-more > summary::-webkit-details-marker { display: none; }
.price-more > summary::after, .roles-more > summary::after { content: "+"; flex: 0 0 auto; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.price-more[open] > summary::after, .roles-more[open] > summary::after { transform: rotate(45deg); }
.price-more .price-first { margin: 10px 0 0; }
.roles-more { max-width: 1040px; margin: 30px auto 0; }
.roles-more > summary { justify-content: center; min-height: 46px; padding: 11px; }
.roles-more .pricing-roles { margin-top: 14px; }
.price-more > summary:focus-visible, .roles-more > summary:focus-visible { outline: 3px solid #095ca9; outline-offset: 3px; border-radius: 12px; }

/* ---------- Herramientas gratuitas ---------- */
.tools-showcase { background: var(--bg-soft); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase-card { position: relative; overflow: hidden; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.showcase-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-tri); }
.showcase-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.showcase-icon { display: block; margin-bottom: 14px; font-size: 2.2rem; }
.showcase-card h3 { margin-bottom: 8px; font-size: 1.2rem; font-weight: 800; }
.showcase-card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Cierre ---------- */
.home-page .cta-final { max-width: 640px; margin: 0 auto; }
.home-page .cta-final-actions { flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.byaf { font-size: .85rem !important; color: var(--ink-soft) !important; font-style: italic; }
.home-page .cta-box .byaf { color: #b8c9d9 !important; }

/* El menú se recoge antes de que sus enlaces dejen de caber. */
@media (max-width: 1100px) {
  .home-page .nav-toggle { display: flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .home-page .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s ease; }
  .home-page .nav-links.open { max-height: 420px; visibility: visible; }
  .home-page .nav-links li { border-top: 1px solid var(--line); }
  .home-page .nav-links a { display: block; padding: 16px 20px; }
  .home-page .nav-cta { border-radius: 0; }
  .value-signature { flex-basis: 180px; padding-inline: 18px; }
  .chip-lead { left: -18px; }
  .chip-week { right: -14px; }
}
@media (max-width: 980px) {
  .home-page .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .home-page .hero-content { max-width: 650px; }
  .home-page .hero-sub { max-width: 620px; }
  .hero-visual { justify-self: center; width: min(560px, 100%); }
  .hero-visual::before { inset: 6% -3% -4% 6%; transform: rotate(2.5deg); }
  .hero-photo { aspect-ratio: 16 / 10; }
  .chip-lead { top: auto; left: 14px; bottom: 14px; max-width: calc(100% - 28px); animation: none; }
  .chip-week { top: 14px; right: 14px; bottom: auto; min-width: 0; animation: none; }
  .op-grid { grid-template-columns: 1fr; }
  .chat-demo, .calc-card { width: min(640px, 100%); margin-inline: auto; }
  .showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
}
@media (max-width: 980px) {
  .pricing-roles { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 600px) {
  .home-page .hero { padding: 30px 0 44px; }
  .home-page .hero-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .home-page .hero .eyebrow { font-size: .68rem; letter-spacing: .8px; }
  .home-page .hero-sub { font-size: 1.03rem; line-height: 1.6; margin: 18px 0 23px; }
  .home-page .hero-actions { flex-direction: column; gap: 11px; }
  .home-page .hero-actions .btn { width: 100%; font-size: .92rem; padding: 14px 12px; min-height: 50px; text-align: center; line-height: 1.3; }
  .home-page .hero-actions .btn-primary { font-size: clamp(.8rem, 3.6vw, .92rem); letter-spacing: -.01em; }
  .hero-micro { font-size: .8rem; }
  .home-page .hero-trust { margin-top: 24px; padding-top: 18px; gap: 14px 18px; }
  .home-page .hero-trust li { padding: 0; border: 0; font-size: .77rem; }
  .home-page .hero-trust strong { font-size: 1.05rem; }
  .hero-visual::before { display: none; }
  .hero-photo-frame { border-radius: 20px; }
  .chip-week { display: none; }
  .chip-lead { padding: 9px 11px; gap: 8px; }
  .chip-icon { width: 30px; height: 30px; }
  .chip-text strong { font-size: .8rem; }
  .home-page .value-marquee { min-height: 78px; }
  .value-signature { display: none; }
  .home-page .value-item > span { font-size: 1rem; }
  .value-pause { margin-right: 0; margin-left: 10px; }
  .chat-thread { padding: 16px 14px; }
  .msg { max-width: 92%; }
  .chat-insight { margin-inline: 14px; }
  .chat-demo figcaption { padding-inline: 14px; }
  .calc-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .calc-actions .btn { flex-basis: 100%; }
  .home-page .cta-final-actions { flex-direction: column; }
  .home-page .cta-final-actions .btn, .home-page .cta-final .btn-whatsapp { width: 100%; }
  .roles-more > summary { justify-content: space-between; text-align: left; }
  .home-page .local-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .local-zones li.is-base { grid-column: 1 / -1; }
  /* Tarjetas de servicios en celular: foto pequeña a la izquierda para no alargar la portada. */
  /* Portada y páginas de servicio más cortas en celular. */
  .home-page .section { padding-block: 48px; }
  .home-page .process-grid { gap: 12px; }
  .home-page .process-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 18px; }
  .home-page .process-card .process-num { grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; font-size: .88rem; }
  .home-page .process-card h3 { margin: 6px 0 4px; font-size: 1.02rem; }
  .home-page .process-card p { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page .wa-float, .hero-chip { animation: none; }
  .price-more > summary::after, .roles-more > summary::after { transition: none; }
  .home-page .reveal { opacity: 1; transform: none; transition: none; }
  .home-page .nav-links { transition: none; }
  .home-page .value-marquee .marquee-track { animation: none; width: auto; }
  .value-window { mask-image: none; }
  .value-group { flex-wrap: wrap; justify-content: center; }
  .value-group[aria-hidden="true"] { display: none; }
  .home-page .value-item { white-space: normal; padding: 12px 16px; }
  .value-item i { display: none; }
}

/* ---------- Versión en inglés ---------- */
/* Planes en EE. UU.: se cotiza el alcance, sin precio publicado. */
.price-card h3.price-quote { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

/* =====================================================================
   ESTILO «CYBER»: zonas oscuras con retícula, tarjetas con esquinas cortadas,
   bordes de neón cian y profundidad 3D. Misma paleta del sitio (azul, cian, verde agua, marino).
   ===================================================================== */
.cyber-zone { position: relative; overflow: hidden; color: #e6f6ff; background: radial-gradient(900px 520px at 12% 0%, rgba(10, 116, 218, .3), transparent 62%), radial-gradient(760px 460px at 92% 100%, rgba(0, 194, 255, .16), transparent 62%), #050e1c; }
.cyber-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(0, 194, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 194, 255, .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%); }
.cyber-zone > .container { position: relative; }
.cyber-zone .section-head h2 { color: #fff; }
.cyber-zone .section-lead { color: #a9c3d8; }
.cyber-zone .section-lead a, .cyber-zone .buy-note a { color: #91e6fb; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Abanico de servicios: franjas verticales que se expanden al pasar el cursor ---------- */
.fan { display: flex; gap: 12px; height: clamp(450px, 44vw, 520px); perspective: 1600px; perspective-origin: 50% 40%; }
.fan-panel {
  --cut: 26px; --fan-angle: 0deg;
  position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; min-width: 0; overflow: hidden;
  background: #08182b; color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transform: rotateY(var(--fan-angle)); transform-origin: 50% 50%;
  transition: flex-grow .7s cubic-bezier(.22, .9, .24, 1), transform .7s cubic-bezier(.22, .9, .24, 1);
}
.fan-panel.is-open { flex-grow: 6; }
.fan-photo, .fan-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fan-photo img { object-fit: cover; filter: grayscale(.9) brightness(.5) contrast(1.15); transform: scale(1.15); transition: filter .7s ease, transform 1.4s cubic-bezier(.22, .9, .24, 1); }
.fan-panel.is-open .fan-photo img { filter: saturate(1.05) brightness(.9); transform: scale(1); }
/* Velo azul con líneas de barrido (scanlines) para que el texto siempre se lea. */
.fan-panel::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 194, 255, .06) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(10, 116, 218, .42) 0%, rgba(5, 14, 28, .72) 50%, rgba(5, 14, 28, .97) 100%); transition: opacity .6s; }
.fan-panel.is-open::before { background: repeating-linear-gradient(0deg, rgba(0, 194, 255, .05) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(5, 14, 28, 0) 20%, rgba(5, 14, 28, .6) 55%, rgba(5, 14, 28, .96) 100%); }
/* Marco de neón con esquinas tipo HUD. */
.fan-frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid rgba(0, 194, 255, .22); clip-path: inherit; transition: border-color .4s, box-shadow .4s; }
.fan-frame::before, .fan-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--cyan); opacity: .55; transition: opacity .4s, filter .4s; }
.fan-frame::before { left: 10px; top: 10px; border-left-width: 2px; border-top-width: 2px; }
.fan-frame::after { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
.fan-panel.is-open .fan-frame { border-color: rgba(0, 194, 255, .8); box-shadow: inset 0 0 0 1px rgba(0, 194, 255, .2), inset 0 0 46px rgba(0, 194, 255, .18); }
.fan-panel.is-open .fan-frame::before, .fan-panel.is-open .fan-frame::after { opacity: 1; filter: drop-shadow(0 0 6px var(--cyan)); }
.fan-panel:focus-within .fan-frame { border: 2px solid #9cffe6; }
/* Pestaña de la franja cerrada: número, nombre en vertical e ícono. */
.fan-tab { position: absolute; inset: 26px 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: opacity .35s ease; }
.fan-num { color: var(--cyan); font: 600 .82rem var(--font-tech); letter-spacing: .14em; text-shadow: 0 0 10px rgba(0, 194, 255, .8); }
.fan-name { writing-mode: vertical-rl; transform: rotate(180deg); color: #e2f6ff; font: 600 1rem var(--font-tech); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.fan-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(0, 194, 255, .5); border-radius: 10px; background: rgba(0, 194, 255, .08); color: var(--cyan); box-shadow: 0 0 18px rgba(0, 194, 255, .28); }
.fan-panel.is-open .fan-tab { opacity: 0; }
/* Contenido de la franja abierta. El ancho es fijo para que el texto no se reacomode mientras se abre. */
.fan-body { position: relative; z-index: 2; flex: 0 0 auto; width: min(560px, 54vw); padding: 0 36px 34px; opacity: 0; transition: opacity .3s ease; }
.fan-panel.is-open .fan-body { opacity: 1; transition: opacity .45s ease .2s; }
.fan-body > :not(h3) { transform: translateY(14px); transition: transform .55s cubic-bezier(.22, .9, .24, 1); }
.fan-panel.is-open .fan-body > :not(h3) { transform: none; transition-delay: .2s; }
.fan-code { margin-bottom: 10px; color: #5ce1c5; font: 500 .7rem var(--font-tech); letter-spacing: .22em; }
.fan-service { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--cyan); font: 800 .76rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.fan-body h3 { margin-bottom: 12px; color: #fff; font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.14; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.fan-body h3 a { color: inherit; }
/* Toda la franja es clicable: el enlace del título se extiende sobre ella. */
.fan-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.fan-body h3 a:focus-visible { outline: none; }
.fan-text { max-width: 450px; margin-bottom: 20px; color: #c7d9e8; font-size: 1rem; line-height: 1.55; }
.fan-more, .cc-more { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 800 .9rem var(--font-head); }
.fan-more { padding: 12px 20px; border: 1px solid rgba(0, 194, 255, .65); background: linear-gradient(90deg, rgba(10, 116, 218, .7), rgba(0, 194, 255, .35)); box-shadow: 0 0 26px rgba(0, 194, 255, .35); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.fan-more span, .cc-more span { display: inline-block; transition: transform .25s; }
.fan-panel:hover .fan-more span, .cyber-card:hover .cc-more span { transform: translateX(5px); }

/* ---------- Tarjetas «cyber» (siguiente paso, contratar, servicios relacionados) ---------- */
.cyber-card {
  --rx: 0deg; --ry: 0deg; --cut: 20px;
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 26px 24px;
  border: 1px solid rgba(0, 194, 255, .24); color: #e6f6ff;
  background: repeating-linear-gradient(0deg, rgba(0, 194, 255, .035) 0 1px, transparent 1px 4px), linear-gradient(160deg, rgba(16, 44, 72, .95), rgba(6, 18, 34, .98));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s;
}
.cyber-card::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px; border: 0 solid var(--cyan); border-right-width: 2px; border-bottom-width: 2px; opacity: .6; pointer-events: none; }
.cyber-card:hover { border-color: rgba(0, 194, 255, .7); box-shadow: inset 0 0 36px rgba(0, 194, 255, .14); }
.cyber-card:focus-within, a.cyber-card:focus-visible { outline: none; border: 2px solid #9cffe6; }
.cyber-card h3 { color: #fff; font-size: 1.22rem; font-weight: 800; line-height: 1.25; }
.cyber-card h3 a { color: inherit; }
.cyber-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cyber-card h3 a:focus-visible { outline: none; }
.cc-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(0, 194, 255, .5); border-radius: 12px; background: rgba(0, 194, 255, .1); color: var(--cyan); box-shadow: 0 0 20px rgba(0, 194, 255, .25); }
.cc-kicker { color: var(--cyan); font: 600 .72rem var(--font-tech); letter-spacing: .18em; text-transform: uppercase; }
.cc-text { color: #b9cee0; font-size: .95rem; line-height: 1.55; }
.cc-more { margin-top: auto; padding-top: 6px; color: #9be9ff; }
.cc-badge { position: absolute; top: 18px; right: 22px; padding: 5px 11px; border-radius: 99px; background: rgba(92, 225, 197, .16); color: #5ce1c5; font: 800 .7rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.cc-alt { position: relative; z-index: 2; font-size: .84rem; }
.cc-alt-link { color: #91e6fb; text-decoration: underline; text-underline-offset: 3px; }
/* Diagnóstico gratis: la tarjeta destacada. */
.cyber-card.cyber-diag { border-color: rgba(92, 225, 197, .6); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px), radial-gradient(420px 280px at 100% 0, rgba(0, 194, 255, .45), transparent 62%), linear-gradient(150deg, #0a74da 0%, #0b3a6e 48%, #071426 100%); box-shadow: inset 0 0 50px rgba(0, 194, 255, .18); }
.cyber-diag h3 { font-size: 1.5rem; }
.cyber-diag .cc-text { color: #d6e6f3; }
.cyber-diag .cc-more { align-self: flex-start; padding: 12px 20px; background: var(--grad); box-shadow: 0 0 28px rgba(0, 194, 255, .45); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.next-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; margin-top: 22px; }
.next-card h3 { font-size: 1.12rem; }
.next-card.cyber-diag h3 { font-size: 1.5rem; }

@media (max-width: 980px), (hover: none) {
  /* Sin ratón o en pantallas medianas: las franjas se ven como tarjetas completas. */
  .fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; height: auto; perspective: none; }
  .fan-panel { justify-content: flex-start; transform: none; }
  .fan-panel:last-child { grid-column: 1 / -1; }
  /* Foto arriba y texto debajo, sobre fondo sólido, para que siempre se lea. */
  .fan-panel .fan-photo { position: relative; display: block; height: 180px; }
  .fan-panel .fan-photo img { position: absolute; }
  .fan-panel::before { background: repeating-linear-gradient(0deg, rgba(0, 194, 255, .05) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(5, 14, 28, 0) 0, rgba(5, 14, 28, .25) 110px, #07152a 180px, #07152a 100%); }
  .fan-photo img { filter: saturate(1.05) brightness(.9); transform: none; }
  .fan-tab, .fan-code { display: none; }
  .fan-body, .fan-panel.is-open .fan-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; width: auto; margin-top: -30px; padding: 0 22px 22px; opacity: 1; }
  .fan-more { margin-top: auto; }
  .fan-body > :not(h3) { transform: none; }
  .fan-frame { border-color: rgba(0, 194, 255, .45); }
  .fan-frame::before, .fan-frame::after { opacity: .9; }
  .next-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-cards .cyber-diag { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .fan { grid-template-columns: 1fr; gap: 12px; }
  .fan-panel { --cut: 18px; }
  .fan-panel .fan-photo { height: 150px; }
  .fan-panel::before { background: repeating-linear-gradient(0deg, rgba(0, 194, 255, .05) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(5, 14, 28, 0) 0, rgba(5, 14, 28, .2) 90px, #07152a 150px, #07152a 100%); }
  .fan-body, .fan-panel.is-open .fan-body { margin-top: -26px; padding: 0 18px 18px; }
  .fan-text { display: none; }
  .fan-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
  .fan-more { padding: 9px 14px; font-size: .84rem; }
  .next-cards { grid-template-columns: 1fr; gap: 12px; }
  .cyber-card { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-panel, .fan-photo img, .fan-tab, .fan-body, .fan-body > :not(h3), .cyber-card, .fan-more span, .cc-more span { transition: none; }
  .fan-panel { transform: none; }
  .cyber-card { transform: none; }
}
