* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: #fafcff;
      color: #1a2c3e;
      scroll-behavior: smooth;
    }

    /* Colores basados en logo (azul profundo, azul vibrante, toques plateados) */
    :root {
      --primary-dark: #0b2b5c;
      --primary: #1e4a76;
      --primary-light: #2e6a9e;
      --accent: #00a3b2;
      --gray-light: #f0f4f9;
      --gray-mid: #e2e8f0;
      --text-dark: #13294b;
      --text-soft: #2c3e50;
      --white: #ffffff;
      --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
      --shadow-hover: 0 20px 30px -12px rgba(0, 70, 100, 0.2);
    }

    /* Header */
    .header {
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(8px);
      box-shadow: 0 2px 15px rgba(0,0,0,0.05);
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      padding: 0.8rem 5%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      transition: all 0.25s ease-in-out;
    }

    /* Clase que se activa al hacer scroll: header más compacto */
    .header.scrolled {
      padding: 0.4rem 5%;
      background: rgba(255,255,255,0.98);
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo-img {
      height: 55px;
      width: auto;
      display: block;
      transition: height 0.25s ease;
    }
    .header.scrolled .logo-img {
      height: 45px;
    }

    .logo-text {
      font-weight: 800;
      font-size: 1.4rem;
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.3px;
      transition: font-size 0.25s;
    }
    .header.scrolled .logo-text {
      font-size: 1.2rem;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
    }

    .nav-links a {
      text-decoration: none;
      font-weight: 600;
      color: var(--text-dark);
      transition: 0.2s;
      font-size: 1rem;
      padding: 0.5rem 0;
      border-bottom: 2px solid transparent;
    }

    .nav-links a:hover, .nav-links a.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    .header-static {
      position: relative;
      box-shadow: 0 2px 15px rgba(0,0,0,0.05);
      background: #fff;
    }

    main {
      padding-top: 80px;
    }

    .page-static-header main {
      padding-top: 0;
    }

    /* Hero video */
    .hero-video-section {
      position: relative;
      width: 100%;
      height: clamp(320px, 85vh, 100vh);
      max-height: 100vh;
      overflow: hidden;
      background: #0b2b5c;
      margin-top: 0;
      isolation: isolate;
    }

    .video-slider {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .slide-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      opacity: 0;
      transition: opacity 0.6s ease-in-out;
      z-index: 1;
      pointer-events: none;
    }

    .slide-video.active {
      opacity: 1;
      z-index: 2;
    }

    .hero-video-section::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(11, 43, 92, 0.15) 0%, rgba(11, 43, 92, 0.45) 100%);
      z-index: 3;
      pointer-events: none;
    }

    .hero-controls {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1rem 1.25rem 1.25rem;
      background: linear-gradient(0deg, rgba(11, 43, 92, 0.85) 0%, rgba(11, 43, 92, 0) 100%);
    }

    .slider-arrow {
      position: static;
      transform: none;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.35);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      font-size: 1.1rem;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .slider-arrow:hover {
      background: var(--primary);
      transform: scale(1.05);
    }

    .hero-dots {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      flex: 1;
    }

    .hero-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: none;
      padding: 0;
      background: rgba(255, 255, 255, 0.35);
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
    }

    .hero-dot.active {
      background: var(--accent);
      transform: scale(1.2);
      box-shadow: 0 0 0 3px rgba(0, 163, 178, 0.35);
    }

    /* secciones informativas */
    .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 4rem 2rem;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--primary-dark);
      margin-bottom: 1rem;
      text-align: center;
    }

    .subtitle {
      text-align: center;
      color: var(--text-soft);
      font-size: 1.2rem;
      margin-bottom: 2rem;
      font-weight: 400;
    }

    .separator {
      width: 80px;
      height: 4px;
      background: var(--accent);
      margin: 0.8rem auto 2.5rem auto;
      border-radius: 4px;
    }

   
    .dynamic-service {
      background: linear-gradient(135deg, #0a284c 0%, #123b64 100%);
      border-radius: 48px;
      padding: 3rem 2rem;
      margin: 1rem auto;
      text-align: center;
      box-shadow: 0 25px 40px -12px rgba(0,0,0,0.25);
      position: relative;
      overflow: hidden;
    }
    .dynamic-service::before {
      content: "";
      position: absolute;
      top: -30%;
      left: -20%;
      width: 140%;
      height: 140%;
      background: radial-gradient(circle, rgba(0,163,178,0.15) 0%, rgba(0,0,0,0) 70%);
      pointer-events: none;
    }
    .dynamic-service h2 {
      font-size: 2.5rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.5px;
      position: relative;
    }
    .dynamic-service .highlight {
      color: #6dd5e0;
      border-bottom: 2px solid #00a3b2;
      display: inline-block;
      padding-bottom: 4px;
    }
    .service-description {
      color: rgba(255,255,255,0.9);
      max-width: 750px;
      margin: 1rem auto 2rem auto;
      font-size: 1.1rem;
      line-height: 1.5;
    }
    .stats-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2.5rem;
      margin-top: 1rem;
    }
    .stat-item {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(4px);
      border-radius: 60px;
      padding: 0.8rem 1.8rem;
      min-width: 140px;
      transition: transform 0.2s, background 0.2s;
      border: 1px solid rgba(255,255,255,0.2);
    }
    .stat-item:hover {
      transform: translateY(-5px);
      background: rgba(0,163,178,0.5);
      border-color: rgba(255,255,255,0.5);
    }
    .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: white;
      line-height: 1.2;
    }
    .stat-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #c4e6ed;
    }
    @keyframes pulseGlow {
      0% { text-shadow: 0 0 0px rgba(0,163,178,0);}
      100% { text-shadow: 0 0 8px rgba(0,163,178,0.5);}
    }
    .dynamic-service h2 span {
      animation: pulseGlow 2s infinite alternate;
    }

   
    .cards-circle-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      margin-top: 2rem;
    }

    .circle-card {
      flex: 1;
      min-width: 200px;
      max-width: 260px;
      text-align: center;
      transition: all 0.3s ease;
      padding: 0.5rem;
      border-radius: 28px;
      background: transparent;
    }

    .circle-wrapper {
      position: relative;
      display: inline-block;
      width: 180px;
      height: 180px;
      margin-bottom: 1.2rem;
    }

    .circle-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      box-shadow: 0 15px 30px rgba(0,0,0,0.1);
      transition: transform 0.25s, box-shadow 0.25s;
      border: 3px solid var(--gray-mid);
    }

    .circle-number {
      position: absolute;
      bottom: 5px;
      right: 5px;
      background: var(--primary-dark);
      color: white;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.4rem;
      border: 2px solid white;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      transition: 0.2s;
    }

    .circle-card h3 {
      font-size: 1.4rem;
      font-weight: 800;
      margin: 1rem 0 0.5rem;
      color: var(--text-dark);
    }

    .circle-card p {
      font-size: 0.9rem;
      color: #3a546d;
      line-height: 1.4;
    }

    .circle-card:hover .circle-img {
      transform: scale(1.02);
      border-color: var(--primary-light);
      box-shadow: 0 20px 30px -8px rgba(0,100,150,0.4);
    }
    .circle-card:hover .circle-number {
      background: var(--accent);
      transform: scale(1.05);
    }
    .circle-card:hover h3 {
      color: var(--primary);
    }

    .footer {
      background: #0e1f32;
      color: #cddfe7;
      padding: 3rem 5% 2rem;
      margin-top: 4rem;
      border-top-left-radius: 32px;
      border-top-right-radius: 32px;
    }

    .footer-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 2rem;
      margin-bottom: 2rem;
    }
    .footer-col {
      flex: 1;
      min-width: 180px;
    }
    .footer-logo-area {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 1rem;
    }
    
    .footer-logo-img {
      height: 46px;
      width: auto;
      display: block;
    }
    .footer-quote {
      font-style: italic;
      font-size: 0.9rem;
      margin-top: 0.8rem;
      opacity: 0.8;
      max-width: 220px;
    }
    .footer-col h4 {
      color: white;
      margin-bottom: 1rem;
      font-weight: 700;
      font-size: 1.2rem;
    }
    .footer-col ul {
      list-style: none;
    }
    .footer-col li, .footer-col a {
      color: #bdd4e2;
      text-decoration: none;
      line-height: 1.8;
      transition: 0.2s;
    }
    .footer-col a:hover {
      color: white;
      text-decoration: underline;
    }
    .copyright {
      border-top: 1px solid #2c445c;
      padding-top: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.8rem;
      color: #98b1c4;
    }
    .footer-bottom-copy {
      color: #98b1c4;
      text-align: left;
    }
    .footer-megaweb {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: rgba(205, 223, 231, 0.75);
      font-size: 0.85rem;
      transition: color 0.2s, opacity 0.2s;
      margin-left: auto;
    }
    .footer-megaweb:hover {
      color: var(--accent);
      opacity: 1;
    }
    .footer-megaweb-logo {
      height: 32px;
      width: auto;
      max-width: 110px;
      object-fit: contain;
      display: block;
    }


    /* Tablet y pantallas inferiores (≤1024px) */
    @media (max-width: 1024px) {
      main {
        padding-top: 72px;
      }

      .hero-video-section {
        height: auto;
        min-height: 280px;
        max-height: none;
        aspect-ratio: 16 / 9;
        margin: 0 1.25rem;
        width: calc(100% - 2.5rem);
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(11, 43, 92, 0.18);
      }

      .hero-controls {
        padding: 0.75rem 1rem 1rem;
        border-radius: 0 0 20px 20px;
      }

      .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 1rem;
      }

      .container {
        padding: 2rem 1.25rem;
      }

      .container[style*="padding-top"] {
        padding-top: 1.25rem !important;
      }

      .dynamic-service {
        border-radius: 24px;
        padding: 2rem 1.25rem;
        margin: 0;
      }

      .dynamic-service::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }

      .dynamic-service h2 {
        font-size: 1.65rem;
        line-height: 1.35;
      }

      .dynamic-service h2 span {
        animation: none;
      }

      .service-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
      }

      .stat-item {
        min-width: unset;
        width: 100%;
        border-radius: 16px;
        padding: 0.85rem 0.75rem;
      }

      .stat-item:hover {
        transform: none;
      }

      .stat-number {
        font-size: 1.6rem;
      }

      .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
      }

      .section-title {
        font-size: 2rem;
      }

      .cards-circle-row {
        gap: 1.5rem;
      }

      .circle-card {
        min-width: 160px;
        max-width: 100%;
        flex: 1 1 calc(50% - 1rem);
      }
    }

    @media (max-width: 800px) {
      .header {
        padding: 0.6rem 4%;
        justify-content: center;
      }

      .logo-container {
        width: 100%;
        justify-content: center;
      }

      .nav-links {
        gap: 0.75rem 1.25rem;
        justify-content: center;
        width: 100%;
        margin-top: 0.35rem;
      }

      .nav-links a {
        font-size: 0.85rem;
        padding: 0.35rem 0;
      }

      .hero-video-section {
        margin: 0 1rem;
        width: calc(100% - 2rem);
        aspect-ratio: 16 / 10;
        min-height: 220px;
        border-radius: 16px;
      }

      .hero-controls {
        border-radius: 0 0 16px 16px;
      }
    }

    @media (max-width: 640px) {
      main {
        padding-top: 118px;
      }

      .hero-video-section {
        aspect-ratio: 4 / 3;
        min-height: 200px;
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 14px;
      }

      .hero-controls {
        padding: 0.6rem 0.75rem 0.85rem;
        gap: 0.5rem;
      }

      .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
      }

      .hero-dot {
        width: 8px;
        height: 8px;
      }

      .dynamic-service {
        border-radius: 18px;
        padding: 1.75rem 1rem;
      }

      .dynamic-service h2 {
        font-size: 1.35rem;
      }

      .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        max-width: 100%;
      }

      .stat-number {
        font-size: 1.4rem;
      }

      .circle-wrapper {
        width: 140px;
        height: 140px;
      }

      .circle-number {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
      }

      .circle-card {
        flex: 1 1 100%;
        min-width: 100%;
      }

      .circle-card h3 {
        font-size: 1.2rem;
      }

      .footer-grid {
        flex-direction: column;
        gap: 1.8rem;
      }

      .footer-logo-area {
        justify-content: center;
      }

      .footer-quote {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
      }

      .footer-col {
        text-align: center;
      }

      .copyright {
        flex-direction: column;
        justify-content: center;
        text-align: center;
      }

      .footer-bottom-copy {
        text-align: center;
      }

      .footer-megaweb {
        margin-left: 0;
      }
    }

    @media (max-width: 380px) {
      .hero-video-section {
        aspect-ratio: 1 / 1;
        min-height: 180px;
      }

      .nav-links {
        gap: 0.5rem 0.85rem;
      }

      .nav-links a {
        font-size: 0.8rem;
      }
    }
    @media (min-width: 1025px) {
      .hero-video-section {
        margin: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        aspect-ratio: auto;
        height: clamp(400px, 85vh, 100vh);
      }

      .hero-controls {
        padding: 1.25rem 2rem 1.5rem;
      }
    }

    @media (min-width: 1400px) {
      .container { max-width: 1400px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .slide-video,
      .slider-arrow,
      .hero-dot,
      .stat-item {
        transition: none;
      }

      .dynamic-service h2 span {
        animation: none;
      }
    }