/* Paleta de Colores y Estilos Base */
:root {
    --primary-color: #7C4DFF; /* Morado vibrante del logo */
    --primary-hover: #651FFF; /* Un morado un poco más oscuro para interacciones */
    --dark-text: #333333; /* Gris oscuro para texto principal */
    --light-text: #ffffff;
    --background-light: #f4f7f6;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* === Reseteo y Mejoras Globales === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--dark-text);
    overflow-x: hidden; /* Previene el scroll horizontal */
}

.container {
    width: 100%; /* Ocupa el 100% del espacio disponible */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding a los lados */
}

/* Header */
header {
    background: var(--background-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el logo si el nav se envuelve */
    width: 100%; /* Ocupa todo el ancho para centrar */
    margin-bottom: 10px; /* Espacio si el nav se envuelve */
}

header .logo img {
    height: 60px; /* Ligeramente más pequeño para móviles */
}

nav {
    flex-basis: 100%; /* Ocupa todo el ancho en la siguiente línea en móvil */
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Permite que los enlaces del menú se envuelvan */
    justify-content: center;
}

nav ul li {
    margin: 5px 15px; /* Ajuste de margen para envolver */
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

nav a:hover {
    color: var(--dark-text);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg, #f2e9ff, #e6f7ff, #f2e9ff);
    background-size: 600% 600%;
    animation: gradientAnimation 16s ease infinite;
}

.hero-futuristic {
    min-height: 520px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    --tiltX: 0px;
    --tiltY: 0px;
}

.nebula {
    position: absolute;
    inset: -20%;
    filter: blur(60px);
    opacity: 0.8;
    animation: driftNebula 28s ease-in-out infinite;
    transform: translate3d(var(--tiltX, 0px), var(--tiltY, 0px), 0);
    transition: transform 0.6s ease;
}

.nebula-primary {
    background: radial-gradient(circle at 30% 30%, rgba(124,77,255,0.65), rgba(10,15,40,0));
}

.nebula-secondary {
    background: radial-gradient(circle at 70% 60%, rgba(69,31,255,0.55), rgba(10,15,40,0));
    animation-duration: 36s;
    animation-direction: reverse;
}

.star-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.star-field::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 120px 120px;
    animation: twinkle 18s linear infinite;
    transform: translate3d(var(--tiltX, 0px), var(--tiltY, 0px), 0);
}

.star-field--near::before {
    opacity: 0.8;
    animation-duration: 14s;
}

.star-field--far::before {
    opacity: 0.3;
    background-size: 220px 220px;
    animation-duration: 28s;
}

.hero-constellation {
    position: absolute;
    inset: 0;
    opacity: 0.65;
    mix-blend-mode: screen;
    animation: floatConstellation 14s ease-in-out infinite;
    transform: translate3d(var(--tiltX, 0px), var(--tiltY, 0px), 0);
}

.vector-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(124,77,255,0.6), rgba(124,77,255,0));
    opacity: 0.5;
    animation: pulseOrb 10s ease-in-out infinite;
    transform: translate3d(var(--tiltX, 0px), var(--tiltY, 0px), 0);
    transition: transform 0.6s ease;
}

.vector-orb.orb-1 {
    top: 10%;
    right: -60px;
}

.vector-orb.orb-2 {
    bottom: -80px;
    left: -40px;
    animation-delay: 3s;
}

@keyframes pulseOrb {
    0%,100% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes driftNebula {
    0% { transform: translate(-5%, -5%) scale(1); }
    50% { transform: translate(5%, 2%) scale(1.05); }
    100% { transform: translate(-5%, -5%) scale(1); }
}

@keyframes twinkle {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { transform: translateY(40px); opacity: 0.6; }
}

@keyframes floatConstellation {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes avatarFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1); opacity: 0.45; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero .container {
    display: flex;
    flex-direction: column; /* Apilado por defecto para móvil */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-image {
    max-width: 420px;
    margin: 30px auto 0;
    position: relative;
    z-index: 2;
}

.hero-avatar-frame {
    position: relative;
    padding: 32px;
    border-radius: 28px;
    background: radial-gradient(circle at 20% 20%, rgba(124,77,255,0.35), rgba(10,15,40,0.2));
    box-shadow: 0 25px 65px rgba(15, 0, 45, 0.35);
    overflow: visible;
}

.hero-avatar-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    animation: avatarFloat 8s ease-in-out infinite;
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transform-origin: center;
    animation: orbitSpin 14s linear infinite;
    pointer-events: none;
}

.hero-orbit--one {
    width: 120%;
    height: 120%;
}

.hero-orbit--two {
    width: 160%;
    height: 160%;
    opacity: 0.4;
    animation-duration: 18s;
    animation-delay: -3s;
}

.hero-pulse {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,77,255,0.35), transparent 70%);
    filter: blur(10px);
    animation: pulseGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-pulse--one {
    top: 10%;
    left: 5%;
}

