body {
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}
.orbitron {
    font-family: 'Orbitron', sans-serif;
}
.scroll-indicator {
    width: 2px;
    background-color: #FF4500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20%;
    bottom: 20%;
}
.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FF4500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
.scroll-dot.active {
    width: 12px;
    height: 12px;
    background-color: #FFFFFF;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 80%;
    max-width: 1000px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}
.popup-overlay.active .popup {
    transform: scale(1);
    opacity: 1;
}
.popup-content {
    max-height: 70vh;
    overflow-y: auto;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float {
    animation: float 4s ease-in-out infinite;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background: rgba(17, 24, 39, 0.95);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Estilos del Chatbot */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(10px);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.6);
}

.chatbot-button img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 550px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    padding: 15px 20px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-iframe {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    background: transparent;
}

/* Estilos para mejorar la integración del widget n8n */
.chatbot-container iframe {
    border-radius: 0 0 20px 20px;
}

/* Ocultar elementos innecesarios del n8n chat y mejorar la apariencia */
.chatbot-iframe {
    overflow: hidden;
}

/* Estilos adicionales para el contenedor del chatbot */
.chatbot-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 69, 0, 0.1);
}

.chat-header {
    display: none;
}

/* Mejorar la altura del contenedor para dispositivos más pequeños */
@media (max-height: 600px) {
    .chatbot-container {
        height: calc(100vh - 120px);
        max-height: 400px;
    }
}

@keyframes chatbot-pulse {
    0% { box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(255, 69, 0, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4); }
}

.chatbot-button.pulse {
    animation: chatbot-pulse 2s infinite;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .desktop-menu {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    
    .chatbot-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        left: 10px;
        bottom: 90px;
    }
    
    .chatbot-button {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .chatbot-button img {
        width: 28px;
        height: 28px;
    }
}