/* VARIABLES Y PALETA DE COLORES */
:root {
    --primary: #0F2042;
    --primary-light: #1e396e;
    --primary-dark: #071024;
    --secondary: #00A8CC;
    --secondary-hover: #008fae;
    --secondary-glow: rgba(0, 168, 204, 0.15);
    --accent: #FFB703;
    --accent-hover: #e0a200;
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --text-muted: #64748B;
    --text-muted-light: #94A3B8;
    
    /* Glassmorphism tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 32, 66, 0.8);
    --glass-border: rgba(0, 168, 204, 0.25);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(15, 32, 66, 0.08);
    --glass-shadow-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Animaciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* DEGRADADOS Y GLOWS ACCESORIOS */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0, 168, 204, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
}

.glow-top-right {
    top: -100px;
    right: -100px;
}

.glow-bottom-left {
    bottom: -150px;
    left: -150px;
}

.glow-bottom-right {
    bottom: -100px;
    right: -100px;
}

/* CLASES DE DISEÑO */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 40px rgba(0, 168, 204, 0.15);
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(15, 32, 66, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 32, 66, 0.35);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--secondary);
    color: var(--primary);
}

.btn-secondary-glass:hover {
    background: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.25);
}

.btn-cta-gold {
    background-color: var(--accent);
    color: var(--primary);
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.3);
}

.btn-cta-gold:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 183, 3, 0.45);
}

/* SECCIONES ELEMENTOS */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px auto;
    position: relative;
    z-index: 2;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.text-gray { color: var(--text-muted-light); }
.d-block { display: block; }

/* 1. NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 168, 204, 0.05);
}

.navbar.scrolled {
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(15, 32, 66, 0.08);
    height: 70px;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.logo-icon {
    color: var(--secondary);
    width: 28px;
    height: 28px;
}

.logo-highlight {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--secondary);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 32, 66, 0.2);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* 2. HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* BI Dashboard Mockup - Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 32, 66, 0.12);
    padding: 24px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    border-top: 2px solid var(--secondary);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 168, 204, 0.1);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.dashboard-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.dashboard-status {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(0, 168, 204, 0.12);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 50px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 168, 204, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.metric-value-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.trend-up { color: #2ec4b6; }
.trend-down { color: #e63946; }
.trend-neutral { color: var(--text-muted); }

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(15, 32, 66, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
}

.dashboard-chart-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 168, 204, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: 10px;
}

.chart-bar {
    width: calc(100% / 7 - 6px);
    background-color: rgba(15, 32, 66, 0.15);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease-out;
}

.chart-bar.highlight {
    background-color: var(--secondary);
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dashboard-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    line-height: 1.4;
    background-color: rgba(255, 183, 3, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.icon-spark {
    color: var(--accent);
    flex-shrink: 0;
}

/* 3. ¿A QUIÉN AYUDAMOS? (Fondo #0F2042) */
.target-audience {
    background-color: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.target-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.target-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.target-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.target-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(0, 168, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.target-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
}

/* 4. PROBLEMAS QUE RESOLVEMOS */
.problems {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    padding: 30px;
}

.problem-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.problem-icon {
    color: var(--accent);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 5. PROPUESTA DE VALOR */
.value-proposition {
    background-color: var(--primary-dark);
    padding: 80px 0;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.value-badge {
    background: rgba(0, 168, 204, 0.1);
    border: 1px solid rgba(0, 168, 204, 0.3);
    color: var(--secondary);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.value-badge i {
    width: 18px;
    height: 18px;
}

.value-badge:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.4);
    transform: scale(1.03);
}

/* 6. SERVICIOS (5 LÍNEAS DE SOLUCIÓN) */
.services {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-light);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    position: relative;
    padding: 40px;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transition: var(--transition);
}

.service-card:hover::before {
    background-color: var(--secondary);
    width: 6px;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-number {
    position: absolute;
    top: 24px;
    right: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: rgba(15, 32, 66, 0.05);
    line-height: 1;
}

.service-card:hover .service-number {
    color: rgba(0, 168, 204, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 80%;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 168, 204, 0.1);
    border: 1px solid rgba(0, 168, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.service-card:hover .service-icon-box {
    background: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3);
}

.service-icon-box i {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
}

.service-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid rgba(15, 32, 66, 0.08);
    padding-top: 30px;
}

.detail-block h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-block h4 i {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.detail-block ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-block ul li {
    font-size: 0.9rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 18px;
}

.detail-block ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--secondary);
    font-weight: bold;
}

/* 7. METODOLOGÍA */
.methodology {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--bg-light);
    border: 1px solid rgba(15, 32, 66, 0.05);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 32, 66, 0.05);
    border-color: var(--secondary-glow);
}

.step-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--secondary);
    opacity: 0.7;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 8. LO QUE NOS DIFERENCIA */
.differences {
    background-color: var(--primary);
    padding: 100px 0;
}

.differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.difference-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.difference-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.diff-icon {
    color: var(--accent);
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
}

.difference-card h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.difference-card p {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    line-height: 1.5;
}

/* 9. SERVICIOS DISPONIBLES (BADGES) */
.available-services {
    background-color: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid rgba(15, 32, 66, 0.05);
}

.section-mini-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.available-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.avail-badge {
    background: var(--bg-white);
    border: 1px solid rgba(0, 168, 204, 0.3);
    color: var(--primary-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* 10. PREGUNTAS FRECUENTES (FAQ) */
.faq {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-white);
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 204, 0.15);
    background-color: var(--bg-light);
    overflow: hidden;
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

.faq-item:hover {
    box-shadow: 0 6px 15px rgba(0, 168, 204, 0.05);
    border-color: var(--secondary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left;
    color: var(--primary);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    transition: var(--transition);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Suficiente para el texto */
    padding-bottom: 24px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 11. CTA FINAL */
.final-cta {
    background-color: var(--primary);
    padding: 100px 0;
}

.cta-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card h2 {
    color: var(--text-light);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* 12. FOOTER */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col .logo {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.contact-info i {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.footer-socials a:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
}

/* 13. WIDGET DE CHAT FLOTANTE */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 24px rgba(15, 32, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    position: relative;
    transition: var(--transition);
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0, 168, 204, 0.3);
}

.chat-toggle-btn i {
    width: 24px;
    height: 24px;
    position: absolute;
    transition: var(--transition);
}

.chat-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: var(--accent);
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2.5s infinite;
}

/* Panel del chat flotante */
.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

.chat-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background-color: var(--primary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-white);
    border-bottom: 1px solid var(--glass-border);
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 168, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    position: relative;
}

.chat-header-avatar i {
    width: 20px;
    height: 20px;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #2ec4b6;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.chat-header-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-white);
}

.chat-header-info p {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(244, 246, 249, 0.75);
}

.chat-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.assistant .message-content {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 168, 204, 0.1);
    color: var(--text-dark);
    border-top-left-radius: 0;
}

.user .message-content {
    background-color: var(--primary);
    color: var(--bg-white);
    border-top-right-radius: 0;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.user .message-time {
    align-self: flex-end;
}

/* Indicador de escritura animado */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 168, 204, 0.1);
    border-radius: 12px;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.chat-input-area {
    padding: 14px 20px;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(0, 168, 204, 0.1);
}

#chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid rgba(0, 168, 204, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

#chat-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px var(--secondary-glow);
}

#chat-submit {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chat-submit:hover {
    background-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 168, 204, 0.2);
}

#chat-submit i {
    width: 18px;
    height: 18px;
}

/* RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .dashboard-mockup {
        max-width: 100%;
    }
    
    .service-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid rgba(0, 168, 204, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-panel {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 70px;
    }
}
