/* ==========================================================================
   Variables & Base
   ========================================================================== */
   :root {
    --brand-primary: #0596C8;
    --brand-deep: #005680;
    --brand-cyan: #57BFE3;
    --brand-navy-dark: #030b16;
    --brand-navy: #04182b;
    --brand-light: #f8fafc;
    --brand-gray: #64748b;
    --brand-gray-dark: #334155;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-sans);
    color: var(--brand-navy-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  a {
    text-decoration: none;
    color: var(--brand-primary);
    transition: all 0.2s ease;
  }
  
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-cyan);
    outline-offset: 4px;
  }
  
  .bg-light-custom {
    background-color: var(--brand-light);
  }
  
  .bg-navy {
    background-color: var(--brand-navy-dark);
  }
  
  .seccion-padding {
    padding: 100px 0;
  }
  
  @media (max-width: 768px) {
    .seccion-padding {
      padding: 70px 0;
    }
  }
  
  /* ==========================================================================
     Navbar
     ========================================================================== */
  .navbar-fija {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .navbar-fija.scrolled {
    background: rgba(3, 11, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
  
  .marca-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
  }
  
  .marca-logo img {
    height: 32px;
    width: auto;
  }
  
  .marca-logo:hover {
    color: var(--brand-cyan);
  }
  
  .enlaces-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
  }
  
  .enlaces-nav a:hover {
    color: #ffffff;
  }
  
  .enlaces-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-cyan);
    transition: width 0.3s ease;
  }
  
  .enlaces-nav a:hover::after {
    width: 100%;
  }
  
  .enlace-login {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .enlace-login:hover {
    color: #ffffff;
  }
  
  .btn-cta-nav {
    background: var(--brand-primary);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }
  
  .btn-cta-nav:hover {
    background: #ffffff;
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 200, 0.3);
  }
  
  /* ==========================================================================
     Hero
     ========================================================================== */
  .hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 11, 22, 0.9) 0%, rgba(4, 24, 43, 0.7) 50%, rgba(0, 86, 128, 0.5) 100%);
    z-index: 2;
  }
  
  .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 3;
  }
  
  .hero-content {
    position: relative;
    z-index: 10;
    padding-top: 80px; /* offset navbar */
  }
  
  .insignia {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 99px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .insignia i {
    color: var(--brand-cyan);
  }
  
  .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
  
  .texto-gradiente {
    background: linear-gradient(to right, var(--brand-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 400;
  }
  
  .btn-cta-principal {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(5, 150, 200, 0.4);
    transition: var(--transition-smooth);
  }
  
  .btn-cta-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(5, 150, 200, 0.6);
    color: #ffffff;
  }
  
  .btn-cta-secundario {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
  }
  
  .btn-cta-secundario:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
  }
  
  .scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 13px;
    position: relative;
    margin-bottom: 8px;
  }
  
  .scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
  }
  
  /* ==========================================================================
     Agent 3D Container
     ========================================================================== */
  #agente-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
  }
  
  /* ==========================================================================
     Titles & Typography Utils
     ========================================================================== */
  .etiqueta-seccion {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .etiqueta-seccion-clara {
    display: inline-block;
    color: var(--brand-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .titulo-seccion {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--brand-navy);
  }
  
  .subtitulo-seccion {
    font-size: 1.15rem;
    color: var(--brand-gray);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .subtitulo-seccion-claro {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* ==========================================================================
     Servicios (Grid + Tilt)
     ========================================================================== */
  .grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }
  
  .card-servicio {
    perspective: 1000px;
    height: 100%;
  }
  
  .tilt-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  }
  
  .js .tilt-content {
    /* JS will handle transform */
  }
  
  .tilt-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(87, 191, 227, 0.06), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tilt-content:hover::before {
    opacity: 1;
  }
  
  .tilt-content > * {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
  }
  
  .cinta-popular {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 40px;
    transform: rotate(45deg) translateZ(30px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .icono-servicio {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(5, 150, 200, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
  }
  
  .card-servicio h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .card-servicio p {
    color: var(--brand-gray-dark);
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .lista-ventajas {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
  }
  
  .lista-ventajas li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--brand-gray-dark);
  }
  
  .lista-ventajas i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    margin-top: -2px;
  }
  
  .precio-box {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 24px;
  }
  
  .precio-principal {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .precio-detalle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-gray-dark);
    font-family: var(--font-sans);
  }
  
  .precio-secundario {
    font-size: 0.85rem;
    color: var(--brand-gray-dark);
  }
  
  .btn-servicio {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--brand-primary);
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s;
  }
  
  .btn-servicio:hover {
    background: var(--brand-deep);
    color: #ffffff;
  }
  
  .btn-servicio-outline {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .btn-servicio-outline:hover {
    background: var(--brand-primary);
    color: #ffffff;
  }
  
  /* ==========================================================================
     Cómo funciona (Timeline)
     ========================================================================== */
  .timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
  }
  
  .timeline-line {
    position: absolute;
    top: 30px;
    left: 30px;
    width: calc(100% - 60px);
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
  }
  
  .timeline-progress {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 0%;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
    z-index: 2;
    transition: width 0.5s ease-out;
  }
  
  .timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 3;
  }
  
  .timeline-step {
    text-align: center;
    padding: 0 15px;
  }
  
  .step-dot {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-gray-dark);
    transition: all 0.4s ease;
  }
  
  .timeline-step.active .step-dot {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(5, 150, 200, 0.2);
  }
  
  .step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .step-content p {
    color: var(--brand-gray-dark);
    font-size: 0.95rem;
  }
  
  @media (max-width: 991px) {
    .timeline-steps {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .timeline-line, .timeline-progress {
      top: 0;
      left: 45px;
      width: 4px;
      height: 100%;
    }
    .timeline-progress {
      height: 0%;
      width: 4px;
      transition: height 0.5s ease-out;
    }
    .timeline-step {
      display: flex;
      text-align: left;
      padding: 0;
    }
    .step-dot {
      margin: 0 24px 0 13px;
      flex-shrink: 0;
    }
    .step-content {
      padding-top: 10px;
    }
  }
  
  /* ==========================================================================
     Por qué nosotros (Bento Grid)
     ========================================================================== */
  .bg-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
  }
  
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
    margin-top: 50px;
  }
  
  .bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s, background 0.3s;
    backdrop-filter: blur(10px);
  }
  
  .bento-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(87, 191, 227, 0.1);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .bento-item h5 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }
  
  .bento-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
  }
  
  .bento-wide {
    grid-column: span 2;
  }
  
  .counter-box {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-cyan);
    line-height: 1;
    margin-bottom: 10px;
  }
  
  .counter-suffix {
    font-size: 2rem;
  }
  
  @media (max-width: 991px) {
    .bento-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide {
      grid-column: span 2;
    }
  }
  
  @media (max-width: 767px) {
    .bento-grid {
      grid-template-columns: 1fr;
    }
    .bento-wide {
      grid-column: span 1;
    }
  }
  
  /* ==========================================================================
     Reseñas
     ========================================================================== */
  .custom-carousel {
    padding: 20px 0;
  }
  
  .resena-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    border: 1px solid #e2e8f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  }
  
  .resena-texto {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--brand-navy);
    line-height: 1.8;
  }
  
  .resena-autor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  
  .avatar, .avatar-iniciales {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .avatar-iniciales {
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  .autor-info {
    text-align: left;
  }
  
  .control-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
  }
  
  .control-icon:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
  }
  
  .carousel-control-prev, .carousel-control-next {
    width: auto;
    opacity: 1;
  }
  
  .carousel-control-prev { left: -20px; }
  .carousel-control-next { right: -20px; }
  
  @media (max-width: 768px) {
    .resena-card { padding: 30px 20px; }
    .resena-texto { font-size: 1.1rem; }
    .carousel-control-prev { left: 0; }
    .carousel-control-next { right: 0; }
  }
  
  .video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  .video-wrapper iframe, .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ==========================================================================
     CTA Final Banner
     ========================================================================== */
  .cta-banner {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-primary));
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(5, 150, 200, 0.3);
  }
  
  .cta-bg-glow {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(87, 191, 227, 0.4) 0%, transparent 60%);
    pointer-events: none;
  }
  
  .cta-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
  }
  
  .cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0;
  }
  
  @media (max-width: 991px) {
    .cta-text { margin: 0 auto; }
    .cta-banner { padding: 40px 20px; }
  }
  
  .btn-cta-banner {
    background: #ffffff;
    color: var(--brand-navy);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  
  .btn-cta-banner:hover {
    background: var(--brand-cyan);
    color: var(--brand-navy);
    transform: translateY(-2px);
  }
  
  .btn-cta-banner-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  
  .btn-cta-banner-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: #ffffff;
  }
  
  .max-w-sm { max-width: 250px; }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .footer-premium {
    background: #01060c;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 40px;
  }
  
  .footer-logo {
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
  }
  
  .footer-logo:hover { color: var(--brand-cyan); }
  
  .footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li {
    margin-bottom: 12px;
  }
  
  .footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: var(--brand-cyan);
  }
  
  .footer-login-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }
  
  .fiscal-data {
    color: rgba(255,255,255,0.4);
    word-break: break-word;
  }
  
  .legal-links {
    list-style: none;
    padding: 0;
  }
  
  .legal-links a {
    color: rgba(255,255,255,0.5);
  }
  
  .legal-links a:hover {
    color: #ffffff;
  }
  
  /* ==========================================================================
     Animations & JS Reveals
     ========================================================================== */
  /* Hide elements initially if JS is enabled */
  .js .reveal {
    opacity: 0;
    visibility: hidden;
  }
  
  .js .reveal.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .js .fade-up {
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .js .fade-up.visible {
    transform: translateY(0);
  }
  
  .js .fade-in {
    transition: opacity 0.8s ease;
  }
  
  .js .zoom-in {
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .js .zoom-in.visible {
    transform: scale(1);
  }
  
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }
  
  .relative-z { position: relative; z-index: 2; }
  

/* En móvil el indicador de scroll se montaba sobre «Ver servicios». */
@media (max-width: 767.98px) { .scroll-indicator { display: none; } }

/* Texto del recuadro «Acceso» del pie: el gris de Bootstrap no llegaba a AA sobre el navy. */
.footer-login-texto { color: #b9c7d6; }


/* ==========================================================================
   GSAP Transitions & Flujo & Carousel
   ========================================================================== */
.panel {
  will-change: background-color;
  transition: background-color 0.5s ease;
}

.servicios-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

.servicios-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.servicios-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  min-width: 340px;
  flex: 0 0 340px;
  scroll-snap-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

@media (max-width: 767px) {
  .carousel-card {
    min-width: 85vw;
    flex: 0 0 85vw;
  }
}

.carousel-card.destacada {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.carousel-card:not(.destacada) {
  opacity: 0.7;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #e2e8f0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--brand-primary);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.carousel-nav-btn:hover {
  background: var(--brand-primary);
  color: white;
}

.carousel-nav-btn.prev {
  left: 0;
}

.carousel-nav-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dot.active {
  background: var(--brand-primary);
}

/* Flujo SVG */
.flujo-svg {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
}

.flujo-svg-mobile {
  position: absolute;
  top: 0;
  left: 35px;
  width: 100px;
  height: 100%;
  z-index: 1;
}

.flujo-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.flujo-step {
  text-align: center;
  width: 22%;
  opacity: 0.4;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.flujo-step.activo {
  opacity: 1;
  transform: translateY(0);
}

.flujo-step.activo .step-dot-gsap {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 0 20px rgba(5,150,200,0.4);
  transform: scale(1.1);
}

.step-dot-gsap {
  width: 50px;
  height: 50px;
  background: white;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--brand-gray-dark);
  transition: all 0.3s;
}

@media (max-width: 767px) {
  .flujo-steps {
    flex-direction: column;
    gap: 60px;
    padding-left: 0px;
  }
  .flujo-step {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 120px;
  }
  .step-dot-gsap {
    margin: 0;
    position: absolute;
    left: 0;
  }
  .flujo-svg-mobile {
    left: 25px;
  }
  .flujo-step.activo .step-dot-gsap {
    transform: scale(1.1);
  }
}

.bento-gsap {
  will-change: transform, opacity;
}

/* El titular en italiano es más largo: un punto menor para que los botones
   del héroe sigan en la primera pantalla. */
html[lang="it"] .hero-title { font-size: clamp(2.6rem, 5vw, 4.2rem); }
