:root {
    --primary: #1a3a5f;
    --secondary: #3498db;
    --accent: #27ae60;
    --text-dark: #2c3e50;
    --light: #f4f7f9;
    --white: #ffffff;
    --coming-soon: #f39c12;
    --available: #27ae60;
    --form-bg: #edf2f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

strong {
    font-weight: 600;
    color: var(--primary);
}

/* --- NAVEGACIÓN --- */
nav {
    background: #fdfdfd;
    padding: 0 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 90px;
}

.logo {
    background: #ffffff;
    width: 550px;
    height: 180px;
    border-radius: 0 0 500px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    padding-left: 15px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.logo:hover {
    height: 190px;
    width: 570px;
}

.logo img {
    height: 78%;
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    z-index: 1001;
    padding-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 160px;
    }

    nav {
        height: auto;
        flex-direction: column;
        padding: 0;
    }

    .logo {
        position: relative;
        width: 100%;
        height: 100px;
        border-radius: 0;
        justify-content: center;
        padding-left: 0;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .logo:hover {
        height: 100px;
        width: 100%;
    }

    .nav-links {
        padding: 15px 5%;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* --- HERO SECCIÓN PRECIOS --- */
.hero-pricing {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 100px 5% 60px;
    text-align: center;
}

.hero-pricing h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-pricing p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
    text-wrap: balance;
}

/* --- CONTROLES DE PRECIO --- */
.pricing-controls {
    text-align: center;
    padding: 40px 5% 20px;
    background: var(--light);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* --- TABLA DE PRECIOS --- */
.pricing-section {
    padding: 40px 5% 40px;
    background: var(--light);
}

.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.plan-name {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-users {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.period {
    font-size: 1rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.billing-note {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 25px;
    min-height: 20px;
}

.extra-users-box {
    background: var(--form-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    margin-top: auto;
}

.extra-users-box label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.extra-cost {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: block;
    margin-top: 8px;
}

.btn-plan {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    width: 100%;
    display: inline-block;
    cursor: pointer;
}

.btn-plan:hover {
    background: var(--secondary);
    color: white;
}

/* --- MODAL DE CONTACTO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.contact-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact-section {
    display: none; /* Ya no se usa como sección, sino dentro de la modal */
}

/* --- SECCIÓN ENTERPRISE & NOTAS --- */
.enterprise-section {
    max-width: 900px;
    margin: 40px auto 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e1e8ed;
}

.enterprise-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.enterprise-info p {
    color: #555;
}

.btn-enterprise {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
}

.btn-enterprise:hover {
    background: #122b46;
}

.pricing-notes {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.pricing-notes p {
    margin-bottom: 10px;
}

.pricing-notes strong {
    display: inline;
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: var(--light);
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #219150;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

@media (max-width: 768px) {
    .enterprise-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .contact-container {
        padding: 30px;
    }
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px 5%;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

footer strong {
    color: #ffffff !important;
    font-weight: 700;
}