.hero-pulse--two {
    bottom: 0%;
    right: 0%;
    animation-delay: 1.8s;
}

.cta-button {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(124,77,255,0.4);
}

.cta-button.secondary:hover {
    background: rgba(124,77,255,0.1);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    color: var(--dark-text);
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-highlights li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(124,77,255,0.6);
}

/* Secciones Generales */
section {
    padding: 36px 0;
    text-align: center;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: var(--dark-text);
    font-weight: 600;
}

#results {
    position: relative;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.result-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    text-align: left;
}

.result-card h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.result-card p {
    margin: 0;
    color: #555;
}

/* Servicios */
#services {
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    text-align: left;
}

.services-grid.compact {
    gap: 20px;
}

.service-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-top: 0;
    color: var(--primary-color);
}

.service-card.mini {
    padding: 24px;
    min-height: auto;
}

.service-card.mini p {
    margin-bottom: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(124,77,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Integrations Section */
#integrations .integrations-container {
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    align-items: center;
    gap: 40px;
    text-align: center;
}

#integrations .integrations-text {
    flex: 1;
    text-align: center;
}

#integrations .integrations-text h2 {
    text-align: center;
    margin-bottom: 20px;
}

#integrations .integrations-text p {
    font-size: 1.1rem;
}

#integrations .integrations-image {
    flex: 1;
    max-width: 100%;
}

.integrations-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.section-subtitle {
    font-size: 1rem;
    max-width: 620px;
    margin: 6px auto 20px;
    color: #4b4b4b;
    line-height: 1.5;
}

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

.suite-card {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 30px;
    text-align: left;
    border: 1px solid rgba(124,77,255,0.08);
    box-shadow: 0 20px 60px rgba(26, 5, 56, 0.08);
    backdrop-filter: blur(6px);
}

.suite-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124,77,255,0.9), rgba(69,31,255,0.85));
    color: var(--light-text);
    box-shadow: 0 30px 60px rgba(124,77,255,0.25);
}

.suite-card.primary .suite-footnote,
.suite-card.primary .suite-eyebrow,
.suite-card.primary h3,
.suite-card.primary li,
.suite-card.primary p {
    color: var(--light-text);
}

.suite-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: rgba(124,77,255,0.9);
    margin-bottom: 10px;
}

.suite-card.primary .suite-eyebrow {
    color: rgba(255,255,255,0.8);
}

.suite-card h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--dark-text);
}

.suite-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.suite-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    color: rgba(255,255,255,0.9);
}

.suite-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    margin-top: 8px;
}

.suite-card:not(.primary) .suite-list li,
.suite-card:not(.primary) .suite-footnote,
.suite-card:not(.primary) p,
.suite-card:not(.primary) h3 {
    color: var(--dark-text);
}

.suite-card:not(.primary) .suite-list li::before {
    background: var(--primary-color);
}

.suite-footnote {
    font-size: 0.9rem;
    color: #ccc;
}

/* Workflow Tools Section */
#workflows {
    background-color: var(--background-light);
}

.workflow-tools-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.tool-logo {
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-logo img {
    max-height: 100%;
    max-width: 180px;
    animation: floatAnimation 6s ease-in-out infinite;
}

.tool-card:nth-child(2) .tool-logo img {
    animation-delay: 3s;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tool-card p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

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

/* Omnichannel Section */
#omnichannel {
    background-color: var(--background-white);
}

.omnichannel-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.omni-logo-item {
    height: 50px;
}

.omni-logo-item img {
    max-height: 100%;
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.omni-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Sobre Nosotros */
#about {
    background-color: var(--background-light);
}

#about p {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Contacto */
#contact p {
    font-size: 1.1rem;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-text);
    color: #a9a9a9;
    text-align: center;
    padding: 50px 20px 30px; /* Añadido padding lateral */
    margin-top: 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: flex; /* Cambiado a flexbox */
    flex-wrap: wrap; /* Permite envolver en móvil */
    justify-content: center; /* Centra las columnas */
    gap: 40px; /* Espacio entre columnas */
    width: 100%;
}

.footer-column {
    text-align: center; /* Centrado por defecto para móvil */
    flex: 1; /* Permite que las columnas crezcan */
    min-width: 220px; /* Ancho mínimo para cada columna */
}

