/* --- Variables & General Styles --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #343a40;
    --accent-color: #ffc107;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #495057;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 40px; text-align: center;}
h3 { font-size: 1.5rem; }

section {
    padding: 60px 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Header & Navigation (MENÚ MEJORADO) --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001; /* Para que esté sobre el overlay */
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.navbar-logo .logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.lang-btn {
    padding: 8px 12px;
    background-color: transparent;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; /* Encima de todo */
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.4s ease-in-out;
}

/* Animación del ícono a "X" */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay para el menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Debajo del menú */
}

.menu-overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.jpg') no-repeat center center/cover;
    color: var(--white);
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero-content h1 {
    color: var(--white);
}

/* ... (Las secciones benefits, features, pricing no cambian) ... */

.benefits, .features, .pricing, .main-footer-section {
    position: relative;
    z-index: 1;
}

.benefits { background-color: var(--light-gray); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.benefit-card { background-color: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; }
.benefit-card h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- Features Section (ACTUALIZADO) --- */
.features {
    padding: 60px 20px;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: var(--light-gray);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer; /* Indica que son elementos interactivos */
}

.feature-item span {
    display: block; /* Asegura que el span ocupe todo el espacio */
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: var(--white);
}
.pricing { background-color: var(--light-gray); }
.pricing-container { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 30px; }
.pricing-card { background-color: var(--white); border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 40px; text-align: center; flex: 1; min-width: 300px; max-width: 360px; display: flex; flex-direction: column; }
.pricing-card.popular { border: 2px solid var(--primary-color); position: relative; }
.popular-badge { position: absolute; top: 15px; right: 15px; background-color: var(--accent-color); color: var(--secondary-color); padding: 5px 10px; font-size: 0.8rem; font-weight: bold; border-radius: 5px; }
.pricing-card .price { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); margin: 20px 0; }
.price span { font-size: 1rem; font-weight: normal; color: var(--text-color); }
.pricing-card ul { list-style: none; margin: 30px 0; text-align: left; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.pricing-card ul li::before { content: '✔'; color: var(--primary-color); position: absolute; left: 0; }
.pricing-card ul li.disabled { color: #999; }
.pricing-card ul li.disabled::before { content: '✖'; color: #999; }
.save-badge { color: #28a745; font-weight: bold; margin-top: -15px; margin-bottom: 20px; }

/* --- Footer --- */
.main-footer-section { background-color: var(--secondary-color); color: var(--white); padding: 50px 20px; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #555; }
.footer-contact h3, .footer-links h3 { color: var(--white); margin-bottom: 15px; }
.footer-content a { color: #ccc; text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.9rem; color: #ccc; }


/* --- Responsive Design (MENÚ MEJORADO) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px; /* Ancho del menú lateral */
        height: 100%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
    }

    .navbar-menu a {
        font-size: 1.2rem;
    }

    .navbar-actions .btn-secondary,
    .navbar-actions .language-switcher {
        display: none; /* Ocultar para simplificar el header */
    }
}