/* =========================================================
   TARJETAS ANIMADAS DE SERVICIOS DIGITALES
   Archivo: servicios_animated_cards.css

   Contiene:
   - Tarjeta de chatbot para costos dentales y agenda
   - Tarjeta de sistema de inventario metalúrgico
   - Estilo glass / blur compatible con el dashboard
========================================================= */


/* =========================================================
   SECCIÓN GENERAL
========================================================= */

.ulu-services-showcase {
    /* Separación superior e inferior de la sección */
    padding: 12px 0 56px;

    /* Evita que brillos decorativos generen scroll horizontal */
    overflow: hidden;

    /* Permite posicionar decoraciones internas si se necesitan */
    position: relative;
}


/* =========================================================
   GRID PRINCIPAL DE DOS TARJETAS
========================================================= */

.ulu-services-grid {
    /* Coloca dos tarjetas lado a lado */
    display: grid;

    /* Dos columnas iguales */
    grid-template-columns: repeat(2, minmax(0, 1fr));

    /* Separación entre tarjetas */
    gap: 24px;

    /* Alinea el alto de ambas tarjetas */
    align-items: stretch;
}


/* =========================================================
   TARJETA BASE
========================================================= */

.ulu-service-card {
    /* Posición relativa para brillos internos */
    position: relative;

    /* Distribución interna vertical */
    display: flex;

    /* Coloca texto arriba y animación abajo */
    flex-direction: column;

    /* Separación entre texto y demo */
    gap: 26px;

    /* Altura mínima para que luzcan grandes */
    min-height: 620px;

    /* Espaciado interno */
    padding: 38px;

    /* Bordes grandes tipo iOS */
    border-radius: 32px;

    /* Fondo glass neutro, sin tornasol */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(245, 247, 250, 0.58)
        );

    /* Borde cristalino */
    border: 1px solid rgba(255, 255, 255, 0.82);

    /* Sombra compatible con tu dashboard */
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    /* Blur tipo glass */
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);

    /* Oculta brillos fuera del borde */
    overflow: hidden;
}


/* =========================================================
   BRILLOS INTERNOS NEUTROS
========================================================= */

.ulu-service-card__glow {
    /* Posición absoluta dentro de la tarjeta */
    position: absolute;

    /* Forma circular */
    border-radius: 999px;

    /* Difuminado del brillo */
    filter: blur(18px);

    /* Opacidad baja para evitar tornasol */
    opacity: 0.28;

    /* No bloquea clics */
    pointer-events: none;

    /* Animación suave */
    animation: uluServiceGlowFloat 8s ease-in-out infinite alternate;
}

.ulu-service-card__glow--one {
    /* Tamaño del primer brillo */
    width: 180px;
    height: 180px;

    /* Posición inferior izquierda */
    left: -56px;
    bottom: -60px;

    /* Brillo blanco neutro */
    background: rgba(255, 255, 255, 0.38);
}

.ulu-service-card__glow--two {
    /* Tamaño del segundo brillo */
    width: 210px;
    height: 210px;

    /* Posición superior derecha */
    right: -70px;
    top: -70px;

    /* Brillo gris neutro */
    background: rgba(226, 232, 240, 0.30);

    /* Retraso en la animación */
    animation-delay: 1.2s;
}


/* =========================================================
   CONTENIDO DE TEXTO
========================================================= */

.ulu-service-card__content {
    /* Mantiene el texto por encima de los brillos */
    position: relative;

    /* Capa superior */
    z-index: 2;
}

.ulu-service-card__eyebrow {
    /* Etiqueta superior */
    display: inline-flex;

    /* Centrado vertical */
    align-items: center;

    /* Espaciado interno */
    padding: 8px 13px;

    /* Forma de píldora */
    border-radius: 999px;

    /* Fondo azul muy suave */
    background: rgba(0, 122, 255, 0.10);

    /* Borde azul suave */
    border: 1px solid rgba(0, 122, 255, 0.14);

    /* Color del texto */
    color: #0f62fe;

    /* Tamaño pequeño */
    font-size: 0.74rem;

    /* Mayúsculas */
    text-transform: uppercase;

    /* Espaciado de letras */
    letter-spacing: 0.13em;

    /* Peso fuerte */
    font-weight: 800;

    /* Separación inferior */
    margin-bottom: 18px;
}

