/* ================= VARIABLES GLOBALES ================= */
    :root {
      --brand-dark: #1A2530;   
      --brand-cyan: #00B4D8;   
      --glass-bg: rgba(255, 255, 255, 0.85);
      --glass-border: rgba(26, 37, 48, 0.05); 
      --w: #fcfdfe;
      --n: #1d2d42;
      --f-text: #4a5568;        
      --f-border: #eaeaea;      
      --f-light: #f8fafc;
      --text-main: #1d2d42;
      --title-color: var(--brand-dark);
      --video-overlay: rgba(252, 253, 254, 0.85);
    }

    body.dark-theme {
      --w: #0a0f18; 
      --n: #f8fafc; 
      --glass-bg: rgba(15, 23, 42, 0.85); 
      --glass-border: rgba(255, 255, 255, 0.1);
      --brand-dark: #f8fafc;
      --f-text: #94a3b8; 
      --f-border: rgba(255,255,255,0.08); 
      --f-light: #1e293b;
      --text-main: #f1f5f9;
      --title-color: #ffffff;
      --video-overlay: rgba(10, 15, 24, 0.9);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      margin: 0; padding: 0;
      scroll-behavior: smooth;
      overflow-x: hidden !important; 
    }

    body {
      font-family: Inter, sans-serif;
      color: var(--text-main);
      background-color: var(--w);
      transition: background-color 0.4s ease, color 0.4s ease;
      line-height: 1.9;
    }
    
    #mainContentWrapper {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden !important; 
    }

    /* ================= FONDO DE VIDEO ================= */
    .video-background-container {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: -2;
      overflow: hidden;
    }
    .video-background-container video {
      min-width: 100%; min-height: 100%;
      width: auto; height: auto;
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      object-fit: cover;
    }
    .video-overlay {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      background-color: var(--video-overlay);
      z-index: -1;
      transition: background-color 0.4s ease;
    }

    /* ================= ENCABEZADO ================= */
    .enterprise-header-wrapper { position: fixed; top: 25px; left: 0; width: 100%; max-width: 100vw; z-index: 9999; padding: 0 4%; display: flex; justify-content: center; pointer-events: none; font-family: 'Montserrat', sans-serif; }
    .enterprise-nav-bar { width: 100%; max-width: 1350px; height: 76px; background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 15px 35px rgba(26, 37, 48, 0.08); display: flex; justify-content: flex-end; align-items: center; padding: 0 30px; position: relative; pointer-events: auto; }
    .brand-logo { position: absolute; left: 40px; top: -15px; z-index: 100; text-decoration: none; }
    .brand-logo img { height: 110px; width: auto; filter: drop-shadow(0 10px 20px rgba(26, 37, 48, 0.15)); transition: transform 0.4s ease; }
    .brand-logo:hover img { transform: scale(1.05) translateY(-2px); }
    body.dark-theme .brand-logo img { filter: brightness(0) invert(1); }
    .nav-links { display: flex; gap: 12px; align-items: center; }
    
    .nav-link { color: var(--brand-dark); text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 22px; border: 1.5px solid rgba(26, 37, 48, 0.15); border-radius: 50px; display: flex; align-items: center; gap: 8px; transition: 0.3s; cursor: pointer; }
    .nav-link:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); background-color: rgba(0, 180, 216, 0.04); transform: translateY(-2px); }
    
    /* ESTILOS DEL DROPDOWN */
    .dropdown { position: relative; display: flex; align-items: center; }
    .dropdown-menu { position: absolute; top: 120%; left: 0; background: #ffffff; border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); min-width: 230px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; padding: 10px 0; z-index: 1000; }
    .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .dropdown-menu a { color: var(--brand-dark); text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 12px 25px; transition: 0.3s; }
    .dropdown-menu a:hover { background: rgba(0, 180, 216, 0.05); color: var(--brand-cyan); padding-left: 30px; }
    
    body.dark-theme .dropdown-menu { background: #0f172a; border-color: rgba(255,255,255,0.1); }
    body.dark-theme .dropdown-menu a { color: #f8fafc; }
    body.dark-theme .dropdown-menu a:hover { background: rgba(0, 180, 216, 0.15); }

    .theme-toggle { background: none; border: none; font-size: 18px; color: var(--brand-dark); cursor: pointer; padding: 10px; margin: 0 15px; transition: transform 0.3s; }
    .theme-toggle:hover { transform: scale(1.1); color: var(--brand-cyan); }
    body.dark-theme .theme-toggle { color: #f8fafc; }
    
    .mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; align-items: center; gap: 10px; }
    .menu-text { font-size: 13px; font-weight: 800; color: var(--brand-dark); transition: color 0.3s ease; }
    body.dark-theme .menu-text { color: #f8fafc; }
    .mobile-menu-btn i { font-size: 24px; color: var(--brand-cyan); transition: transform 0.3s ease; }

    body.dark-theme .nav-link { color: #f8fafc; border-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.05); }
    body.dark-theme .nav-link:hover { border-color: var(--brand-cyan); background-color: rgba(0, 180, 216, 0.15); }
    body.dark-theme .mobile-active .nav-links { background-color: #0f172a; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 50px rgba(0,0,0,0.8); }

    @media (max-width: 1024px) {
      .enterprise-header-wrapper { top: 12px; padding: 0 15px; } 
      .enterprise-nav-bar { height: 65px; padding: 0 20px; border-radius: 16px; justify-content: flex-end; } 
      .brand-logo { left: 20px; top: -5px; } 
      .brand-logo img { height: 75px; } 
      .nav-links { display: none; } 
      .mobile-menu-btn { display: flex; }
      
      .mobile-active .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--w); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; padding: 25px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); gap: 15px; z-index: 10000; }
      .mobile-active .nav-link { width: 100%; justify-content: center; padding: 14px; }

      /* DROPDOWN EN MÓVIL */
      .dropdown { flex-direction: column; width: 100%; align-items: stretch; }
      .dropdown > .nav-link { width: 100%; justify-content: center; } 
      .dropdown-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0; margin-top: 10px; width: 100%; flex-direction: column; gap: 8px; }
      .dropdown.mobile-expanded .dropdown-menu { display: flex; animation: slideDown 0.3s ease forwards; }
      .dropdown.mobile-expanded > .nav-link i { transform: rotate(180deg); }
      @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
      .dropdown-menu a { background: rgba(0, 180, 216, 0.05); border-radius: 12px; padding: 12px; font-size: 11px; text-align: center; border: 1px solid rgba(0,180,216,0.1); }
      .dropdown-menu a:hover { padding-left: 12px; background: rgba(0, 180, 216, 0.1); }
      body.dark-theme .dropdown-menu { background: transparent; }
      body.dark-theme .dropdown-menu a { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
    }

    /* ================= CONTENIDO PRINCIPAL ================= */
    .content-wrapper { position: relative; z-index: 10; max-width: 850px; margin: 0 auto; padding: 220px 20px 100px; width: 100%; }
    .section-header { margin-bottom: 80px; text-align: center; width: 100%; }
    .section-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px, 7vw, 68px); line-height: 1.1; margin-top: 15px; color: var(--title-color); transition: color 0.3s ease; word-break: break-word; }
    .subtitle { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 6px; font-size: 11px; font-weight: 800; color: var(--brand-cyan); opacity: 0.8; display: block; width: 100%; }

    /* TARJETAS DE TEXTO */
    .mp-block { 
      background: var(--glass-bg); 
      backdrop-filter: blur(15px); 
      border: 1px solid var(--glass-border);
      padding: 50px; 
      margin-bottom: 60px; 
      box-shadow: 0 30px 60px rgba(0,0,0,0.03);
      border-radius: 40px 5px 40px 5px; 
      width: 100%;
      transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 1; /* Siempre visible en el editor de Bubble */
      transform: translateX(0);
    }
    
    /* Animación se activa SOLO en vivo mediante JS */
    body.is-live .mp-block.pre-animate { opacity: 0; }
    body.is-live .mp-block.pre-animate:nth-child(odd) { transform: translateX(-60px); }
    body.is-live .mp-block.pre-animate:nth-child(even) { transform: translateX(60px); }
    body.is-live .mp-block.visible { opacity: 1 !important; transform: translateX(0) !important; }
    
    .mp-block p { font-size: 18px; text-align: justify; line-height: 2; color: var(--text-main); }

    /* ================= TARJETAS DESTACADAS ================= */
    .mp-block.mp-highlight { 
      background: var(--brand-dark); 
      border: none; 
      border-radius: 60px 60px 5px 5px; 
      padding: 70px 50px; 
    }
    .mp-block.mp-highlight p { color: #ffffff !important; font-size: 24px; font-weight: 600; font-family: 'Playfair Display', serif; text-align: center; }
    body.dark-theme .mp-block.mp-highlight { background: #ffffff; }
    body.dark-theme .mp-block.mp-highlight p { color: #0a0f18 !important; }

    .spacer { height: 100px; width: 100%; }

    /* ================= REGLAS MÓVIL ================= */
    @media (max-width: 768px) {
      .content-wrapper { padding: 130px 15px 50px; overflow-x: hidden; }
      .section-header { margin-bottom: 40px; }
      .spacer { height: 40px !important; }
      .mp-block { padding: 30px 20px !important; border-radius: 20px 5px 20px 5px !important; margin-bottom: 30px !important; }
      body.is-live .mp-block.pre-animate:nth-child(odd), body.is-live .mp-block.pre-animate:nth-child(even) { transform: translateY(40px); }
      .mp-block p { font-size: 15px; line-height: 1.8; }
      .mp-block.mp-highlight { padding: 40px 20px !important; border-radius: 30px 30px 5px 5px !important; }
      .mp-block.mp-highlight p { font-size: 18px !important; }
    }

    /* ================= PIE DE PÁGINA (FOOTER) ================= */
    .premium-footer { position: relative; background-color: var(--w); font-family: 'Montserrat', sans-serif; padding: 70px 5% 0px; color: var(--brand-dark); overflow: hidden; border-top: 1px solid var(--f-border); z-index: 10; transition: background-color 0.4s ease; box-sizing: border-box; width: 100%;}
    .premium-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-dark), var(--brand-cyan), var(--brand-dark)); background-size: 200% 100%; animation: gradientMove 5s ease infinite; }
    @keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

    .pf-container { max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
    .pf-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.5fr 1.2fr 1.5fr; gap: 30px; margin-bottom: 40px; align-items: start; }
    .pf-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n); margin-bottom: 20px; text-align: left; }

    .pf-col ul { list-style: none; padding: 0; margin: 0; text-align: left; }
    .pf-col ul li { margin-bottom: 12px; }
    .pf-link { font-size: 13px; font-weight: 500; color: var(--f-text); text-decoration: none; position: relative; transition: color 0.3s ease; display: inline-block; padding-bottom: 2px; }
    .pf-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: 0; left: 0; background-color: var(--brand-cyan); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .pf-link:hover { color: var(--n); }
    .pf-link:hover::after { width: 100%; }

    .pf-logo-col img { height: 55px; width: auto; margin-bottom: 25px; transition: transform 0.3s ease; }
    .pf-logo-col img:hover { transform: scale(1.02); }
    .pf-socials { display: flex; gap: 10px; justify-content: flex-start; }
    .pf-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--f-light); color: var(--n); text-decoration: none; font-size: 16px; transition: all 0.3s ease; }
    .pf-social-btn:hover { background: var(--brand-cyan); color: #ffffff; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2); }

    .pf-contact { text-align: right; }
    .pf-contact .pf-title { text-align: right; }
    .pf-contact p { font-size: 13px; font-weight: 500; color: var(--f-text); line-height: 1.6; margin-bottom: 20px; }
    .pf-contact strong { color: var(--n); display: block; margin-bottom: 5px; font-weight: 700; }
    .pf-contact-link { color: var(--n); font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
    .pf-contact-link:hover { color: var(--brand-cyan); }

    .pf-indicators-bar { background-color: var(--f-light); border-radius: 8px; padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 13px; color: var(--n); border: 1px solid var(--f-border); flex-wrap: wrap; transition: background-color 0.4s ease; }
    .pf-indicator-item { display: flex; align-items: center; gap: 8px; }
    .pf-indicator-item i { color: var(--brand-cyan); }

    .live-ticker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #10b981; letter-spacing: 1px; }
    .live-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #10b981; animation: pulseDot 2s infinite; }
    @keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

    /* ESPACIO INFERIOR DE 70PX AL FINAL DEL FOOTER */
    .pf-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 25px; padding-bottom: 70px; border-top: 1px solid var(--f-border); font-size: 13px; color: var(--f-text); box-sizing: border-box; }
    .pf-bottom a { color: var(--f-text); text-decoration: none; transition: color 0.3s ease; }
    .pf-bottom a:hover { color: var(--brand-cyan); }

    @media (max-width: 1100px) { .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } .pf-contact, .pf-contact .pf-title { text-align: left; } }
    @media (max-width: 768px) { 
      .pf-grid { display: flex; flex-direction: column; gap: 40px; align-items: center; } 
      .premium-footer { padding: 50px 5% 0px; }
      .pf-logo-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
      .pf-socials { justify-content: center; }
      .pf-title { text-align: center; font-size: 14px; margin-bottom: 25px; }
      .pf-col { width: 100%; text-align: center; } 
      .pf-col ul { text-align: center; }
      .pf-col ul li { margin-bottom: 18px; }
      .pf-contact, .pf-contact .pf-title { text-align: center; }
      .pf-indicators-bar { flex-direction: column; gap: 15px; text-align: center; padding: 20px 15px; }
      .pf-bottom { flex-direction: column; gap: 20px; text-align: center; line-height: 1.6; padding-bottom: 25px; } 
    }