.footer-column h4 {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

footer .footer-column a,
footer .footer-column p {
    color: #a9a9a9;
    text-decoration: none;
    font-size: 0.9rem;
}

footer .footer-column a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-chat-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.footer-chat-button:hover {
    background-color: var(--primary-hover);
    text-decoration: none !important;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #444;
    width: 100%;
    padding-top: 25px;
    margin-top: 15px;
}

/* === Media Queries para Tablets y Desktops === */

/* Tablet (768px y más) */
@media (min-width: 768px) {
    header .container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    header .logo {
        width: auto;
        margin-bottom: 0;
    }

    header .logo img {
        height: 70px;
    }

    nav {
        flex-basis: auto; /* Restaura el comportamiento por defecto */
        margin-top: 0;
    }

    nav ul li {
        margin-left: 30px;
    }

    .hero .container {
        flex-direction: row; /* Vuelve a la fila */
        justify-content: space-between;
        text-align: left;
    }

    .hero-content {
        max-width: 50%;
    }

    .hero-image {
        max-width: 45%;
        margin-top: 0;
    }

    .hero-ctas {
        flex-direction: row;
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    #integrations .integrations-container {
        flex-direction: row;
        text-align: left;
    }

    #integrations .integrations-text {
        text-align: left;
    }
    
    #integrations .integrations-text h2 {
        text-align: left;
    }

    .workflow-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .footer-grid {
        justify-content: space-between; /* Distribuye el espacio en desktop */
    }

    .footer-column {
        text-align: left; /* Alinea a la izquierda en desktop */
    }
}

/* Desktop (992px y más) */
@media (min-width: 992px) {
    header .logo img {
        height: 80px;
    }

    nav ul li {
        margin-left: 40px;
    }
    
    nav a {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .suite-card.primary {
        grid-column: span 1;
    }
}


/* === CHAT: Estilos Definitivos (v2) === */

/* 1. Nuestro Botón Flotante Personalizado */
#chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
#chat-launcher:hover {
    transform: scale(1.1);
}

/* 2. Fondo Oscuro (Overlay) */
#chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
}

/* 3. Forzamos la ocultación de la burbuja de Chatwoot */
.woot-widget-bubble {
    display: none !important;
}

/* 4. Anulamos la posición de Chatwoot para convertirlo en un Modal */
.woot-widget-holder {
  /* Posición y centrado */
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  
  /* Reseteamos las posiciones de esquina que Chatwoot añade */
  right: auto !important;
  bottom: auto !important;

  /* Definimos el tamaño de nuestro modal */
  width: 90vw !important;
  max-width: 550px !important; /* Aumentado */
  height: 90vh !important; /* Aumentado */
  max-height: 750px !important; /* Aumentado */
  
  /* Estilos visuales */
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* 5. Añadir avatar como marca de agua en el chat */
.woot-widget-holder .woot-widget-inner {
    position: relative; /* Necesario para el posicionamiento del pseudo-elemento */
    z-index: 1;
}

.woot-widget-holder .woot-widget-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/avatar_web.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%; /* Tamaño del avatar como marca de agua */
    opacity: 0.05; /* Opacidad para que sea sutil */
    z-index: -1; /* Lo colocamos detrás del contenido */
}

/* === Página de Productos === */
.product-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    text-align: left;
    border-top: 4px solid var(--primary-color);
}

.product-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.product-card .section-subtitle {
    text-align: left;
    margin: 0 0 30px 0;
    max-width: 100%;
}

.product-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-hover);
    padding-left: 10px;
}

.product-card ul {
    list-style: none;
    padding-left: 0;
}

.product-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.product-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-card th, .product-card td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.product-card th {
    background-color: var(--background-light);
    font-weight: 600;
}

/* Chat Showcase Section */
#chat-showcase {
    padding: 80px 0;
    background-color: var(--background-white);
}

#chat-showcase h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#chat-showcase .section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #555;
}

