/* */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
    --bg-color: #0b0f1a;
    --grid-color: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --accent-blue: #38bdf8;
    --btn-blue: #2563eb;
    --font-main: 'Outfit', sans-serif;
}

/* Estilos Base */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Fondo de Rejilla */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Navegación */
header {
    padding: 20px 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Sección Hero */
.hero {
    text-align: left;
    padding: 120px 60px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.badge {
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    margin: 0;
    font-weight: 700;
}

.dynamic-text {
    display: inline-block;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Resplandor nítido: menos radio, más definición */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); 
    filter: drop-shadow(0 0 2px currentColor);
    letter-spacing: -0.02em; /* Mejora la legibilidad en negrita */
}

p {
    margin-top: 35px;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    line-height: 1.7;
    font-weight: 400;
}

/* Botones del Hero */
.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary-large {
    background-color: var(--btn-blue);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats-text {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Barra de Integraciones (Marquee) */
.partners-container {
    width: 100%;
    background: #111827;
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

.partners-marquee {
    display: flex;
    align-items: center;
    gap: 100px;
    padding-left: 100px;
    animation: scroll-infinito 20s linear infinite;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}

.partner-item i {
    font-size: 1.5rem;
}

.partners-container:hover .partners-marquee {
    animation-play-state: paused;
}

@keyframes scroll-infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Botones de Navegación (Header) */
.btn-login {
    background: transparent;
    color: white;
    border: none;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}

/* Botones Principales (Hero) */
.btn-primary-large {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s;
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.top-color-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Grosor de la barra */
    z-index: 9999; /* Para que siempre esté por encima de todo */
    background: linear-gradient(90deg, #38bdf8, #2563eb, #7c3aed, #38bdf8);
    background-size: 300% 100%;
    animation: flow-colors 5s linear infinite;
}

/* Animación de flujo de color */
@keyframes flow-colors {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.integration-slider {
    width: 100%;
    overflow: hidden;
    background: rgba(11, 15, 26, 0.6); /* Transparente y oscuro */
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* El riel que se mueve */
.slider-track {
    display: flex;
    width: calc(300px * 12); 
    animation: scroll-infinito 25s linear infinite;
}

.slide {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    filter: saturate(0.9);
    transition: filter 0.3s, transform 0.3s;
}

.slide:hover {
    filter: saturate(1.5);
    transform: scale(1.05);
}

/* Colores Neón Específicos */
.whatsapp  { color: #25d366; text-shadow: 0 0 10px rgba(37, 211, 102, 0.2); }
.nicaragua { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.2); } /* Azul Robotic */
.google    { color: #ea4335; text-shadow: 0 0 10px rgba(234, 67, 53, 0.2); }
.n8n       { color: #ff6d5a; text-shadow: 0 0 10px rgba(255, 109, 90, 0.2); }
.chatwoot  { color: #1f93ff; text-shadow: 0 0 10px rgba(31, 147, 255, 0.2); }
.zapier    { color: #ff4a00; text-shadow: 0 0 10px rgba(255, 74, 0, 0.2); }

/* Animación */
@keyframes scroll-infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 6)); }
}
/* --- SECCIÓN BANNER MEJORADA --- */
.banner-section {
    background: #ffffff;
    padding: 100px 10%;
    display: flex;
    justify-content: center;
}

.banner-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Texto */
.banner-badge {
    background: #f0f2f5;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 48px;
    color: #1a1a1a;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

.banner-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
}

.banner-btn:hover {
    background: #e63b5c;
    transform: translateY(-3px);
}

/* Caja del Carrusel */
.banner-box {
    flex: 1;
    height: 350px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.banner-slide.active img {
    transform: scale(1.1);
}

/* Overlay dentro del Carrusel */
.banner-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-overlay span {
    color: #ff4d6d;
    font-size: 20px;
}

/* Puntos de Navegación */
.banner-dots {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #ffffff;
    width: 25px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
    .banner-text h2 { font-size: 36px; }
    .banner-box { width: 100%; }
}
/* Contenedor principal */
.banner-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px; /* Da un efecto de profundidad 3D */
}

/* El "Cuerpo" del teléfono */
.mockup-container {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mockup-container img {
    height: 520px; /* Ajusta según necesites */
    width: auto;
    border-radius: 40px;
    border: 12px solid #121212; /* Marco de teléfono más definido */
    background: #000;
    /* Sombra multicapa para realismo */
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.2), 
        0 30px 60px rgba(0,0,0,0.1), 
        inset 0 0 15px rgba(255,255,255,0.05);
}

/* Elemento decorativo detrás (Opcional pero recomendado) */
/* Un círculo de luz muy tenue para que el teléfono no flote en la nada */
.banner-box::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,77,109,0.1) 0%, transparent 70%);
    z-index: 1;
    border-radius: 50%;
}

/* Etiqueta flotante con estilo Glassmorphism */
.banner-overlay {
    position: absolute;
    bottom: 50px;
    right: -20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
/* Quitamos el fondo al contenedor principal */
.banner-box {
    flex: 1;
    height: 550px;
    position: relative;
    background: transparent; /* Fondo totalmente transparente */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active { opacity: 1; }

/* Estilo del "Hardware" del teléfono */
.mockup-container {
    height: 90%;
    position: relative;
    /* Sombra profunda que sigue la forma del celular */
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.25));
}

.mockup-container img {
    height: 100%;
    width: auto;
    border-radius: 38px; /* Redondeado de iPhone */
    border: 10px solid #1a1a1a; /* El marco negro real del celular */
    background: #000;
    object-fit: contain; /* Evita que el chat se estire */
}

/* Estilo de la etiqueta de texto flotante */
.banner-overlay {
    position: absolute;
    bottom: 40px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Efecto cristal moderno */
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
}
.page-restart-btn {
    margin-top: 30px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    padding: 14px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.page-restart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.page-restart-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Efecto de brillo que pasa por el botón */
.page-restart-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s;
}

.page-restart-btn:hover::after {
    left: 120%;
}

/* Animación de icono */
.page-restart-btn i {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.page-restart-btn:hover i {
    transform: rotate(360deg);
}
/* Contenedor para alinear botones */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center; /* O flex-start según tu diseño */
    margin-top: 30px;
}

.page-restart-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Variante para el botón de Videoconferencia (opcional un color distinto) */
.btn-video {
    background: linear-gradient(135deg, #6366f1, #4338ca); /* Un tono púrpura/indigo profesional */
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.page-restart-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

/* Efecto de brillo para ambos */
.page-restart-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s;
}

.page-restart-btn:hover::after {
    left: 120%;
}
/* Contenedor de la imagen para mantener uniformidad */
.card-img-wrapper {
    width: 100%;
    height: 250px; /* Ajusta esta altura para que coincida con tus otras tarjetas */
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto es clave: recorta la imagen para que llene el espacio sin deformarse */
    object-position: center; /* Centra el robot para que no se pierda el diseño */
}

/* Asegura que todas las tarjetas tengan la misma altura */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0a1120;
    border-radius: 24px;
    overflow: hidden;
}

.card-content {
    flex-grow: 1; /* Empuja el contenido para que todas las tarjetas terminen igual */
    padding: 20px;
}
/* Estilos para pantallas pequeñas (menos de 768px - celulares) */
@media only screen and (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    /* Asegurar que las imágenes y videos no se salgan de la pantalla */
    img, video {
        max-width: 100%;
        height: auto;
    }

    /* Si tienes columnas (flexbox o grid), apílalas una sobre otra */
    .contenedor, .columna {
        flex-direction: column;
        width: 100% !important;
    }
}
