
    :root {
      --bg: #081b3a;
      --bg-deep: #030c1d;
      --bg-soft: #12346d;
      --panel: rgba(255, 255, 255, 0.072);
      --panel-strong: rgba(255, 255, 255, 0.105);
      --primary: #58b6d0;
      --primary-light: #8bdff0;
      --accent: #4e82c2;
      --text: #eef7ff;
      --muted: #b9cee5;
      --line: rgba(255, 255, 255, 0.14);
      --line-strong: rgba(139, 223, 240, 0.4);
      --shadow: 0 26px 78px rgba(0, 0, 0, 0.34);
      --radius-xl: 30px;
      --radius-lg: 24px;
      --radius-md: 18px;
      --container: 1180px;
      --header-height: 88px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: calc(var(--header-height) + 22px);
    }

    body {
      margin: 0;
      min-width: 320px;
      color: var(--text);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      background:
        radial-gradient(circle at 10% 5%, rgba(88, 182, 208, 0.2), transparent 31rem),
        radial-gradient(circle at 92% 24%, rgba(78, 130, 194, 0.18), transparent 28rem),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 38%, var(--bg-deep) 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.24;
      background-image:
        linear-gradient(rgba(139, 223, 240, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 223, 240, 0.035) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(to bottom, black, transparent 72%);
      z-index: -1;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

    button {
      font: inherit;
    }

    .container {
      width: min(var(--container), calc(100% - 40px));
      margin-inline: auto;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 3000;
      transform: translateY(-160%);
      padding: 11px 16px;
      border-radius: 12px;
      color: #041728;
      background: var(--primary-light);
      font-weight: 800;
      transition: transform 0.2s ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    main {
      position: relative;
    }

    .hero {
      padding: clamp(28px, 4vw, 48px) 0 54px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      padding: 8px 12px;
      border: 1px solid rgba(139, 223, 240, 0.32);
      border-radius: 999px;
      color: var(--primary-light);
      background: rgba(88, 182, 208, 0.095);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.085em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--primary-light);
      box-shadow: 0 0 18px rgba(139, 223, 240, 0.9);
    }

    h2,
    h3 {
      font-family: "Space Grotesk", "Inter", sans-serif;
      text-wrap: balance;
    }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 26px;
    }

    .btn {
      min-height: 50px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 20px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .btn:hover,
    .btn:focus-visible {
      transform: translateY(-2px);
      outline: none;
    }

    .btn-primary {
      color: #041728;
      background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--accent));
      box-shadow: 0 18px 42px rgba(88, 182, 208, 0.22);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
      box-shadow: 0 22px 50px rgba(88, 182, 208, 0.31);
    }

    .btn-secondary {
      color: var(--text);
      border-color: var(--line);
      background: rgba(255, 255, 255, 0.055);
    }

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
      border-color: var(--line-strong);
      background: rgba(88, 182, 208, 0.105);
    }

    .carousel {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background:
        radial-gradient(circle at 20% 15%, rgba(88, 182, 208, 0.25), transparent 36%),
        linear-gradient(145deg, rgba(23, 54, 103, 0.95), rgba(3, 12, 29, 0.96));
      box-shadow: var(--shadow);
      isolation: isolate;
    }

    .carousel-viewport {
      overflow: hidden;
      border-radius: inherit;
    }

    .carousel-track {
      display: flex;
      transform: translateX(0);
      transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }

    .slide {
      flex: 0 0 100%;
      min-width: 100%;
      position: relative;
      aspect-ratio: 16 / 7;
      background:
        linear-gradient(135deg, rgba(88, 182, 208, 0.16), rgba(78, 130, 194, 0.08)),
        #081b3a;
    }

    .slide a {
      display: block;
      width: 100%;
      height: 100%;
    }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      user-select: none;
      -webkit-user-drag: none;
    }

    .carousel-control {
      position: absolute;
      top: 50%;
      z-index: 4;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      color: white;
      background: rgba(3, 12, 29, 0.66);
      backdrop-filter: blur(12px);
      cursor: pointer;
      transform: translateY(-50%);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .carousel-control:hover,
    .carousel-control:focus-visible {
      border-color: var(--primary-light);
      background: rgba(8, 27, 58, 0.9);
      outline: none;
    }

    .carousel-control:active {
      transform: translateY(-50%) scale(0.96);
    }

    .carousel-control.prev {
      left: 18px;
    }

    .carousel-control.next {
      right: 18px;
    }

    .carousel-control svg {
      width: 22px;
      height: 22px;
    }

    .carousel-dots {
      position: absolute;
      left: 50%;
      bottom: 18px;
      z-index: 4;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 999px;
      background: rgba(3, 12, 29, 0.62);
      backdrop-filter: blur(12px);
      transform: translateX(-50%);
    }

    .carousel-dot {
      width: 9px;
      height: 9px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.42);
      cursor: pointer;
      transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
    }

    .carousel-dot[aria-current="true"] {
      width: 28px;
      border-radius: 999px;
      background: var(--primary-light);
    }

    .services {
      padding: 40px 0 86px;
    }

    .section-heading {
      max-width: 760px;
      margin-bottom: 26px;
    }

    .section-heading h2 {
      margin: 0;
      font-size: clamp(2rem, 4.5vw, 3.75rem);
      line-height: 1.04;
      letter-spacing: -0.04em;
    }

    .section-heading p {
      margin: 14px 0 0;
      color: var(--muted);
    }

    .service-list {
      display: grid;
      gap: 20px;
    }

    .service-card {
      position: relative;
      display: grid;
      grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
      gap: clamp(24px, 5vw, 70px);
      align-items: start;
      overflow: hidden;
      padding: clamp(24px, 4.6vw, 54px);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
      box-shadow: 0 18px 58px rgba(0, 0, 0, 0.19);
      backdrop-filter: blur(14px);
    }

    .service-card::after {
      content: "";
      position: absolute;
      width: 300px;
      height: 300px;
      right: -155px;
      bottom: -170px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(88, 182, 208, 0.16), transparent 68%);
      pointer-events: none;
    }

    .service-index {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--primary-light);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .service-index::after {
      content: "";
      width: 52px;
      height: 1px;
      background: linear-gradient(90deg, var(--primary-light), transparent);
    }

    .service-title {
      margin: 16px 0 0;
      font-size: clamp(1.75rem, 3.2vw, 3rem);
      line-height: 1.06;
      letter-spacing: -0.035em;
    }

    .service-summary {
      margin: 0 0 20px;
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.72;
    }

    .feature-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 18px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .feature-list li {
      position: relative;
      padding: 13px 14px 13px 42px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      color: #dcecff;
      background: rgba(8, 27, 58, 0.37);
      font-size: 0.94rem;
    }

    .feature-list li::before {
      content: "";
      position: absolute;
      top: 17px;
      left: 16px;
      width: 13px;
      height: 7px;
      border-left: 2px solid var(--primary-light);
      border-bottom: 2px solid var(--primary-light);
      transform: rotate(-45deg);
    }

    .service-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 20px;
      color: var(--primary-light);
      font-weight: 800;
    }

    .service-link span {
      transition: transform 0.2s ease;
    }

    .service-link:hover span,
    .service-link:focus-visible span {
      transform: translateX(4px);
    }

    .cta-section {
      padding: 0 0 54px;
    }

    .cta-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 30px;
      align-items: center;
      padding: clamp(26px, 5vw, 54px);
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-xl);
      background:
        radial-gradient(circle at 0% 0%, rgba(139, 223, 240, 0.17), transparent 34%),
        linear-gradient(135deg, rgba(23, 54, 103, 0.92), rgba(8, 27, 58, 0.93));
      box-shadow: var(--shadow);
    }

    .cta-card h2 {
      margin: 0;
      max-width: 720px;
      font-size: clamp(1.9rem, 4vw, 3.4rem);
      line-height: 1.05;
      letter-spacing: -0.04em;
    }

    .cta-card p {
      margin: 14px 0 0;
      max-width: 680px;
      color: var(--muted);
    }

    .cta-actions {
      margin-top: 0;
      justify-content: flex-end;
    }

    @media (max-width: 980px) {
      .slide {
        aspect-ratio: 16 / 8.8;
      }

      .service-card {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .cta-card {
        grid-template-columns: 1fr;
      }

      .cta-actions {
        justify-content: flex-start;
      }

    }

    @media (max-width: 680px) {
      .container {
        width: min(100% - 24px, var(--container));
      }

      .hero {
        padding-top: 24px;
      }

      .cta-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .btn {
        width: 100%;
      }

      .carousel {
        border-radius: 22px;
      }

      .slide {
        aspect-ratio: 4 / 3;
      }

      .carousel-control {
        width: 42px;
        height: 42px;
      }

      .carousel-control.prev {
        left: 10px;
      }

      .carousel-control.next {
        right: 10px;
      }

      .carousel-dots {
        bottom: 10px;
      }

      .services {
        padding-bottom: 66px;
      }

      .feature-list {
        grid-template-columns: 1fr;
      }

      .service-card {
        padding: 23px;
        border-radius: 20px;
      }


    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
  
/* Homepage: edge-to-edge hero. Header rules remain untouched. */
.hero { padding: 0; }
.hero > .container { width: 100%; max-width: none; }
.carousel { border: 0; border-radius: 0; box-shadow: none; }
.slide { aspect-ratio: auto; height: calc(100svh - var(--actual-header-height, 88px)); min-height: 360px; }
.slide img { object-fit: contain; background: #081b3a; }
.carousel-control.prev { left: clamp(12px, 3vw, 48px); }
.carousel-control.next { right: clamp(12px, 3vw, 48px); }
.carousel-dots { bottom: 24px; gap: 2px; padding: 2px 10px; }
.carousel-dot { position: relative; width: 44px; height: 44px; background: transparent; }
.carousel-dot::after { content: ''; position: absolute; inset: 18px; border-radius: 20px; background: #8795a7; transition: inset .25s, background .25s; }
.carousel-dot[aria-current="true"] { width: 44px; background: transparent; }
.carousel-dot[aria-current="true"]::after { inset: 18px 8px; background: #8bdff0; }
.carousel-pause { position: absolute; right: clamp(12px, 3vw, 48px); bottom: 24px; min-height: 44px; padding: 8px 16px; border: 1px solid #657b93; border-radius: 30px; color: #fff; background: #030c1de6; cursor: pointer; }
.hero-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.services { padding-top: clamp(64px, 8vw, 120px); }
.section-heading { margin-bottom: 48px; }
.service-list { gap: 0; }
.service-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: clamp(32px, 5vw, 64px) 0; background: none; box-shadow: none; backdrop-filter: none; }
.service-card:last-child { border-bottom: 1px solid var(--line); }
.service-card::after { display: none; }
.service-title { margin-top: 0; }
.feature-list li { border: 0; border-radius: 0; background: transparent; padding-left: 26px; }
.feature-list li::before { left: 0; }
.service-link { min-height: 44px; }
.cta-section { padding-bottom: clamp(64px, 8vw, 120px); }
main :focus-visible { outline: 2px solid #8bdff0; outline-offset: 5px; }
@media (max-width: 680px) {
 .carousel-pause { bottom: 82px; right: 12px; font-size: .8rem; }
 .slide { min-height: 300px; }
 .section-heading h2 { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (prefers-reduced-motion: no-preference) {
 .reveal-enter { animation: reveal-in .7s cubic-bezier(.2,.7,.2,1) both; }
 @keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
 .service-title { transition: color .25s; }
 .service-card:hover .service-title { color: var(--primary-light); }
}
.slide { isolation: isolate; }
.slide::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--slide-image) center / cover; filter: blur(22px) brightness(.42); }
.slide:nth-child(1) { --slide-image: url('/assets/home/hero-continuidad.webp'); }
.slide:nth-child(2) { --slide-image: url('/assets/home/hero-recuperacion.webp'); }
.slide:nth-child(3) { --slide-image: url('/assets/home/hero-ciberseguridad.webp'); }
.slide:nth-child(4) { --slide-image: url('/assets/home/hero-infraestructura.webp'); }
.slide img { background: transparent; }