.chat-input-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(120deg, #a88bff, #c0eaff); /* Gradient border */
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.chat-input-container {
    background: var(--background-white);
    padding: 30px;
    border-radius: 14px;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.chat-input-container span {
    font-size: 1.1rem;
    color: #888;
}

.chat-input-container .send-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input-container .send-button:hover {
    background-color: var(--primary-hover);
}

.suggestion-pills {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.suggestion-pill {
    background-color: #f0f4f8;
    border: 1px solid #dce5ed;
    color: #555;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.suggestion-pill:hover {
    background-color: #e1e8f0;
    border-color: #cdd7e1;
    transform: translateY(-2px);
}


/* === NUEVOS ESTILOS PARA PÁGINA DE PRODUCTOS (JULIO 2025) === */

#product-list {
    padding-top: 40px;
    padding-bottom: 60px;
}

.product-main-card {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin-bottom: 50px;
    border-top: 4px solid var(--primary-color);
}

.product-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.product-title .section-subtitle {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
}

/* Estilos del Acordeón */
.accordion {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item.active .accordion-header {
    color: var(--primary-color);
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    color: var(--dark-text);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 20px;
    text-align: left;
}

.accordion-content p {
    margin-top: 0;
    font-weight: 500;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.accordion-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.accordion-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.accordion-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Grid para otros servicios */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-card-small {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: left;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-small:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.product-card-small h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.product-card-small p {
    flex-grow: 1;
}

.product-card-small.pricing-card {
    background-color: #e9e1ff;
    border-color: #532bb8;
}

.pricing-card h4 {
    color: #532bb8;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 8px;
}

.pricing-card small {
    font-size: 0.8rem;
    color: #555;
    margin-top: auto;
}

/* === Iconos para tarjetas de servicio === */
.card-icon {
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* === Estilos para la nueva sección Web3 en Productos === */

.product-category-title {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}
.product-category-title:first-child {
    margin-top: 0;
}

.product-category-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-category-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

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

.product-card-web3 {
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: left;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-web3:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.product-card-web3 h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.product-card-web3 p {
    margin-bottom: 20px;
}

.product-card-web3 ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-card-web3 ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.product-card-web3 ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* === ESTILOS PARA LA PÁGINA APTK.HTML === */

#aptk-pillars .aptk-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.aptk-pillar-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: left;
    border-top: 4px solid var(--primary-color);
}

.aptk-pillar-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.aptk-pillar-card .pillar-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.aptk-pillar-card .pillar-icon {
    height: 60px;
    margin-bottom: 20px;
}

#aptk-flywheel .flywheel-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.flywheel-step {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    position: relative;
}

.flywheel-step .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 3px solid var(--background-white);
}

.flywheel-step h4 {
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.flywheel-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    #aptk-pillars .aptk-pillars-grid {
        grid-template-columns: 1fr 1fr;
    }

    #aptk-flywheel .flywheel-steps {
        flex-direction: row;
        align-items: stretch;
    }

    .flywheel-step {
        flex: 1;
    }

    .flywheel-arrow {
        transform: rotate(0);
        align-self: center;
    }
}

/* === Estilos para el nuevo encabezado de APTK === */
.aptk-header-container {
    display: flex;
    flex-direction: column; /* Apilado en móvil por defecto */
    align-items: center;
    text-align: center;
    gap: 30px;
}

.aptk-header-container .hero-content {
    text-align: center;
}

.aptk-header-image {
    max-width: 320px;
    width: 100%;
}

.aptk-header-image img {
    width: 100%;
    height: auto;
}

.aptk-header-image.hero-image {
    margin: 0;
}

@media (min-width: 768px) {
    .aptk-header-container {
        flex-direction: row; /* Lado a lado en pantallas grandes */
        justify-content: space-between;
    }

    .aptk-header-container .hero-content {
        text-align: left; /* Texto a la izquierda en pantallas grandes */
    }

    .aptk-header-image {
        margin-left: 40px;
    }
}


/* === ESTILOS PARA PÁGINA AGENTE IA (AUTOMAN) === */

.automan-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.pillar-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.pillar-icon {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-top: 0;
}

.feature-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Evita que la tabla se comprima demasiado */
}

.feature-table th, .feature-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.feature-table thead th {
    background-color: var(--background-light);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.feature-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-table tbody tr:hover {
    background-color: #f9f6ff;
}

.feature-table td:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#automan-call-to-action {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: var(--light-text);
}

#automan-call-to-action h2 {
    color: var(--light-text);
}

#automan-call-to-action .cta-button {
    background: var(--light-text);
    color: var(--primary-color);
}

#automan-call-to-action .cta-button:hover {
    background: #f0eaff;
}


@media (min-width: 768px) {
    .automan-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* === NUEVOS ESTILOS PARA AGENTE IA (WOW FACTOR) === */

#ai-providers {
    background-color: var(--background-white);
    padding: 40px 0;
}

.providers-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.providers-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.providers-logos img {
    display: inline-block; /* Asegura que se comporte como un bloque en línea */
    max-height: 40px;      /* Límite máximo de altura */
    max-width: 150px;      /* Límite máximo de ancho */
    width: auto;           /* El ancho se ajusta automáticamente a la altura */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.providers-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

#automan-wow {
    background-color: var(--background-light);
}

.wow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: left;
}

.wow-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wow-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.wow-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .wow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .wow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .providers-logos img {
        height: 40px;
    }
    .providers-logos {
        gap: 50px;
    }
}

#tech-architecture {
    background-color: var(--background-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.tech-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tech-icon {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
}

.tech-card h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-top: 0;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

    /* Cuatro columnas en Soluciones de Automatización Estratégica */
    #services .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
