#splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #161D24; /* El gris oscuro de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

/* La gota que cae y se expande */
.ripple-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #002E5D; /* El azul profundo de la empresa */
    border-radius: 50%;
    transform: scale(0);
    animation: dropAndExpand 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animación del logo apareciendo desde la gota */
.logo-wrapper {
    z-index: 10001;
    opacity: 0;
    transform: scale(0.5);
    animation: logoReveal 1.2s 0.8s ease-out forwards;
}

.logo-wrapper img {
    width: 200px; /* Ajusta según tu logo */
    filter: drop-shadow(0 0 15px rgba(91, 134, 176, 0.5)); /* Brillo en azul claro[cite: 1] */
}

/* Keyframes para el impacto */
@keyframes dropAndExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    30% {
        transform: scale(15); /* Crece rápido como un impacto */
        opacity: 1;
    }
    100% {
        transform: scale(500); /* Inunda toda la pantalla */
        background: transparent; /* Se vuelve invisible al final para mostrar la web */
    }
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Desvanecimiento final del contenedor */
.fade-out-splash {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

        :root {
            --color-bg: #F8FAFC;
            --color-primary: #3B82F6;
            --color-accent: #0F172A;
            --ami-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        }

        body {
            background-color: var(--color-bg);
            color: #1E293B;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            overflow-x: hidden;
        }

        .nav-container {
            background: var(--color-accent);
            color: white;
            padding: 0.75rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        /* Ventana de chat Profesional */
        .chat-window {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 400px;
            height: 600px;
            max-height: calc(100vh - 40px);
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 2001;
            border: 1px solid rgba(0, 0, 0, 0.1);
            transform: translateY(120%);
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .chat-window.open {
            transform: translateY(0);
        }

        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 8px;
            position: relative;
        }

        .msg-bot {
            background: #F1F5F9;
            color: #1E293B;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .msg-user {
            background: var(--color-primary);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .typing-indicator {
            display: none;
            padding: 12px 16px;
            background: #F1F5F9;
            border-radius: 18px;
            width: fit-content;
            margin-bottom: 8px;
        }

        .dot {
            height: 6px;
            width: 6px;
            background: #94A3B8;
            border-radius: 50%;
            display: inline-block;
            animation: bounce 1.3s infinite;
        }

        .dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .dot:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes bounce {

            0%,
            60%,
            100% {
                transform: translateY(0);
            }

            30% {
                transform: translateY(-4px);
            }
        }

        .bot-option {
            width: 100%;
            text-align: left;
            padding: 10px 14px;
            background: white;
            border: 1.5px solid #E2E8F0;
            border-radius: 12px;
            margin-top: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .bot-option:hover {
            background: #EFF6FF;
            border-color: #3B82F6;
            color: #3B82F6;
            transform: scale(1.02);
        }

        .chat-card {
            background: white;
            border-radius: 12px;
            border: 1px solid #E2E8F0;
            margin-top: 8px;
            overflow: hidden;
            width: 200px;
            flex-shrink: 0;
        }

        .chat-card-img {
            height: 100px;
            background: #F1F5F9;
            overflow: hidden;
        }

        .chat-card-content {
            padding: 8px;
        }

        .img-placeholder {
            width: 100%;
            height: 100%;
            background: #0F172A;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 10px;
            font-size: 0.6rem;
            font-weight: bold;
        }

        .product-card {
            background: white;
            border-radius: 20px;
            transition: all 0.3s ease;
            border: 1px solid #F1F5F9;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        }

        .cart-toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #10B981;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: bold;
            z-index: 3000;
            transition: transform 0.3s ease;
        }

        .cart-toast.show {
            transform: translateX(-50%) translateY(0);
        }

        .hidden-view {
            display: none !important;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade {
            animation: fadeIn 0.3s ease-out forwards;
        }

        #price-display {
    transition: all 0.3s ease;
}

.logo-wrapper img {
    width: 200px; /* Aquí ya definiste que mida 200px de ancho */
    filter: drop-shadow(0 0 15px rgba(91, 134, 176, 0.5)); /* El brillo azul claro */
}

/* Animación de apertura para el contenedor */
.hidden-factura {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.open-factura {
    max-height: 800px; /* Incrementado para albergar los nuevos campos */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Estilo de Línea Inferior Abierta */
.input-abierto {
    width: 100%;
    padding: 10px 0px 8px 0px;
    font-size: 0.95rem;
    color: #161D24;
    background-color: transparent !important;
    border: none;
    border-bottom: 2px solid #E2E8F0;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-abierto:focus {
    border-bottom-color: #002E5D; /* Azul profundo AMI */
    box-shadow: none;
}

/* Comportamiento de la Etiqueta Flotante */
.relative.group-input {
    position: relative;
}

.label-flotante {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.95rem;
    color: #94A3B8;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación del label al escribir o enfocar */
.input-abierto:focus ~ .label-flotante,
.input-abierto:not(:placeholder-shown) ~ .label-flotante,
.input-abierto:valid ~ .label-flotante {
    top: -14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B86B0; /* Azul de acento AMI */
    letter-spacing: 0.05em;
}