/* --- ESTILOS ESPECÍFICOS DE PLANES --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem; /* Antes era 3rem, lo bajamos a la mitad */
}
.plan-price-container {
    margin-bottom: 1rem; /* Antes era 2rem */
}

/* Plan Destacado (El del centro) */
.service-card-visual.featured {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.05);
    position: relative;
    transform: scale(1.05);
    z-index: 2;
}

@media (max-width: 992px) {
    .service-card-visual.featured {
        transform: scale(1);
    }
}

/* Tipografía de Precios */
.plan-price-container {
    margin-bottom: 2rem;
}

.plan-category {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.5rem;
    color: white;
}

.plan-price span {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Lista de Características */
.plan-features-list {
    margin-bottom: 1.5rem; /* Antes era 2.5rem */
}

.plan-features-list li {
    color: #e5e7eb;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features-list li i {
    font-size: 0.8rem;
}

/* Botón de acción dentro de la tarjeta */
.btn-plan {
    width: 100%;
    text-align: center;
    display: block;
    padding: 1.2rem; /* Un poco más de cuerpo */
    border-radius: 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden; /* Necesario para el efecto de barrido */
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-plan:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-plan-featured {
    background: linear-gradient(135deg, #60a5fa, #2dd4bf);
    color: #0f172a; /* Texto oscuro para contrastar con el gradiente claro */
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-plan-featured:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.5);
    color: white; /* Cambiamos a blanco en hover para más potencia */
}

.btn-plan-standard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-plan-standard:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #60a5fa; /* Borde azul tecnológico */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(96, 165, 250, 0.2);
}

.billing-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem; /* Espacio reducido para móvil */
    margin: 1.5rem auto 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 1rem;
    width: fit-content;
    max-width: 95%; /* Evita que toque los bordes del móvil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap; /* Si no caben, bajan de línea en lugar de salirse */
}

.billing-btn {
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Un pelín más pequeño para ayudar al ajuste */
    white-space: nowrap; /* Evita que el texto del botón se rompa */
}

/* Ajuste extra para móviles muy pequeños (iPhone SE, etc) */
@media (max-width: 380px) {
    .billing-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    .billing-selector {
        gap: 0.3rem;
    }
}

.billing-btn.active {
    background: var(--gradient-primary); /* Tu gradiente azul */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.plan-price .period-text {
    font-size: 1rem;      /* Tamaño más pequeño */
    color: #9ca3af;       /* Color gris suave */
    font-weight: 400;     /* Menos grosor que el precio */
    margin-left: 5px;
}

.btn-plan::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%; /* Empezamos fuera a la izquierda */
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1), /* Luz sutil */
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none; /* No interfiere con el clic */
}

.btn-plan:hover::after {
    left: 100%;
    transition: all 0.6s ease;
}

/* --- ESTILOS DEL MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
}

.modal-content {
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
}

.input-group { margin-bottom: 1rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: #9ca3af; }
.input-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
}