/* ==========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    --primary: #0046af;
    --primary-light: #00d4ff;
    --primary-glow: #0066ff;
    --primary-dark: #0052cc;
    --dark: #0a1930;
    --dark-deep: #051024;
    --footer-bg: #0a1423;
    --text: #4b5563;
    --text-muted: #a0aec0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #eef2f6;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    background-color: var(--white);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

main { flex: 1; }

section { 
    position: relative; 
    padding: 80px 0; 
}

/* ==========================================
   2. TIPOGRAFÍA Y UTILIDADES DE TEXTO
   ========================================== */
h1, h2, h3, h4, h5, h6 { 
    color: var(--dark); 
    font-weight: 700; 
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.text-highlight-blue {
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(51, 207, 255, 0.3);
}

.ls-1 { letter-spacing: 1px; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

/* ==========================================
   3. COMPONENTES (NAVBAR Y BOTONES)
   ========================================== */
.nav-link {
    font-size: 15px;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: 0.3s;
}

.nav-link:hover { color: var(--primary) !important; }

.btn-primary-glow {
    background-color: var(--primary-glow);
    color: var(--white) !important;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-glow:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 255, 0.8);
}

/* ==========================================
   4. SECCIÓN: HERO PRO
   ========================================== */
.hero-section-pro {
    background: linear-gradient(160deg, var(--dark-deep) 0%, var(--dark) 100%);
    background-image: linear-gradient(160deg, var(--dark-deep) 0%, var(--dark) 100%), 
                      url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 75vh;
    overflow: hidden;
}

.hero-placeholder-panel {
    height: 400px; 
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.hero-img-float {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(0.95);
}

.hero-image-container:hover .hero-img-float {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1) translateY(-10px);
}

/* Carrusel dentro del Hero */
#heroSystemCarousel {
    background: var(--dark-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: var(--primary-light);
}

/* ==========================================
   5. SECCIÓN: CLIENTES (SCROLL INFINITO)
   ========================================== */
/* Estilo Base (Escritorio) */
.logo-slider {
    background: var(--white);
    height: 100px; /* Altura cómoda para PC */
    overflow: hidden;
    position: relative;
    border-bottom: none !important;
    display: flex;
    align-items: center; /* Centra los logos verticalmente */
}

.logo-slide-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 40s linear infinite;
}

.logo-slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    height: 45px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* ==========================================
   6. SECCIÓN: BENEFICIOS
   ========================================== */
.benefit-card {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-card:hover {
    transform: translateX(15px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 70, 175, 0.1);
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 70, 175, 0.15);
    margin-right: 20px;
    line-height: 1;
    transition: 0.3s;
}

.benefit-card:hover .benefit-number { color: var(--primary); }

/* Estilo para lista de beneficios con iconos */
.list-group-item .badge {
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 70, 175, 0.2);
}

.flex-lg-row-reverse { flex-direction: row-reverse !important; }

/* ==========================================
   7. SECCIÓN: PLANES Y PRECIOS
   ========================================== */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 20px !important;
}

.pricing-card:hover { transform: translateY(-10px); }

.pricing-card.popular {
    transform: scale(1.05);
    z-index: 10;
    border: 2px solid var(--primary);
}

.pricing-card h2 { font-size: 3rem; }

/* ==========================================
   8. SECCIÓN: GUÍAS (DISEÑO CORPORATIVO)
   ========================================== */
.btn-category {
    background: var(--white);
    color: var(--text);
    border: 1px solid #e0e6ed;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-category:hover, .btn-category.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.video-corporate-card {
    cursor: pointer;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
    background: var(--white);
}

.video-corporate-card:hover {
    transform: translateY(-8px);
    border: 1px solid var(--primary) !important;
    box-shadow: 0 20px 40px rgba(0, 70, 175, 0.1) !important;
}

