/* Estilos Generales */
:root {
    --primary: #28a745;
    --primary-dark: #5d4ecb;
    --primary-light: #28a745;
    --secondary: #fdcb6e;
    --accent: #ff7675;
    --light: #f7f7f7;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --success: #00b894;
    --error: #d63031;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.btn-secondary {
    background-color: var(--accent);
}

.btn-secondary:hover {
    background-color: #e84393;
    box-shadow: 0 10px 20px rgba(255, 118, 117, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary);
}

.logo-text span {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-content i {
    margin-right: 10px;
    color: var(--primary);
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 52, 54, 0.7), rgba(45, 52, 54, 0.5)), 
                url('https://images.unsplash.com/photo-1586671267731-da2cf3ceeb80?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.location {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.location i {
    margin-right: 8px;
    color: var(--secondary);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background-color: white;
}

.video-text-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.video-container {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    height: auto;
}

/* Reemplazo del iframe por video */
.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 10px;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.text-content p {
    color: var(--gray);
    margin-bottom: 2rem;
}


/* Services Section */
#servicios {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-values {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-card {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.value-card h3 i {
    margin-right: 10px;
    color: var(--accent);
}

.value-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Modelo 3D Section */
#modelo-3d {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.model-container {
    height: 500px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

/* .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}*/

.error-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--error);
    font-weight: 500;
    z-index: 10;
}

.action-container {
    text-align: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.action-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
}

.action-button i {
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: #b2bec3;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #b2bec3;
}

.contact-info i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-chat-button img {
    width: 35px;
    height: 35px;
}

.chat-options {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    z-index: 998;
}

.chat-options button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}

.chat-options button:last-child {
    border-bottom: none;
}

.chat-options button:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .video-text-wrapper {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    nav ul.show {
        left: 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .model-container {
        height: 350px;
    }
}








/* Estilos para la sección de redes sociales */
    .social-section {
        padding: 80px 0;
        background-color: var(--light);
    }
    
    .social-text-wrapper {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    
    .social-media-container {
        flex: 1;
        position: relative;
    }
    
    .social-illustration {
        width: 100%;
        height: 300px;
        background-color: var(--primary-light);
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .social-illustration i.fa-share-alt {
        font-size: 5rem;
        margin-bottom: 30px;
        color: var(--primary);
        z-index: 2;
    }
    
    .social-icons {
        display: flex;
        gap: 30px;
        z-index: 2;
    }
    
    .social-icons i {
        font-size: 3rem;
        transition: var(--transition);
    }
    
    .social-icons i.fa-instagram {
        color: #E1306C;
        background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .social-icons i.fa-tiktok {
        color: #000000;
    }
    
    .social-illustration::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        animation: pulse 8s infinite linear;
        z-index: 1;
    }
    
    @keyframes pulse {
        0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
        100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    }
    
    .text-content {
        flex: 1;
    }
    
    .text-content h2 {
        color: var(--primary-dark);
        margin-bottom: 20px;
        font-size: 2rem;
    }
    
    .text-content p {
        color: var(--gray);
        margin-bottom: 25px;
        line-height: 1.7;
    }
    
    .text-content .btn {
        background-color: var(--primary);
        color: white;
        padding: 12px 25px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .text-content .btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
    }
    
    @media (max-width: 768px) {
        .social-text-wrapper {
            flex-direction: column;
        }
        
        .social-illustration {
            height: 250px;
        }
    }





    /* Estilos del chatbot (se integran con tu CSS existente) */
    .chatbot-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 380px;
        max-width: 90%;
        z-index: 1000;
        font-family: 'Poppins', sans-serif;
        display: none;
    }

    .chatbot-header {
        background-color: var(--primary);
        color: white;
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

        .chatbot-header h3 {
            margin: 0;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
        }

        .chatbot-header h3 i {
            margin-right: 10px;
        }

        .chatbot-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }

        .chatbot-body {
            background-color: white;
            height: 400px;
            overflow-y: auto;
            padding: 20px;
            border-left: 1px solid var(--light-gray);
            border-right: 1px solid var(--light-gray);
            display: flex;
            flex-direction: column;
        }

        .chatbot-footer {
            background-color: white;
            padding: 15px;
            border-radius: 0 0 15px 15px;
            border-left: 1px solid var(--light-gray);
            border-right: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
            display: flex;
        }

        .chatbot-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 30px;
            outline: none;
            font-family: 'Poppins', sans-serif;
        }

        .chatbot-send {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .chatbot-send:hover {
            background-color: var(--primary-dark);
        }

        .chatbot-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
            z-index: 999;
            transition: var(--transition);
        }

        .chatbot-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
        }

        .message {
            max-width: 80%;
            padding: 10px 15px;
            border-radius: 18px;
            margin-bottom: 15px;
            position: relative;
            animation: fadeIn 0.3s ease;
        }

        .bot-message {
            background-color: var(--light-gray);
            color: var(--dark);
            align-self: flex-start;
            border-bottom-left-radius: 5px;
        }

        .user-message {
            background-color: var(--primary);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 5px;
        }

        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .quick-reply {
            background-color: white;
            color: var(--primary);
            border: 1px solid var(--primary);
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .quick-reply:hover {
            background-color: var(--primary-light);
        }

        .chatbot-options {
            margin-top: 10px;
        }

        .chatbot-option {
            display: block;
            background-color: var(--light-gray);
            color: var(--dark);
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .chatbot-option:hover {
            background-color: var(--primary-light);
            color: white;
        }

        .chatbot-link {
            color: var(--primary);
            text-decoration: underline;
            font-weight: 500;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Asegurar que el chatbot esté sobre el botón de WhatsApp */
        .whatsapp-chat-button {
            bottom: 100px;
        }

        .chat-options {
            bottom: 170px;
        }

        @media (max-width: 768px) {
            .chatbot-container {
                width: 90%;
                right: 5%;
                bottom: 80px;
            }
            
            .chatbot-toggle {
                bottom: 20px;
                right: 20px;
            }
            
            .whatsapp-chat-button {
                bottom: 90px;
                right: 20px;
            }
            
            .chat-options {
                bottom: 160px;
                right: 20px;
            }
        }

        