
    /* Ajuste para que el menú sticky no tape las secciones al hacer clic */
    section[id] {
      scroll-margin-top: 100px;
    }

    :root {
      --vitfli-blue: #005a9e;
      --vitfli-dark: #002d5c;
      --vitfli-bg: #ffffff;
      --vitfli-gray: #f5f7fa;
      --vitfli-text-muted: #6c7378;
    }
    
    /* --- SOLUCIÓN 1: JUSTIFICADO ARMÓNICO EVITANDO ESPACIOS GIGANTES --- */
    .text-justificado {
      text-align: justify !important;
      text-align-last: left !important;
      word-break: normal !important; /* Evita que rompa palabras a la mitad */
      hyphens: none !important;
    }

    /* Clase para el cuadro de seguridad */
    .bg-gradient-vitfli {
      background: linear-gradient(135deg, #0a2540 0%, #05192d 100%) !important;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--vitfli-bg);
      color: var(--vitfli-dark);
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    /* --- EFECTO REVEAL --- */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* --- NAVEGACIÓN --- */
    .navbar {
      background-color: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid #eef2f6;
      padding: 0.8rem 0;
      backdrop-filter: blur(10px);
    }

    .navbar-brand {
      font-weight: 800;
      font-size: 1.8rem;
      letter-spacing: -1.5px;
      color: var(--vitfli-blue) !important;
    }

    .nav-link {
      font-weight: 600;
      color: var(--vitfli-dark) !important;
      font-size: 0.95rem;
      padding: 0.5rem 1rem !important;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-link:hover {
      color: var(--vitfli-blue) !important;
    }

    .btn-pp-outline {
      border: 2px solid var(--vitfli-blue);
      color: var(--vitfli-blue);
      font-weight: 700;
      border-radius: 50px;
      padding: 7px 22px;
      transition: all 0.3s;
    }

    .btn-pp-primary {
      background-color: var(--vitfli-blue);
      color: white;
      font-weight: 700;
      border-radius: 50px;
      padding: 9px 28px;
      border: none;
      transition: all 0.3s;
    }

    .btn-pp-primary:hover {
      background-color: #005ea6;
      box-shadow: 0 8px 15px rgba(0, 112, 186, 0.2);
    }

    /* --- CARDS & FEATURES --- */
    .feature-card {
      border: 1px solid #eef2f6;
      border-radius: 1.25rem;
      padding: 1.5rem 1.25rem;
      background: white;
      height: 100%;
      transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    /* --- TARJETAS DE INNOVACIÓN --- */
    .innovation-card {
        border: 1px solid #eef2f6;
        border-radius: 12px !important;
        background: #ffffff;
        height: 100%;
        width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .innovation-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25) !important;
    }

    .innovation-card .card-body {
        padding: 1.5rem !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }


    /* Iconos de innovación */
    .innovation-icon-wrapper {
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      background-color: rgba(0, 43, 92, 0.04);
      margin-bottom: 1.25rem;
    }


    /* En móviles */
    @media (max-width: 767.98px) {
      .innovation-card {
        border-radius: 12px !important;
      }

      .hero-title {
        font-size: 2.2rem !important;
      }
    }

    .feature-card:hover {
      border-color: var(--vitfli-blue);
      transform: translateY(-12px) scale(1.03);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
      z-index: 2;
    }

    .icon-box {
      width: 60px;
      height: 60px;
      background: var(--vitfli-gray);
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
      color: var(--vitfli-blue);
      font-size: 1.8rem;
      transition: transform 0.3s ease;
    }

    .feature-card:hover .icon-box {
      transform: rotate(-5deg) scale(1.1);
    }

    /* --- HERO --- */
    .hero-container {
      padding: 40px 0 60px; /* Reduje los valores de 60/100 a 40/60 para mayor cercanía */
      background: radial-gradient(circle at top right, #f0f8ff 0%, #ffffff 50%);
      display: flex;
      align-items: center; /* Alinea verticalmente el contenido */
      min-height: auto;    /* Asegura que no fuerce una altura innecesaria */
      
    }

    .hero-title {
      font-weight: 800;
      font-size: clamp(2.8rem, 5vw, 3.8rem);
      line-height: 1.1;
      letter-spacing: -2.5px;
      margin-bottom: 1.5rem;
    }

    .badge-ia {
      background-color: rgba(0, 90, 158, 0.1);
      color: var(--vitfli-blue);
      font-weight: 700;
      font-size: 0.8rem;
      padding: 8px 20px;
      border-radius: 50px;
      display: inline-block;
      margin-bottom: 1.5rem;
    }

    /* --- FEES SECTION --- */
    .fees-section {
      background-color: var(--vitfli-dark);
      color: white;
      padding: 80px 0;
    }

    .fee-badge {
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 1.5rem;
      padding: 30px;
      background: rgba(255, 255, 255, 0.05);
      height: 100%;
      transition: 0.4s ease;
    }
    
    .fee-badge:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateY(-5px);
    }
    
    /* ===================================================== */
    /* HERO PREMIUM FLOATING CARDS - SOLUCIÓN DEFINITIVA */
    /* ===================================================== */

    .hero-img-wrapper {
      position: relative;
      overflow: visible;
      padding-top: 55px;
      padding-bottom: 70px;
    }

    /* Imagen principal */
    .hero-img-wrapper img {
      position: relative;
      z-index: 1;
      border-radius: 2rem !important;
    }

    /* ========================= */
    /* TARJETAS FLOTANTES */
    /* ========================= */

    .floating-card {
      position: absolute;
      z-index: 30;

      display: flex;
      align-items: center;
      gap: 12px;

      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);

      border-radius: 1.2rem;

      padding: 0.85rem 1rem;

      box-shadow:
        0 12px 30px rgba(0,0,0,0.12),
        0 2px 10px rgba(0,0,0,0.05);

      transition: all 0.35s ease;

      max-width: 250px;

      animation: floatCard 4s ease-in-out infinite;
    }

    /* Hover elegante */
    .floating-card:hover {
      transform: translateY(-5px) scale(1.03);
      box-shadow:
        0 18px 40px rgba(0,0,0,0.16),
        0 5px 15px rgba(0,0,0,0.08);
    }

    /* Iconos */
    .floating-card .rounded-circle {
      width: 46px;
      height: 46px;
      min-width: 46px;

      display: flex;
      align-items: center;
      justify-content: center;

      flex-shrink: 0;
    }

    /* Texto */
    .floating-card p {
      margin: 0;
      font-size: 0.88rem;
      font-weight: 800;
      line-height: 1.2;
      color: var(--vitfli-dark);
    }

    /* ========================= */
    /* POSICIONES EN DESKTOP */
    /* ========================= */

    /* SUPERIOR DERECHA */
    .floating-card.top-card {
        top: 20px;
        right: -30px;
    }

    /* INFERIOR IZQUIERDA */
    .floating-card.bottom-card {
        bottom: 80px;
        left: -20px;
    }

    /* ========================= */
    /* ANIMACIÓN */
    /* ========================= */

    @keyframes floatCard {
      0%, 100% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-8px);
      }
    }

    /* ===================================================== */
    /* TABLET */
    /* ===================================================== */

    @media (max-width: 991.98px) {

      .hero-img-wrapper {
        padding-top: 45px;
        padding-bottom: 60px;
      }

      .floating-card {
        max-width: 210px;
        padding: 0.75rem 0.9rem;
      }

      .floating-card p {
        font-size: 0.78rem;
      }

      .floating-card .rounded-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
      }

      .floating-card.top-card {
        top: 20px;
        right: -15px;
      }

      .floating-card.bottom-card {
        bottom: 80px;
        left: -15px;
      }
    }

    /* ===================================================== */
    /* MÓVIL */
    /* ===================================================== */

    @media (max-width: 575.98px) {

      .hero-img-wrapper {
        padding-top: 38px;
        padding-bottom: 52px;
        max-width: 100% !important;
      }

      .floating-card {
        max-width: 165px;

        padding: 0.65rem 0.75rem;

        border-radius: 1rem;

        gap: 10px;
      }

      .floating-card p {
        font-size: 0.70rem;
        line-height: 1.15;
      }

      .floating-card .rounded-circle {
        width: 34px;
        height: 34px;
        min-width: 34px;
      }

      /* MÁS ABAJO para no tapar el logo */
      .floating-card.top-card {
         top: 20px;
         right: -5px;
      }

      /* MÁS ARRIBA para no tapar biometría facial */
      .floating-card.bottom-card {
        bottom: 80px;
        left: -5px;
      }
    }


    /* --- FOOTER PREMIUM STYLES --- */
    .pp-footer {
      background: #ffffff;
      padding: 40px 0 20px; /* Reduje el padding-top de 80px a 40px y bottom a 20px */
      border-top: 1px solid #f0f2f5;
    }

    .footer-link-item {
      color: #6c7378;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.85rem;
      transition: all 0.2s ease;
      padding: 8px 12px;
      border-radius: 8px;
    }

    .footer-link-item:hover {
      color: var(--vitfli-blue);
      background: rgba(0, 112, 186, 0.05);
      text-decoration: none;
    }

    .legal-panel {
      background: #f8fafc;
      border: 1px solid #edf2f7;
      border-radius: 16px;
      padding: 16px; /* Reduje de 24px a 16px para compactar */
      margin-top: 10px; /* Reduje de 15px a 10px */
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    }

    .legal-title {
      color: var(--vitfli-dark);
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 5px; /* Reduje el margen inferior */
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .legal-text {
      color: #4a5568;
      font-size: 0.85rem;
      line-height: 1.5; /* Ajuste sutil */
      margin-bottom: 0;
    }

    .ssl-badge {
      background: #f0fff4;
      color: #22543d;
      border: 1px solid #c6f6d5;
      padding: 4px 12px; /* Reduje el padding */
      border-radius: 50px;
      font-size: 0.70rem; /* Ligeramente más pequeño */
      font-weight: 700;
      display: inline-flex;
      align-items: center;
    }
    /* --- CORRECCIONES DE ESPACIADO --- */
    body, html {
        margin: 0;
        padding: 0;
    }

    #nosotros {
        margin-top: 0 !important;
        padding-top: 40px !important; 
    }




