* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    color: #333;
    background: white;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ================================
   HEADER
   ================================ */

header {
    background: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 60px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-right: 50px;
}

nav a {
    text-decoration: none;
    color: #0066ff;
    font-weight: 500;
    font-family: 'Archivo', sans-serif;
    transition: color 0.3s;
}

nav a:hover {
    color: #00d4ff;
}

.menu-links {
    display: flex;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right .social-icons {
    display: flex;
    gap: 15px;
}

.mobile-header-right {
    display: none;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #0066ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: 2px solid #0066ff;
    color: #0066ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.dark-mode-toggle:hover {
    background: #0066ff;
    color: white;
    transform: rotate(180deg);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s;
}

.sun-icon {
    display: block;
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.moon-icon {
    display: none;
    opacity: 0;
    transform: translateY(30px) rotate(180deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #0066ff;
    border-radius: 3px;
    transition: all 0.3s;
}

body.dark-mode .hamburger span {
    background: #00d4ff;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.7), rgba(0, 102, 255, 0.7));
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
    text-align: center;
}

.hero h1 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Botones del Hero */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #0066ff;
    color: white;
    border: 2px solid #0066ff;
}

.btn-primary:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0066ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ================================
   AUTOMATIZAMOS SECTION
   ================================ */

.automatizamos {
    padding: 150px 50px 100px;
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: rgb(246, 247, 250);
    box-sizing: border-box;
}

.automatizamos-content {
    flex: 1;
}

.automatizamos h2 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 2.5rem;
    color: #0066ff;
    margin-bottom: 30px;
    font-weight: 700;
}

.automatizamos p {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0066ff;
}

.automatizamos-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.image-placeholder {
    position: relative;
    display: inline-block;
    width: 400px;
    height: 400px;
    background: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.image-placeholder img {
    position: relative;
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ================================
   SERVICIOS GRID
   ================================ */

.servicios {
    background: #f8f9fa;
    padding: 80px 50px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,100,255,0.15);
}

.servicio-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #20D7DAFF, #20D7DAFF);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.servicio-icon svg {
    width: 28px;
    height: 28px;
}

.servicio-content {
    flex: 1;
}

.servicio-card h3 {
    font-family: 'Archivo Expanded', sans-serif;
    color: #0066ff;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.servicio-card p {
    font-family: 'Archivo', sans-serif;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ================================
   QUOTE SECTION - ORIGINAL SIN CAMBIOS
   ================================ */

.quote-section {
    background-image: url('../images/fondo-quote.jpg');
    background-size: cover;
    padding: 150px 50px 100px;
    text-align: center;
    color: #20D7DA;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.quote-section p {
    font-family: 'Archivo', sans-serif;
    font-size: 1.4rem;
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* ================================
   VALOR AGREGADO - SECCIÓN 1
   (MANTIENE ESTILO ORIGINAL - SIN CAJAS)
   ================================ */

   .valor-agregado {
    padding: 150px 50px 100px;
    background-image: url('../images/fondo-valor.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.valor-agregado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.valor-header {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.valor-agregado h2 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 3rem;
    color: #0066ff;
    margin-bottom: 50px;
    text-align: left;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* ESTRUCTURA ORIGINAL: Lista + Imagen */
.valor-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.valor-list {
    flex: 0 0 45%;
    max-width: 500px;
}

.valor-item {
    margin-bottom: 25px;
}

.valor-item h3 {
    font-family: 'Archivo Expanded', sans-serif;
    color: #0066ff;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.valor-item p {
    font-family: 'Archivo', sans-serif;
    color: #0066ff;
    line-height: 1.5;
    font-size: 0.95rem;
}

.valor-visual {
    flex: 1;
    text-align: right;
    align-self: flex-start;
    margin-top: -50px;
}

.valor-visual img {
    max-width: 100%;
    border-radius: 20px;
}

/* ================================
   SECCIÓN COMPARATIVA - SECCIÓN 2 (NUEVA E INDEPENDIENTE)
   ================================ */

.seccion-comparativa {
    padding: 100px 50px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f0ff 100%);
    position: relative;
}

.comparativa-container {
    max-width: 1200px;
    margin: 0 auto;
}

.seccion-comparativa h2 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 2.5rem;
    color: #0066ff;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.comparativa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparativa-columna {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparativa-columna:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.comparativa-columna.destacada {
    background: linear-gradient(135deg, #21A0E7 0%, #224DFE 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.comparativa-columna.destacada::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.comparativa-columna h4 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    color: #0066ff;
    position: relative;
    z-index: 1;
}

.comparativa-columna.destacada h4 {
    color: white;
}

.comparativa-columna ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.comparativa-columna li {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 0;
}

.comparativa-columna.destacada li {
    color: rgba(255, 255, 255, 0.95);
}

.comparativa-columna:first-child li {
    color: #666;
}

/* ================================
   RESPONSIVE - VALOR AGREGADO
   ================================ */

@media (max-width: 768px) {
    .valor-agregado {
        padding: 100px 20px 60px;
    }
    
    .valor-agregado h2 {
        font-size: 2rem;
    }
    
    .valor-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .valor-list {
        flex: 1;
        max-width: 100%;
    }
    
    .valor-visual {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
}

/* ================================
   RESPONSIVE - COMPARATIVA
   ================================ */

@media (max-width: 768px) {
    .seccion-comparativa {
        padding: 60px 20px;
    }
    
    .seccion-comparativa h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .comparativa-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparativa-columna {
        padding: 30px 20px;
    }
    
    .comparativa-columna h4 {
        font-size: 1.2rem;
    }
    
    .comparativa-columna li {
        font-size: 0.95rem;
    }
}

/* ================================
   DARK MODE - VALOR AGREGADO
   ================================ */

body.dark-mode .valor-agregado {
    background-blend-mode: overlay;
}

body.dark-mode .valor-agregado::before {
    background: rgba(10, 20, 40, 0.8);
}

body.dark-mode .valor-agregado h2 {
    color: #00d4ff;
}

body.dark-mode .valor-item h3 {
    color: #00d4ff;
}

body.dark-mode .valor-item p {
    color: #00d4ff;
}

/* ================================
   DARK MODE - COMPARATIVA
   ================================ */

body.dark-mode .seccion-comparativa {
    background: linear-gradient(135deg, #0a1428 0%, #0d1b33 100%);
}

body.dark-mode .seccion-comparativa h2 {
    color: #00d4ff;
}

body.dark-mode .comparativa-columna {
    background: rgba(20, 30, 50, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

body.dark-mode .comparativa-columna:first-child li {
    color: #b0b0b0;
}

body.dark-mode .comparativa-columna.destacada {
    background: linear-gradient(135deg, #1a75ff 0%, #00bfff 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}
/* ================================
   CASOS DE ÉXITO - CARRUSEL
   ================================ */

.casos {
    background: #0066ff;
    padding: 150px 50px 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.casos h2 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

/* Contenedor del Carrusel */
.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 550px;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Track donde se deslizan las cards */
.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Caso Card */
.caso-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), transparent);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 27px);
    width: calc(33.333% - 27px);
}

.caso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.caso-logo {
    width: 100%;
    height: 100px;
    background: rgba(32,215,218, 1);
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.caso-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.caso-card h3 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.caso-sector {
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.caso-reto {
    font-family: 'Archivo', sans-serif;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

/* Botón Ver Solución */
.btn-ver-solucion {
    font-family: 'Archivo Expanded', sans-serif;
    background: white;
    color: #0066ff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-ver-solucion::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-ver-solucion:hover {
    background: #20d7da;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-ver-solucion:hover::after {
    transform: translateX(3px);
}

/* Botones del Carrusel */
.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots Indicadores */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: white;
    width: 35px;
    border-radius: 6px;
}

/* ================================
   MODAL DE SOLUCIONES
   ================================ */

.modal-caso {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-caso.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    padding: 50px 40px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-logo {
    width: 120px;
    height: 120px;
    background: rgba(32,215,218, 1);
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-logo img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.modal-header h3 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 10px;
}

.modal-sector {
    font-family: 'Archivo', sans-serif;
    color: #666;
    font-size: 1rem;
}

/* Modal Body */
.modal-body {
    padding: 40px;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0066ff;
    margin-bottom: 15px;
}

.modal-section p {
    font-family: 'Archivo', sans-serif;
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.modal-section ul li {
    font-family: 'Archivo', sans-serif;
    color: #333;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.modal-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sección de Solución */
.modal-section.solution {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
}

/* Sección de urgencia en modales */
.modal-section.urgencia {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe6cc 100%);
    border-left: 4px solid #ff9500;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.modal-section.urgencia h4 {
    color: #ff9500;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-section.urgencia p {
    color: #664400;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Resultados Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.result-card {
    background: linear-gradient(135deg, #20d7da, #00d4ff);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-number {
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.result-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Modal Footer */
.modal-footer {
    padding: 30px 40px 40px;
    text-align: center;
    border-top: 2px solid #f0f0f0;
}

.btn-modal-cta {
    font-family: 'Archivo Expanded', sans-serif;
    background: linear-gradient(135deg, #20d7da, #00d4ff);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.btn-modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
}

/* ================================
   CHAT WIDGET
   ================================ */

.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 100, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(0, 100, 255, 0.6);
}

.chat-button img {
    width: 40px;
    height: 40px;
}

.chat-widget {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
}

.chat-header h4 {
    font-family: 'Archivo Expanded', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-status {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    opacity: 0.9;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    font-family: 'Archivo', sans-serif;
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    resize: none;
    height: 45px;
    min-height: 45px;
    max-height: 60px;
}

.chat-input:focus {
    border-color: #00d4ff;
}

.send-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ================================
   FOOTER
   ================================ */

footer {
    background: linear-gradient(135deg, #0066ff 0%, #003d99 100%);
    color: white;
    padding: 60px 50px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo-section {
    flex: 0 0 auto;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-family: 'Archivo Expanded', sans-serif;
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    font-family: 'Archivo', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #00d4ff;
}

.footer-bottom {
    font-family: 'Archivo', sans-serif;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    display: block;
}

.footer-title {
    cursor: default;
}

.accordion-icon {
    display: none;
}

/* ================================
   DARK MODE
   ================================ */

body.dark-mode {
    background: #1a1f2e;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #1a1f2e;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

body.dark-mode nav a {
    color: #00d4ff;
}

body.dark-mode .dark-mode-toggle {
    border-color: #00d4ff;
    color: #00d4ff;
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .automatizamos {
    background: #1a1f2e;
}

body.dark-mode .automatizamos h2,
body.dark-mode .automatizamos p {
    color: #00d4ff;
}

body.dark-mode .servicios {
    background: #1a1f2e;
}

body.dark-mode .servicio-card {
    background: #242937;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

body.dark-mode .servicio-card h3 {
    color: #00d4ff;
}

body.dark-mode .servicio-card p {
    color: #b0b0b0;
}

body.dark-mode .quote-section {
    color: #00d4ff;
}

body.dark-mode .valor-agregado {
    background-image: none;
    background: #1a1f2e;
}

body.dark-mode .valor-agregado::before {
    background: rgba(26, 31, 46, 0.4);
}

body.dark-mode .valor-agregado h2 {
    color: #00d4ff;
}

body.dark-mode .comparativa-chatbot {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .comparativa-columna {
    background: #0f3460;
    color: #e0e0e0;
}

body.dark-mode .comparativa-columna h4 {
    color: #00d4ff;
}

body.dark-mode .comparativa-columna:first-child li {
    color: #b0b0b0;
}

body.dark-mode .valor-item h3 {
    color: #00d4ff;
}

body.dark-mode .valor-item p {
    color: #00d4ff;
}

body.dark-mode .casos {
    background: #1a1f2e;
}

body.dark-mode .caso-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    border-color: rgba(0, 212, 255, 0.3);
}

body.dark-mode .modal-content {
    background: #1a1f2e;
    color: #e0e0e0;
}

body.dark-mode .modal-header h3 {
    color: #00d4ff;
}

body.dark-mode .modal-section h4 {
    color: #00d4ff;
}

body.dark-mode .modal-section p,
body.dark-mode .modal-section li {
    color: #e0e0e0;
}

body.dark-mode .modal-section.urgencia {
    background: linear-gradient(135deg, #2a1f10 0%, #3d2a15 100%);
    border-left-color: #ffa500;
}

body.dark-mode .modal-section.urgencia h4 {
    color: #ffa500;
}

body.dark-mode .modal-section.urgencia p {
    color: #d4a574;
}

body.dark-mode .chat-widget {
    background: #242937;
}

body.dark-mode .chat-messages {
    background: #1a1f2e;
}

body.dark-mode .bot-message .message-content {
    background: #2a3142;
    color: #e0e0e0;
}

body.dark-mode .chat-input-container {
    background: #242937;
    border-top-color: rgba(0, 212, 255, 0.2);
}

body.dark-mode .chat-input {
    background: #1a1f2e;
    border-color: rgba(0, 212, 255, 0.3);
    color: #e0e0e0;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

body.dark-mode .footer-section h3 {
    color: #00d4ff;
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */

@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-track {
        gap: 30px;
    }
    
    .caso-card {
        flex: 0 0 calc(50% - 15px);
        width: calc(50% - 15px);
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .logo {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-header-right .social-icons {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 70px 30px 30px;
        gap: 15px;
        margin-right: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
        overflow-y: auto;
    }

    body.dark-mode nav {
        background: #1a1f2e;
    }

    nav.active {
        right: 0;
    }

    .menu-links {
        flex-direction: column;
        gap: 0;
    }

    .menu-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
        font-size: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 102, 255, 0.1);
    }

    .header-right .social-icons {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero {
        height: 400px;
        margin-top: 55px;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .automatizamos {
        flex-direction: column;
        padding: 80px 20px 40px;
        gap: 30px;
    }

    .automatizamos h2 {
        font-size: 1.8rem;
    }

    .image-placeholder {
        width: 100%;
        max-width: 280px;
        height: 320px;
    }

    .servicios {
        padding: 50px 20px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .quote-section {
        padding: 80px 20px 60px;
    }

    .quote-section p {
        font-size: 1.1rem;
    }

    .valor-agregado {
        padding: 50px 20px;
    }

    .valor-agregado h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .comparativa-chatbot {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    
    .comparativa-chatbot h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .comparativa-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .comparativa-columna {
        padding: 30px 20px;
    }
    
    .comparativa-columna h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .comparativa-columna li {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .valor-content {
        flex-direction: column;
        gap: 40px;
    }

    .valor-list {
        flex: 1;
        max-width: 100%;
    }

    .valor-visual {
        margin-top: 0;
    }

    .casos {
        padding: 40px 20px 80px;
        overflow-x: hidden;
    }
    
    .casos h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .carousel-container {
        gap: 0;
        min-height: auto;
        align-items: center;
        padding: 0 50px;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .carousel-track {
        gap: 20px;
        width: 100%;
    }
    
    .caso-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 25px 20px;
        min-height: auto;
        height: auto;
    }
    
    .caso-logo {
        height: 80px;
        margin-bottom: 20px;
    }
    
    .caso-card h3 {
        font-size: 1.35rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .caso-sector {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .caso-reto {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 30px 25px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-logo {
        width: 100px;
        height: 100px;
    }
    
    .modal-section.urgencia {
        padding: 20px;
        margin-top: 20px;
    }
    
    .modal-section.urgencia h4 {
        font-size: 1.1rem;
    }
    
    .modal-section.urgencia p {
        font-size: 0.95rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-number {
        font-size: 2rem;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    footer {
        padding: 30px 20px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .footer-logo-section {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-logo {
        height: 40px;
        margin-bottom: 0;
    }
    
    .footer-accordion {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        cursor: pointer;
        user-select: none;
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .accordion-icon {
        display: inline-block;
        font-size: 1.5rem;
        transition: transform 0.3s ease;
        font-weight: 300;
    }
    
    .footer-accordion.active .accordion-icon {
        transform: rotate(45deg);
    }
    
    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .footer-accordion.active .footer-links {
        max-height: 300px;
        padding-bottom: 15px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 0.8rem;
    }
}