.video-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.badge-category {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ==========================================
   9. FOOTER CORPORATIVO
   ========================================== */
.footer-corporate {
    background-color: var(--footer-bg);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-description {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-title {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -10px;
    width: 30px; height: 2px;
    background-color: var(--primary);
}

.text-lg-end .footer-title::after { left: auto; right: 0; }

.footer-links li { margin-bottom: 12px; list-style: none; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.08); opacity: 1; }

.payment-methods { font-size: 24px; color: var(--text-muted); }
.payment-methods i { margin-left: 10px; }

/* ==========================================
   10. OPTIMIZACIÓN RESPONSIVA (MOBILE FIRST)
   ========================================== */

/* Ajustes para Tablets y menores (991px hacia abajo) */
@media (max-width: 991px) {
    section { padding: 50px 0; } /* Reducimos espacio entre secciones */

    .hero-section-pro { 
        padding-top: 120px; 
        min-height: auto; 
        text-align: center;
    }

    .hero-img-float { 
        transform: none !important; 
        margin-top: 30px;
        max-width: 90%;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }

    .pricing-card.popular { 
        transform: scale(1); 
        margin: 20px 0; 
    }
}

/* ==========================================
   OPTIMIZACIÓN PARA CELULARES (Mobile First)
   ========================================== */
@media (max-width: 767px) {
    
    /* 1. Ajuste General de Espacios */
    section { 
        padding: 40px 0 !important; /* Menos espacio entre secciones en móvil */
    }

    /* 2. Tipografía: Títulos más legibles y proporcionados */
    h1 { font-size: 1.85rem !important; line-height: 1.2; }
    h2 { font-size: 1.5rem !important; margin-bottom: 1rem; }
    h3 { font-size: 1.3rem !important; }
    .lead { font-size: 1rem !important; }

    /* 3. Tarjetas (Cards): Sin hover, mejoramos la lectura */
    .benefit-card, .video-card, .pricing-card {
        margin-bottom: 1.5rem; /* Separación vertical entre tarjetas */
        transform: none !important; /* Quitamos efectos de traslación */
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; /* Sombra fija suave */
    }

    .benefit-card:active {
        background-color: var(--light-bg); /* Feedback visual al tocar */
    }

    /* 4. Slider de Logos: Evitamos saltos visuales */
    .logo-slider { height: 70px; }
    .logo-slide-track {
        width: calc(120px * 10); /* Logos más compactos */
    }
    .logo-slide { width: 120px; }
    .logo-slide img {
        height: 30px; /* Logos un poco más pequeños para que quepan mejor */
        opacity: 1;   /* En móvil, mejor que se vean siempre a color/claro */
        filter: grayscale(0%); 
    }

    /* 5. Hero Section: Reordenamos para móvil */
    .hero-section-pro {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-img-float {
        transform: none !important;
        max-width: 85%;
        margin: 2rem auto 0;
    }

    /* 6. Botones Flotantes */
    .floating-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .btn-whatsapp, .btn-scroll {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .whatsapp-bubble { 
        display: none !important; /* Ocupa demasiado espacio en pantallas pequeñas */
    }
}

/* Ajuste de Grillas (row-cols) */
@media (max-width: 576px) {
    .container { padding-left: 20px; padding-right: 20px; }
    
    /* Forzamos que las tarjetas ocupen el ancho completo con margen */
    .video-corporate-card, .benefit-card, .pricing-card {
        margin-bottom: 15px;
    }
}
/* --- ESTILOS PÁGINA GUÍAS CORPORATIVA --- */

/* Botones de Categoría */
.btn-category {
    background: #fff;
    color: var(--text);
    border: 1px solid #e0e6ed;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-category:hover, .btn-category.active {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 70, 175, 0.2);
}

/* Tarjeta de Video */
.video-corporate-card {
    cursor: pointer;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent !important;
    background: #ffffff;
}

/* Resaltado total de la card */
.video-corporate-card:hover {
    transform: translateY(-10px);
    border: 1px solid var(--primary) !important;
    box-shadow: 0 25px 50px rgba(0, 70, 175, 0.12) !important;
}

.video-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16 / 9;
}

.video-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-corporate-card:hover .video-img-wrap img {
    transform: scale(1.08);
}

/* Etiqueta de categoría sobre la imagen */
.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-title-pro {
    transition: color 0.3s ease;
}

.video-corporate-card:hover .card-title-pro {
    color: var(--primary);
}


/* === BOTONES FLOTANTES === */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: center;
}

/* Botón WhatsApp */
.btn-whatsapp {
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    background-color: #128C7E;
}

/* Burbuja de invitación */
.whatsapp-bubble {
    position: absolute;
    right: 70px;
    bottom: 80px;
    background: white;
    padding: 8px 15px;
    border-radius: 10px 10px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    width: max-content;
    border: 1px solid #eef2f6;
    animation: fadeInOut 4s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(10px); }
    10%, 90% { opacity: 1; transform: translateX(0); }
}

/* Botón de Scroll */
.btn-scroll {
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-scroll:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
}

/* === CORRECCIÓN PARA SECCIÓN TUTORIALES === */

.video-card {
    cursor: pointer;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 70, 175, 0.15);
    border-color: var(--primary);
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.video-card:hover .video-thumbnail-container img {
    transform: scale(1.1);
    opacity: 0.7;
}

/* El icono de Play que tienes en el HTML */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: var(--white);
    opacity: 0; /* Oculto por defecto */
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body h5 {
    transition: color 0.3s ease;
}

.video-card:hover .video-card-body h5 {
    color: var(--primary);
}

.step-number-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 70, 175, 0.2);
    border: 4px solid var(--white);
    outline: 2px solid var(--primary);
}

/* Estilo base para los links del menú */
.navbar-marketing .nav-link {
    position: relative;
    padding: 10px 15px;
    color: var(--text) !important;
    transition: color 0.3s ease;
}

/* El indicador (la rayita) */
.navbar-marketing .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0; /* Empieza en 0 para la animación */
    height: 3px;
    background-color: #fd7e14; /* Naranja vibrante */
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Cuando el link está activo (marcado por PHP) */
.navbar-marketing .nav-link.active {
    color: var(--primary) !important; /* Opcional: cambia el color del texto también */
}

.navbar-marketing .nav-link.active::after {
    width: 70%; /* La rayita se expande al 70% del ancho del link */
}

/* Efecto hover: también mostramos la rayita al pasar el mouse */
.navbar-marketing .nav-link:hover::after {
    width: 70%;
}

/* //-------------------------------------CSS PARA QUITAR MARCOS DE CARRUSEL HERO*/
/* Eliminamos cualquier rastro de bordes o sombras en el carrusel y las imágenes */
#heroSystemCarousel, 
#heroSystemCarousel .carousel-inner, 
#heroSystemCarousel .carousel-item,
#heroSystemCarousel img {
    border: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* IMPORTANTE: Si quieres sombra, usa esta que sigue la forma del PNG y no hace marcos */
.hero-img-float img {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}