/* ==========================================
   VITFLI — VIDEO DE PRESENTACIÓN
========================================== */

.vitfli-video-section {
    padding: 72px 20px;
    background: #0b0f19;
    color: #f8fafc;
    scroll-margin-top: 85px;
    box-sizing: border-box;
}

.vitfli-video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.vitfli-video-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #67d3e0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.vitfli-video-container h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.vitfli-video-description {
    max-width: 720px;
    margin: 0 0 30px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* REPRODUCTOR DE YOUTUBE */
.vitfli-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(103, 211, 224, 0.3);
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.vitfli-video-wrapper iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* TABLETS Y CELULARES */
@media screen and (max-width: 768px) {
    .vitfli-video-section {
        padding: 56px 18px;
    }

    .vitfli-video-container {
        max-width: 100%;
    }

    .vitfli-video-description {
        font-size: 1rem;
    }

    .vitfli-video-wrapper {
        border-radius: 16px;
    }
}

/* CELULARES PEQUEÑOS */
@media screen and (max-width: 480px) {
    .vitfli-video-section {
        padding: 44px 16px;
    }

    .vitfli-video-label {
        font-size: 0.78rem;
    }

    .vitfli-video-container h2 {
        font-size: 1.8rem;
    }

    .vitfli-video-description {
        margin-bottom: 22px;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .vitfli-video-wrapper {
        border-radius: 12px;
    }
}