.ulu-service-card__content h2 {
    /* Quita margen superior */
    margin: 0;

    /* Tamaño llamativo */
    font-size: clamp(1.8rem, 3vw, 2.75rem);

    /* Altura de línea compacta */
    line-height: 1.04;

    /* Color oscuro elegante */
    color: #101828;

    /* Peso fuerte */
    font-weight: 900;

    /* Separación inferior */
    margin-bottom: 16px;

    /* Balancea el texto */
    text-wrap: balance;
}

.ulu-service-card__content p {
    /* Quita margen superior */
    margin: 0;

    /* Color gris azulado */
    color: #536071;

    /* Tamaño legible */
    font-size: 1rem;

    /* Altura de línea cómoda */
    line-height: 1.72;
}


/* =========================================================
   TAGS DE BENEFICIOS
========================================================= */

.ulu-service-tags {
    /* Distribución horizontal */
    display: flex;

    /* Permite saltar de línea */
    flex-wrap: wrap;

    /* Separación entre tags */
    gap: 10px;

    /* Separación superior */
    margin-top: 22px;
}

.ulu-service-tags span {
    /* Fondo glass */
    background: rgba(255, 255, 255, 0.72);

    /* Borde suave */
    border: 1px solid rgba(15, 23, 42, 0.06);

    /* Redondeado */
    border-radius: 999px;

    /* Espaciado */
    padding: 9px 12px;

    /* Texto */
    color: #334155;

    /* Tamaño */
    font-size: 0.78rem;

    /* Peso */
    font-weight: 800;

    /* Sombra ligera */
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   DEMO CHATBOT
========================================================= */

.ulu-chatbot-demo {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Empuja la animación hacia abajo si hay espacio */
    margin-top: auto;

    /* Fondo interno oscuro elegante */
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.94));

    /* Borde redondeado */
    border-radius: 28px;

    /* Espaciado */
    padding: 18px;

    /* Borde translúcido */
    border: 1px solid rgba(255, 255, 255, 0.14);

    /* Sombra profunda */
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    /* Oculta desbordes */
    overflow: hidden;
}

.ulu-chatbot-demo::before {
    /* Brillo diagonal suave */
    content: "";

    /* Posicionamiento */
    position: absolute;

    /* Tamaño amplio */
    inset: -40%;

    /* Reflejo blanco */
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.10) 48%,
        transparent 62%
    );

    /* Animación */
    animation: uluServiceShine 7s linear infinite;

    /* No interfiere */
    pointer-events: none;
}


/* Encabezado del chatbot */
.ulu-chatbot-demo__header {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Distribución */
    display: flex;

    /* Centrado vertical */
    align-items: center;

    /* Separación */
    gap: 12px;

    /* Separación inferior */
    margin-bottom: 16px;
}

