/* Estilos base */
body {
    background-color: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-header {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(96, 92, 253, 0.05);
    border-color: #605cfd;
    outline: none;
    box-shadow: 0 0 15px rgba(96, 92, 253, 0.2);
}

/* Acordeón FAQ Styles */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary~* {
    animation: sweep .3s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

details[open] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Blob Backgrounds */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 92, 253, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #605cfd;
}

.prose-invert h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #fff;
}

.prose-invert ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.prose-invert li {
    margin-bottom: 0.25rem;
}

.prose-invert strong {
    color: #605cfd;
}

/* Nav Link Animated Underline */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #605cfd;
    transition: width 0.6s ease;
    /* Slower animation */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Extra Hover Effects for Nav Links */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-shadow: 0 0 8px rgba(96, 92, 253, 0.6);
    /* Brand color glow */
    transform: translateY(-2px);
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 45px;
    position: relative;
    /* Reduced Depth & Shadow */
    box-shadow:
        0 0 0 2px #333,
        0 0 0 4px #555,
        0 0 0 8px #1a1a1a,
        10px 15px 30px rgba(0, 0, 0, 0.4),
        /* Reduced shadow */
        -2px -2px 10px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    /* Face Left: Right side comes forward (rotateY negative) */
    transform: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

@media (min-width: 1024px) {
    .phone-mockup {
        transform: perspective(1500px) rotateY(-12deg);
    }
}

/* Glare Effect - Adjusted for new angle */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 55%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 30;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 45px;
    /* Matched to phone-mockup radius */
    border: 6px solid #000;
    /* Increased bezel slightly */
}

.chat-header {
    padding: 40px 15px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    /* Hide scrollbar for clean mobile look */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.chat-body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.chat-input-area {
    padding: 15px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Chat Messages */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message.received {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.sent {
    background: #605cfd;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f0f0f0;
    border-radius: 18px;
    align-self: flex-start;
    width: fit-content;
    border-bottom-left-radius: 4px;
    animation: popIn 0.3s forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}