/* ========================================
   LEX SENTIA CONSULTORES - CSS 2025 (V4 Minimalist)
   ======================================== */

/* ========================================
   VARIABLES CSS Y CONFIGURACIÓN BASE
   ======================================== */
:root {
    /* Paleta de colores basada en logo_glass.png */
    --primary: #84cc16; /* Verde lima brillante */
    --secondary: #3b82f6; /* Azul medio */
    --accent: #6366f1; /* Un violeta suave para complementar */

    /* Colores de texto */
    --text-primary: #1f2937; /* Gris oscuro para máxima legibilidad */
    --text-secondary: #4b5563; /* Gris medio para subtextos */
    --text-muted: #9ca3af; /* Gris claro para detalles */

    /* Fondos */
    --bg-primary: #ffffff; /* Blanco puro */
    --bg-light: #f9fafb; /* Gris muy claro para secciones */
    
    /* Efecto Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-stroke: rgba(229, 231, 235, 0.8);
    --glass-blur: 12px;

    /* Sombras suaves */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);

    /* Bordes */
    --radius: 0.75rem; /* 12px */
    --radius-lg: 1rem; /* 16px */
    --radius-xl: 1.5rem; /* 24px */
    --radius-full: 9999px;

    /* Tipografía */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
    --line-height-relaxed: 1.75;

    /* Transiciones */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET Y ESTILOS GLOBALES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajuste para el navbar fijo */
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height-relaxed);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.display-2 { font-size: 3.5rem; }
.display-5 { font-size: 2.5rem; }
.display-6 { font-size: 2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* ========================================
   NAVBAR GLASS
   ======================================== */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-stroke);
    transition: background var(--transition), box-shadow var(--transition);
    padding: 1rem 0;
}

.navbar-glass.scrolled {
    box-shadow: var(--shadow);
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand .brand-content .brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar-brand .brand-content .brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 25px;
}

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

/* ========================================
   BOTONES
   ======================================== */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #a3e635, var(--primary));
    color: #fff;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Estilo secundario para botones azules (si se necesita) */
.btn-secondary {
    background: linear-gradient(45deg, #60a5fa, var(--secondary));
    color: #fff;
    border: none;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-color: var(--glass-stroke);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section-v2 {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem 0;
    background-color: var(--bg-light);
}

.hero-background-image, .hero-overlay {
    display: none; /* Ocultamos los fondos oscuros anteriores */
}

.hero-glass-panel {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-content {
    color: var(--text-primary);
}

.hero-logo {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    display: block;
}

.hero-logo-img {
    height: 70px;
}

.hero-tagline .badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--primary);
    background-color: #eaf7d4;
}

.hero-glass-panel h1 {
    color: var(--text-primary);
    text-shadow: none;
}

.hero-glass-panel .text-gradient-light {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-glass-panel .lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-stats {
    gap: 1.5rem;
}

.stat-item {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    min-width: auto;
    text-align: left;
}

.stat-number {
    color: var(--secondary);
    font-size: 2.5rem;
    text-shadow: none;
}

.stat-label {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.hero-badges .badge-trust {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-stroke);
    backdrop-filter: none;
    box-shadow: none;
}
.hero-badges .badge-trust i {
    color: var(--primary);
}

.hero-visual .professional-showcase img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.showcase-overlay {
    display: none;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h6 {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ========================================
   TARJETAS (Servicios, Metodología, etc.)
   ======================================== */
.service-card, .methodology-card, .case-card, .testimonial-card, .pricing-card, .demo-card, .kpi-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
    overflow: hidden;
}

.service-card:hover, .methodology-card:hover, .case-card:hover, .testimonial-card:hover, .pricing-card:hover, .demo-card:hover, .kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.service-card:hover .service-icon {
    background: var(--secondary);
}

/* Metodología */
.methodology-card {
    text-align: center;
}
.phase-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e5e7eb;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 0;
}
.phase-icon {
    width: 60px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    color: #fff;
    font-size: 1.75rem;
}
.phase-1 .phase-icon { background: var(--primary); }
.phase-2 .phase-icon { background: var(--secondary); }
.phase-3 .phase-icon { background: var(--accent); }

.phase-quote {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
    border-top: 1px solid var(--glass-stroke);
    padding-top: 1rem;
}

/* Casos de Éxito */
.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.case-header .case-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.case-content strong {
    color: var(--text-primary);
}
.case-content .text-success {
    color: var(--primary) !important;
}
.case-content .text-primary {
    color: var(--secondary) !important;
}

/* ========================================
   SECCIÓN CONTACTO
   ======================================== */
.contact-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-stroke);
}

.contact-info-col {
    background: linear-gradient(135deg, #60a5fa, var(--secondary));
    color: #fff;
    padding: 3rem;
}

.contact-info-col h3,
.contact-info-col h6 {
    color: #fff;
}

.contact-info-col p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-col .contact-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    opacity: 0.9;
}

.contact-form-container {
    padding: 3rem;
    background: var(--bg-primary);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    padding: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: var(--bg-light);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
    outline: none;
    background-color: #fff;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-ultra-modern {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--glass-stroke);
}

.footer-logo-modern {
    height: 60px; /* Aumentado de tamaño */
    width: auto;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logo-modern:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-gradient-bg, .footer-decoration {
    display: none;
}

.newsletter-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 4rem 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--glass-stroke);
}

.newsletter-title {
    color: var(--text-primary);
}
.newsletter-subtitle {
    color: var(--text-secondary);
}

.newsletter-input-group {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 0.5rem;
    border: 1px solid var(--glass-stroke);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0 1.5rem;
    outline: none;
    width: 100%;
}

.newsletter-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.newsletter-btn:hover {
    background: var(--secondary);
}

.footer-brand-header .brand-name {
    color: var(--text-primary);
}
.footer-brand-header .brand-tagline {
    color: var(--text-secondary);
}
.footer-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.footer-achievements {
    border-top: 1px solid var(--glass-stroke);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
.achievement-number {
    color: var(--secondary);
    font-weight: 600;
}
.achievement-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-modern li {
    margin-bottom: 0.75rem;
}

.footer-links-modern a {
    color: var(--text-secondary);
}
.footer-links-modern a:hover {
    color: var(--primary);
}

.contact-info-modern .contact-item {
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--secondary);
    color: #fff;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.contact-value, .contact-value a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}
.contact-value a:hover {
    color: var(--primary);
}

.footer-cta-btn {
    background: var(--primary);
    display: inline-block;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}
.footer-cta-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.footer-bottom-modern {
    border-top: 1px solid var(--glass-stroke);
    padding-top: 2rem;
    margin-top: 4rem;
}
.copyright-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.legal-links a:hover {
    color: var(--primary);
}

.footer-social-modern {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.social-links-modern {
    display: flex;
    gap: 0.75rem;
}

.social-link-modern {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--glass-stroke);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link-modern:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Ocultar secciones muy oscuras o complejas para el look minimalista */
#ia-automatizacion, #insights {
    display: none;
}