.ulu-chatbot-avatar {
    /* Tamaño */
    width: 46px;
    height: 46px;

    /* Forma circular */
    border-radius: 50%;

    /* Degradado azul/morado */
    background: linear-gradient(135deg, #007aff, #7c3aed);

    /* Centrado del texto */
    display: grid;
    place-items: center;

    /* Sombra */
    box-shadow: 0 14px 24px rgba(0, 122, 255, 0.24);
}

.ulu-chatbot-avatar span {
    /* Texto AI */
    color: #ffffff;

    /* Peso fuerte */
    font-weight: 900;

    /* Tamaño */
    font-size: 0.9rem;
}

.ulu-chatbot-demo__header strong {
    /* Nombre del bot */
    display: block;

    /* Color */
    color: #ffffff;

    /* Tamaño */
    font-size: 0.96rem;

    /* Peso */
    font-weight: 900;
}

.ulu-chatbot-demo__header small {
    /* Estado */
    display: block;

    /* Color claro */
    color: rgba(255, 255, 255, 0.58);

    /* Tamaño */
    font-size: 0.76rem;

    /* Margen superior */
    margin-top: 2px;
}

.ulu-chatbot-demo__header i {
    /* Punto online */
    width: 10px;
    height: 10px;

    /* Forma */
    border-radius: 50%;

    /* Color */
    background: #34c759;

    /* Mueve a la derecha */
    margin-left: auto;

    /* Sombra */
    box-shadow: 0 0 0 7px rgba(52, 199, 89, 0.14);

    /* Animación */
    animation: uluServicePulse 1.7s ease-in-out infinite;
}


/* Área de mensajes */
.ulu-chatbot-demo__messages {
    /* Altura fija */
    min-height: 250px;

    /* Distribución vertical */
    display: flex;

    /* Mensajes uno debajo de otro */
    flex-direction: column;

    /* Separación */
    gap: 10px;

    /* Padding inferior */
    padding-bottom: 12px;
}

.ulu-chat-message {
    /* Ancho máximo */
    max-width: 84%;

    /* Espaciado */
    padding: 11px 13px;

    /* Redondeado */
    border-radius: 18px;

    /* Tamaño */
    font-size: 0.84rem;

    /* Altura de línea */
    line-height: 1.45;

    /* Animación de entrada */
    animation: uluChatMessageIn 0.38s ease forwards;
}

.ulu-chat-message--bot {
    /* Alinea mensajes del bot a la izquierda */
    align-self: flex-start;

    /* Fondo del bot */
    background: rgba(255, 255, 255, 0.12);

    /* Borde */
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Color */
    color: rgba(255, 255, 255, 0.90);
}

.ulu-chat-message--user {
    /* Alinea mensajes del usuario a la derecha */
    align-self: flex-end;

    /* Fondo usuario */
    background: linear-gradient(135deg, #007aff, #7c3aed);

    /* Color */
    color: #ffffff;

    /* Sombra */
    box-shadow: 0 12px 22px rgba(0, 122, 255, 0.20);
}


/* Caja inferior del chat */
.ulu-chatbot-demo__input {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Distribución */
    display: flex;

    /* Centrado */
    align-items: center;

    /* Separación */
    gap: 10px;

    /* Fondo */
    background: rgba(255, 255, 255, 0.10);

    /* Borde */
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Redondeado */
    border-radius: 999px;

    /* Espaciado */
    padding: 8px 8px 8px 14px;
}

.ulu-chatbot-demo__input span {
    /* Ocupa espacio disponible */
    flex: 1;

    /* Color */
    color: rgba(255, 255, 255, 0.62);

    /* Tamaño */
    font-size: 0.82rem;

    /* Evita salto de línea */
    white-space: nowrap;

    /* Oculta exceso */
    overflow: hidden;

    /* Recorta con puntos */
    text-overflow: ellipsis;
}

.ulu-chatbot-demo__input button {
    /* Tamaño */
    width: 34px;
    height: 34px;

    /* Forma circular */
    border-radius: 50%;

    /* Sin borde */
    border: 0;

    /* Fondo */
    background: linear-gradient(135deg, #007aff, #7c3aed);

    /* Color */
    color: #ffffff;

    /* Cursor */
    cursor: pointer;

    /* Peso */
    font-weight: 900;
}


/* =========================================================
   DEMO INVENTARIO
========================================================= */

.ulu-inventory-demo {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Empuja la demo hacia abajo */
    margin-top: auto;

    /* Fondo oscuro igual al estilo del dashboard */
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.94));

    /* Bordes */
    border-radius: 28px;

    /* Espaciado */
    padding: 18px;

    /* Borde */
    border: 1px solid rgba(255, 255, 255, 0.14);

    /* Sombra */
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    /* Oculta desbordes */
    overflow: hidden;
}

.ulu-inventory-demo::before {
    /* Brillo diagonal */
    content: "";

    /* Posición */
    position: absolute;

    /* Tamaño */
    inset: -40%;

    /* Reflejo blanco */
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.10) 48%,
        transparent 62%
    );

    /* Animación */
    animation: uluServiceShine 7s linear infinite;

    /* No interfiere */
    pointer-events: none;
}


/* Header del inventario */
.ulu-inventory-demo__header {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Distribución */
    display: flex;

    /* Separación */
    justify-content: space-between;

    /* Centrado vertical */
    align-items: center;

    /* Espacio inferior */
    margin-bottom: 16px;
}

.ulu-inventory-demo__header strong {
    /* Título */
    display: block;

    /* Color */
    color: #ffffff;

    /* Peso */
    font-weight: 900;
}

.ulu-inventory-demo__header small {
    /* Subtexto */
    display: block;

    /* Color */
    color: rgba(255, 255, 255, 0.58);

    /* Tamaño */
    font-size: 0.76rem;

    /* Margen */
    margin-top: 2px;
}

.ulu-inventory-demo__header span {
    /* Estado */
    background: rgba(52, 199, 89, 0.16);

    /* Color */
    color: #86efac;

    /* Borde */
    border: 1px solid rgba(134, 239, 172, 0.18);

    /* Redondeado */
    border-radius: 999px;

    /* Espaciado */
    padding: 8px 10px;

    /* Tamaño */
    font-size: 0.72rem;

    /* Peso */
    font-weight: 900;
}


/* KPIs del inventario */
.ulu-inventory-kpis {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Grid de tres columnas */
    display: grid;

    /* Tres columnas */
    grid-template-columns: repeat(3, 1fr);

    /* Separación */
    gap: 10px;

    /* Separación inferior */
    margin-bottom: 14px;
}

