/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

   @font-face {
    font-family: 'conthraxsemibold';
    src: url('../fonts/conthrax-sb-webfont.woff2') format('woff2'),
         url('../fonts/conthrax-sb-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

:root {
    --primary: #0062ff;
    --dark-blue: #000c1d;
    --light-gray: #f8f9fa;
    --font-titles: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-alt: 'conthraxsemibold', sans-serif ;
    --transition-slow: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* TU VARIABLE ORIGINAL */
}


h1, h2, h3, h4, .navbar-brand, .footer-brand {
    font-family: var(--font-titles);
    text-transform: uppercase;
    font-weight: 600; /* Barlow Condensed Semibold */
    font-style: italic;
}

p, span, li, input, textarea {
    font-family: var(--font-body);
    font-weight: 400; /* Barlow Regular 400 */
}

.font-light{
    font-weight: 200;
}

.font-italic{
    font-style: italic;
}

.font-alt{
    font-family: var(--font-alt);
}

/* Evita que las animaciones AOS creen scroll horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
}

#btnmodal{
    z-index: 1049!important;
}

/* ==========================================================================
   2. ESTILOS GENERALES (Reutilizables)
   ========================================================================== */
.section-padding { padding: 100px 0; position: relative;}
.color-dark { color: #001d4a; }
.uppercase-spacing { letter-spacing: 3px; font-size: 0.8rem; text-transform: uppercase; }
.letter-spacing-lg { letter-spacing: 3px; text-transform: uppercase; }
.rounded-custom-lg { border-radius: 30px; }

/* Botones y Inputs */
.btn { transition: var(--transition-slow); }
.custom-input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: var(--transition-slow);
}
.custom-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 98, 255, 0.1);
    outline: none;
}

.triangulo{
    position: absolute;
    width: 100%;
    height: 50px;
}

.triangulo-tp{
    top: 0;
    background-image: url(../img/triangulo-tp.svg);
    background-size: 100% 100%;
}

.triangulo-btn{
    bottom: 0;
    background-image: url(../img/triangulo-btn.svg);
    background-size: 100% 100%;
}

/* ==========================================================================
   3. NAVBAR PRO STYLE (Respetando --transition-slow)
   ========================================================================== */

h1{
    font: 0/0 a;
  font-size: 0!important;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  width: 90px;
  height: 50px;
  background: url(../img/tured-blanco.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: var(--transition-slow);
}

.navbar.navbar-scrolled h1{
    opacity: .5;
    transition: var(--transition-slow);
}


.navbar {
    padding: 25px 0;
    transition: var(--transition-slow);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Estado cuando hacés scroll (se activa vía JS) */
.navbar.navbar-scrolled {
    padding: 12px 0;
    background: rgba(0, 12, 29, 0.85) !important; /* Tu --dark-blue con transparencia */
    backdrop-filter: blur(12px); /* Efecto vidrio esmerilado */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--primary);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: var(--transition-slow);
}

.nav-link {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s ease;
}

/* Subrayado animado en Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-item:last-child .nav-link:hover {
    background-color: var(--dark-blue)!important;
    border-color: var(--dark-blue);
}

/* Ajuste para el botón de toggle en móviles */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================================================
   4. SPLIT HEADER (Hero Section Corregido)
   ========================================================================== */
.split-header {
    height: 100vh;
    width: 100%;
}

.split-column {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-slow); /* Asegúrate de que esta variable esté definida */
    text-decoration: none !important;
    overflow: hidden;
    min-height: 33.33vh; /* Para visualización correcta en móviles */
}

/* Efecto Hover solo en Desktop para evitar problemas de UX en mobile */
@media (min-width: 992px) {
    .split-column:hover { 
        flex: 1.3; 
    }
}

/* Manejo de imágenes de fondo optimizadas (Reemplaza los backgrounds fijos) */
.split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.split-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.split-column:hover .split-bg img {
    transform: scale(1.1); /* Efecto zoom sutil al pasar el mouse */
}

/* Overlays de color según tu estilo original */
.col-home::before, .col-corp::before, .col-wholesale::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.col-home::before { background: rgba(44, 44, 44, 0.75); }
.col-corp::before { background: rgba(100, 0, 0, 0.75); }
.col-wholesale::before { background: rgba(0, 50, 100, 0.75); }

/* Tipografía y Contenido */
.split-content {
    position: relative;
    z-index: 10;
    padding: 20px;
}

