/* Variables de color */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #dfe6e9;
    --white: #fff;
    --black: #000;
    --card-bg: #34495e;
    --card-hover: #3d566e;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Pantalla de carga */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.content {
    opacity: 0;
    transition: opacity 0.5s;
}

.content-visible {
    opacity: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(45, 52, 54, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.menu a:hover {
    color: var(--primary-light);
}

.menu a.active {
    color: var(--light);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.btn-bot {
    background-color: var(--primary);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-bot:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.card-header i {
    transition: transform 0.3s;
    color: var(--primary-light);
}

.card.active .card-header i {
    transform: rotate(180deg);
}

.card-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.card.active .card-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.card-content p {
    color: var(--light);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Chatbot Section */
.chatbot-section {
    padding: 4rem 5%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.chatbot-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.chatbot-features {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
}

.chatbot-features p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.chatbot-features ul {
    list-style-type: none;
}

.chatbot-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--light);
}

.chatbot-features i {
    color: var(--primary);
}

.modern-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.modern-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.modern-button i {
    transition: transform 0.3s;
}

.modern-button:hover i {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background-color: #1e272e;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-light);
    color: var(--light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s;
    }

    .menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about h2, .chatbot-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .modern-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}