/* ==========================================================================
   VARIABLES Y ESTILOS BASE
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --light-section: #f8fafc;
    --green: #10b981;
    --green-hover: #059669;
    --text-main: #334155;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--text-main);
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    position: relative;
    margin-bottom: 1rem;
}

/* ==========================================================================
   NAVBAR PREMIUM REESTRUCTURADA
   ========================================================================== */
/* ==========================================================================
   NAVBAR PREMIUM REESTRUCTURADA (MEJORADA)
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-nav .nav-item .nav-link {
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .nav-link:hover {
    color: var(--primary) !important;
}

/* Estilos para los Menús Desplegables Profesionales */
.navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    min-width: 240px;
    animation: menuFadeIn 0.2s ease-out;
}

.navbar .dropdown-item {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Animación sutil de apertura para el menú dropdown */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de Contacto Destacado en Menú */
.nav-btn-contact {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    border-radius: 8px;
    font-weight: 600 !important;
    margin-left: 10px;
    transition: all 0.2s ease-in-out !important;
}

.nav-btn-contact:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.nav-btn-contact:hover i {
    color: #ffffff !important;
}

.nav-btn-contact:hover, 
.navbar-nav .nav-item a.nav-btn-contact:hover {
    background: var(--primary) !important; /* Fondo azul sólido */
    color: #ffffff !important;             /* Forzar palabra "Contacto" a BLANCO */
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 15px;
    }
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }
    .nav-btn-contact {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    .navbar .dropdown-menu {
        border: none;
        background: #f8fafc;
        padding-left: 15px;
    }
}
/* ==========================================================================
   HERO SECCIÓN Y CONFIGURACIÓN DE MÉTRICAS (GRID CORREGIDO)
   ========================================================================== */
/* ==========================================================================
   SECCIÓN HERO: BANNER FOTOGRÁFICO PREMIUM (MEJORADO)
   ========================================================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
    /* Capa de degradado oscuro a la izquierda para garantizar legibilidad del texto + la imagen de fondo */
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(15, 23, 42, 0.85) 40%, 
        rgba(30, 41, 59, 0.4) 100%
    ),
    url("../img/hero-banner.jpg"); /* Nombre y ruta de tu nueva imagen */
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

/* Sutil divisor estético inferior en ángulo para pasar a la siguiente sección */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 3;
}

.hero .container {
    position: relative;
    z-index: 4;
}

/* Tipografía de Impacto Corporativo */
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #ffffff;
}

/* Resalte degradado para el gancho comercial */
.hero h1 span {
    display: block;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 760px;
}

/* Botones de acción del Hero */
.action-buttons .btn {
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

.action-buttons .btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.action-buttons .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.action-buttons .btn-outline-light:hover {
    color: #0f172a;
    transform: translateY(-2px);
}

/* ==========================================================================
   TARJETAS DE MÉTRICAS INTEGRADAS AL BANNER (GLASSMORPHISM)
   ========================================================================== */
.metrics-container {
    margin-top: 3.5rem !important;
}

.metric-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 24px;
    border-radius: 18px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.25);
}

.metric-card h3 {
    color: #60a5fa;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.metric-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adaptativo para el Banner */
@media (max-width: 991.98px) {
    .hero {
        padding: 80px 0 100px 0;
        background: linear-gradient(
            180deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(15, 23, 42, 0.92) 100%
        ),
        url("../img/hero-banner.jpg");
        text-align: center;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero::after {
        display: none; /* Quitamos el corte diagonal en móviles para evitar problemas de renderizado */
    }
}

/* Tarjetas de Métricas Separadas Correctamente en Escritorio Grande */
.metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    text-center: center;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.3);
}

.metric-card h3 {
    color: #60a5fa;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.metric-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
    font-weight: 500;
}

/* ==========================================================================
   CARDS DE SERVICIOS / ESPECIALIDADES
   ========================================================================== */
.service-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.006);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   CARDS DE PRODUCTOS REDISEÑADAS (ESTILO PROFESIONAL)
   ========================================================================== */
.bg-light-section {
    background-color: var(--light-section);
}

.product-pro-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

/* Bordes Superiores Distintivos */
.product-pro-card.edge-primary {
    border-top: 5px solid var(--primary);
}

.product-pro-card.edge-success {
    border-top: 5px solid var(--green);
}

/* Contenedores de Iconos */
.product-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-light-primary { background-color: rgba(37, 99, 235, 0.08); }
.bg-light-success { background-color: rgba(16, 185, 129, 0.08); }

/* Badges Internos */
.badge-pro {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}
.bg-primary-soft { background-color: rgba(37, 99, 235, 0.06); }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.06); }

.product-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Listas Profesionales de Características (Removido Bullets Nativos) */
.product-features-list {
    list-style: none;
    padding-left: 0;
}

.product-features-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #475569;
}

.product-features-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.1rem;
}

/* Botones de Acción Estilizados */
.btn-primary-pro {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary-pro:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-success-pro {
    background-color: var(--green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-success-pro:hover {
    background-color: var(--green-hover);
    color: #ffffff;
}

/* ==========================================================================
   CONTACTO Y VISTAS DE PRODUCTO INTERNAS
   ========================================================================== */
.custom-input {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.product-preview-box {
    border-radius: 24px;
}

.profile-img {
    border: 6px solid #ffffff;
}

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES CORRECCIONES
   ========================================================================== */
@media (max-width: 991.98px) {
    body { padding-top: 70px; }
    .navbar { padding: 10px 0; }
    .nav-btn-contact { margin-left: 0; margin-top: 10px; display: inline-block; }
    .hero { text-align: center; padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .action-buttons .btn { width: 100%; margin-bottom: 12px; margin-right: 0 !important; }
}