.split-column h2 {
    color: white;
    font-weight: 800;
    font-size: calc(1.5rem + 1vw); /* Tamaño fluido escalable */
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.split-column span {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 2px;
    margin-top: 10px;
    display: block;
}

/* Accesibilidad SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Optimización de Animación */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 15;
    will-change: transform; /* Optimización para GPU */
}

@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 
    40% { transform: translate(-50%, -12px); } 
    60% { transform: translate(-50%, -6px); } 
}

/* ==========================================================================
   5. SECCIÓN: LA EMPRESA (Ajustes de UX y Legibilidad)
   ========================================================================== */
.company-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: left; /* Corregido: Mejor legibilidad que 'justify' */
    margin-bottom: 1.5rem;
}

/* La Etiqueta Flotante */
.experience-floating-tag {
    position: absolute;
    top: 20px;          /* Ajusta la distancia desde arriba */
    left: -15px;        /* Sobresale un poco hacia la izquierda como en la foto */
    background: #0062ff; /* El azul de TuRed */
    color: white;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 98, 255, 0.4);
    z-index: 10;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.experience-floating-tag:hover {
    transform: scale(1.05) translateY(-5px);
}

.experience-floating-tag span {
    display: block;
    white-space: nowrap;
}

/* Mejora de la etiqueta flotante para que no tape contenido en móviles */
@media (max-width: 576px) {
    .experience-floating-tag {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.rounded-custom { 
    border-radius: 40px 5px; 
    object-fit: cover; /* Asegura que la imagen no se deforme */
}

/* Optimización de Items de Atributos */
.attribute-item {
    padding: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.attribute-item h3 { 
    color: #001d4a; 
    margin-top: 15px; 
    line-height: 1.4;
    font-size: 1rem;
}

.attribute-icon {
    width: 65px;
    height: 65px;
    background: #f0f5ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.4rem;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

/* Feedback visual mejorado */
.attribute-item:hover .attribute-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 98, 255, 0.15);
}

/* ==========================================================================
   6. SECCIÓN: MÉTODO (Ingeniería)
   ========================================================================== */
.bg-metodo { 
    background: linear-gradient(180deg, #001d4a 0%, #000000 100%);
    position: relative;
    /* Optimización de performance: Evitamos fixed en móviles */
    background-attachment: scroll;
}

@media (min-width: 992px) {
    .bg-metodo { background-attachment: fixed; }
}

.unit-box {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05); /* Un poco más visible */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.unit-box i { 
    font-size: 2.2rem; 
    transition: transform 0.3s ease;
}

.unit-box:hover i { transform: translateY(-5px); }

/* Colores de acento por unidad */
.unit-box.masivo:hover { border-color: var(--primary); background: rgba(0, 98, 255, 0.12); }
.unit-box.profesional:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.12); }
.unit-box.corporativo:hover { border-color: #ffd700; background: rgba(255, 215, 0, 0.12); }

.step-card-modern {
    position: relative;
    padding: 35px 25px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.step-card-modern:hover { transform: scale(1.02); }

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3; /* Menos intrusivo, más elegante */
    line-height: 1;
    margin-bottom: 15px;
    font-family: var(--font-alt);
}

.tech-attr {
    padding: 15px;
    height: 100%;
    transition: opacity 0.3s ease;
}

.tech-attr:hover { opacity: 1; }

.tech-attr i { 
    font-size: 1.6rem; 
    color: var(--primary); 
    display: block;
}

.tech-attr p { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: rgba(255,255,255,0.9); 
    margin-top: 10px;
    line-height: 1.2;
}

/* ==========================================================================
   7. SECCIÓN: PLANES & MODALS
   ========================================================================== */
.router-img {
    max-height: 250px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.plan-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition-slow);
}
.plan-card:hover { transform: translateY(-12px); }

.bg-masivo { background: linear-gradient(135deg, #0062ff 0%, #00d4ff 100%); }
.bg-pro { background: #1a1a1a; }
.bg-corp { background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%); }

.feature-list li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.95rem; }
.feature-list i { width: 25px; color: var(--primary); }

.border-pro { border-bottom: 6px solid #1a1a1a; }
.border-corp { border-bottom: 6px solid #ffa500; }

/* Estilos Específicos de Modales */
.modal-content { 
    border-radius: 25px !important; 
    overflow: hidden; 
}

.speed-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.speed-tags span {
    background: #f0f2f5;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    border: 1px solid #e1e4e8;
}

#modalCorporativo .speed-tags span { 
    background: #fff3cd; 
    border-color: #ffeeba; 
}

.tech-list li { 
    padding: 10px 0; 
    font-size: 0.95rem; 
    border-bottom: 1px solid #f1f1f1; 
}

/* ==========================================
   SECCIÓN PORTAL DE AUTOGESTIÓN
   ========================================== */

.portal-section {
    background:
        radial-gradient(circle at top center, rgba(0, 98, 255, 0.18) 0%, rgba(0, 12, 29, 0) 45%),
        linear-gradient(180deg, #07162f 0%, #000c1d 100%);
    overflow: hidden;
}

.portal-lead {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.portal-feature-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 35px 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-feature-item {
    padding: 15px;
}

.portal-feature-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 98, 255, 0.12);
    border: 1px solid rgba(0, 98, 255, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: all 0.3s ease;
}

.portal-feature-item:hover .portal-feature-icon {
    transform: translateY(-4px) scale(1.05);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 98, 255, 0.25);
}

.portal-feature-item h3 {
    color: #fff;
}

.portal-feature-item p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
}

.portal-cta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 35px 25px;
}

.portal-btn {
    min-width: 260px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-btn.btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.portal-btn-main {
    box-shadow: 0 12px 24px rgba(0, 98, 255, 0.22);
}

/* ==========================================
   LIGHTBOX / VIDEO MODAL
   ========================================== */

.portal-video-modal {
    background: rgba(0, 0, 0, 0.82);
}

.portal-video-modal .modal-dialog {
    max-width: 520px;
}

.portal-video-close {
    position: absolute;
    top: -8px;
    right: 6px;
    z-index: 20;
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

.portal-video-close:hover {
    color: var(--primary);
    opacity: 1;
}

.portal-video-frame {
    position: relative;
    width: auto;
    max-width: 420px;
    max-height: 90vh;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.portal-video-element {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: radial-gradient(circle at top center, rgba(0, 98, 255, 0.18) 0%, rgba(0, 12, 29, 0) 45%), linear-gradient(180deg, #07162f 0%, #000c1d 100%);
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
    .portal-feature-box,.portal-cta-box { padding: 30px 20px;}
}

@media (max-width: 767.98px) {
    .portal-btn {width: 100%;min-width: 100%;}
    .portal-video-modal .modal-dialog {max-width: calc(100% - 24px);margin: 1.5rem auto;}
    .portal-video-frame {max-width: 100%;border-radius: 18px;}
}

/* ==========================================================================
   8. SECCIÓN: CONTACTO & FOOTER
   ========================================================================== */
#contacto { 
    background-color: var(--dark-blue); 
    padding-bottom: 80px; 
}

/* Campos de entrada personalizados */
.custom-input {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--primary);
    box-shadow: none;
    background-color: #f8faff;
}

.contact-icon-circle {
    width: 50px; height: 50px;
    background: rgba(0, 98, 255, 0.1);
    border: 1px solid rgba(0, 98, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
}

.social-link {
    display: inline-flex; width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center; justify-content: center;
    color: white; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover { 
    background: var(--primary); 
    transform: translateY(-5px); 
    color: white; 
    border-color: var(--primary);
}

/* Footer Improvements */
.footer-minimal {
    background-color: #000c20; /* Un tono más oscuro que el fondo de contacto */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.border-top.border-secondary-light {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
    opacity: 1 !important;
}

.hover-opacity-100 {
    transition: opacity 0.3s ease;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Responsivo para el footer */
@media (max-width: 768px) {
    .footer-bottom { gap: 15px; }
}
/* ==========================================================================
   9. MEDIA QUERIES (Responsividad)
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar {
        background: var(--dark-blue) !important; /* Sólido en móviles por legibilidad */
        padding: 15px 0;
    }

    .split-header {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .split-column {
        flex: none;
        height: 33.33vh;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .split-column:first-child{margin-top: 30px}
    .split-column:hover { flex: none; }
    .split-column h2 { font-size: 1.8rem; }
    .header-overlay-text { top: 10%; }
    .header-overlay-text h1 { font-size: 1rem !important; }
    
    .section-padding { padding: 70px 0; }
}

@media (max-width: 768px) {
    .experience-floating-tag { left: 10px; top: 10px; }
    .display-4 { font-size: 2.5rem; }
}

@media (max-width: 575.98px) {
    .split-column h2 { font-size: 1.5rem; }
    .header-overlay-text { top: 5%; }
    .plan-card:hover { transform: none; }
}