.ulu-inventory-kpis div {
    /* Fondo glass */
    background: rgba(255, 255, 255, 0.10);

    /* Borde */
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Redondeado */
    border-radius: 18px;

    /* Espaciado */
    padding: 13px 12px;
}

.ulu-inventory-kpis strong {
    /* Dato principal */
    display: block;

    /* Color */
    color: #ffffff;

    /* Tamaño */
    font-size: 1rem;

    /* Peso */
    font-weight: 900;
}

.ulu-inventory-kpis span {
    /* Texto descriptivo */
    display: block;

    /* Color */
    color: rgba(255, 255, 255, 0.56);

    /* Tamaño */
    font-size: 0.72rem;

    /* Separación */
    margin-top: 4px;
}


/* Lista de materiales */
.ulu-inventory-list {
    /* Capa superior */
    position: relative;
    z-index: 2;

    /* Distribución vertical */
    display: flex;

    /* Dirección */
    flex-direction: column;

    /* Separación */
    gap: 10px;
}

.ulu-inventory-item {
    /* Fondo glass */
    background: rgba(255, 255, 255, 0.10);

    /* Borde */
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Redondeado */
    border-radius: 18px;

    /* Espaciado */
    padding: 12px;

    /* Animación */
    animation: uluInventoryItemIn 0.42s ease forwards;
}

.ulu-inventory-item__top {
    /* Distribución */
    display: flex;

    /* Espacio entre nombre y porcentaje */
    justify-content: space-between;

    /* Centrado */
    align-items: center;

    /* Separación inferior */
    margin-bottom: 8px;
}

.ulu-inventory-item__top strong {
    /* Nombre material */
    color: #ffffff;

    /* Tamaño */
    font-size: 0.86rem;

    /* Peso */
    font-weight: 900;
}

.ulu-inventory-item__top span {
    /* Porcentaje */
    color: rgba(255, 255, 255, 0.68);

    /* Tamaño */
    font-size: 0.76rem;

    /* Peso */
    font-weight: 800;
}

.ulu-inventory-bar {
    /* Alto de barra */
    height: 9px;

    /* Fondo de barra */
    background: rgba(255, 255, 255, 0.10);

    /* Redondeado */
    border-radius: 999px;

    /* Oculta desbordes */
    overflow: hidden;
}

.ulu-inventory-bar i {
    /* Muestra la barra interior */
    display: block;

    /* Alto total */
    height: 100%;

    /* Ancho controlado por JS */
    width: var(--stock-width, 50%);

    /* Degradado */
    background: linear-gradient(135deg, #007aff, #7c3aed, #34c759);

    /* Redondeado */
    border-radius: inherit;

    /* Animación de carga */
    animation: uluInventoryBarGrow 0.9s ease forwards;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes uluServiceGlowFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(18px, -16px, 0) scale(1.08);
    }
}

@keyframes uluServiceShine {
    0% {
        transform: translateX(-35%);
    }

    100% {
        transform: translateX(35%);
    }
}

@keyframes uluServicePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.72;
    }
}

@keyframes uluChatMessageIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes uluInventoryItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uluInventoryBarGrow {
    from {
        width: 0;
    }

    to {
        width: var(--stock-width, 50%);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
    .ulu-services-grid {
        /* En tablet y móvil, una tarjeta debajo de la otra */
        grid-template-columns: 1fr;
    }

    .ulu-service-card {
        /* Reduce altura mínima */
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .ulu-services-showcase {
        /* Menos espacio vertical en móvil */
        padding: 10px 0 42px;
    }

    .ulu-service-card {
        /* Menor padding */
        padding: 24px;

        /* Bordes algo menores */
        border-radius: 26px;
    }

    .ulu-service-card__content h2 {
        /* Ajuste de tamaño móvil */
        font-size: 2rem;
    }

    .ulu-inventory-kpis {
        /* Una columna si la pantalla es pequeña */
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SECCIÓN GENERAL DE SOLUCIONES
   Agrupa dashboard + chatbot + inventario dentro de #soluciones.
========================================================= */

.ulu-soluciones-section {
    padding: 42px 0 56px;
    overflow: hidden;
    position: relative;
}

.ulu-soluciones-head {
    margin-bottom: 26px;
}

.ulu-soluciones-section .ulu-dashboard-showcase {
    padding: 0 0 34px;
}

.ulu-soluciones-section .ulu-services-showcase {
    padding: 0;
}

