/* Variables Base */
:root {
    --primary: #6b21a8;
    --secondary: #9333ea;
    --dark: #111827;
    --light: #f3f4f6;
    --white: #ffffff;
    --text-muted: #4b5563;
    --accent-light: #f5f3ff;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}


dialog {
    margin: auto;
    padding: 2.5rem;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    background-color: var(--white);
}

dialog::backdrop {
    background: rgba(17, 24, 39, 0.6); 
    backdrop-filter: blur(4px); 
}

dialog h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

dialog p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Resaltado para el número de teléfono */
dialog .telefono {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0;
    letter-spacing: 0.5px;
}


dialog .btn {
    width: 100%;
    margin-top: 0.5rem;
}


/* Navegación */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 5%;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: #e5e7eb;
}

/* Grupo de botones */
.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--white);
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--light);
    border-color: var(--light);
    transform: translateY(-2px);
}

.btn-header {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

/* Sección de Beneficios Cortos */
.benefits {
    background-color: var(--white);
    padding: 3rem 5%;
    border-bottom: 1px solid #e5e7eb;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Servicios / Pricing */
.services {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: var(--dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Tarjetas de Pricing */
.card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card.popular {
    border-top: 5px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: scale(1.03);
    background-color: var(--accent-light);
}

.card.popular:hover {
    transform: scale(1.03) translateY(-5px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    text-align: center;
}

.plan-desc {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.price {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.card.custom .price {
    font-size: 2rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

.features li strong {
    color: var(--dark);
}

.btn-card {
    display: block;
    text-align: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: auto;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Condiciones */
.conditions {
    margin-top: 4rem;
    background-color: var(--accent-light);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 4px solid var(--primary);
}

.conditions p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 5%;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 4rem 5%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .card.popular {
        transform: scale(1);
    }
    
    .card.popular:hover {
        transform: translateY(-5px);
    }
}

