/**
 * Estilos del frontend para Planes y Precios Fabrikdent
 * Basado en diseño de referencia
 * Última actualización: 26 de enero de 2026
 */

/* Variables CSS */
:root {
    --planes-primary-color: #2563eb;
    --planes-secondary-color: #1e293b;
    --planes-bg-light: #f8fafc;
    --planes-text-dark: #0f172a;
    --planes-border-radius: 16px;
    --planes-text-muted: #475569;
}

/* Aplicar fuente Poppins solo a los elementos del plugin */
.planes-fabrikdent-section,
.planes-fabrikdent-section * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Sección principal */
.planes-fabrikdent-section {
    padding: 4rem 1rem;
    background-color: var(--planes-bg-light);
    border-radius: var(--planes-border-radius);
}

/* Header */
.planes-fabrikdent-header {
    text-align: center;
    margin-bottom: 3rem;
}

.planes-fabrikdent-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 0.5rem auto !important;
    color: var(--planes-text-dark) !important;
}

.planes-fabrikdent-title-secondary {
    font-size: 21px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 0.5rem auto !important;
    color: #FF5503 !important;
}

.planes-fabrikdent-subtitle {
    color: var(--planes-text-muted) !important;
    font-size: 1rem;
    margin: 0;
}

.planes-fabrikdent-empty {
    text-align: center;
    color: var(--planes-text-muted);
    padding: 2rem;
}

/* Contenedor de tarjetas */
.planes-fabrikdent-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px; /* Valor por defecto, puede ser sobrescrito por configuración */
    margin: 0 auto;
}

/* Tarjetas de precios */
.planes-fabrikdent-card {
    background: white;
    border-radius: var(--planes-border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.planes-fabrikdent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Plan destacado */
.planes-fabrikdent-card.featured {
    border: 3px solid var(--planes-primary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .planes-fabrikdent-card.featured {
        transform: scale(1);
    }
}

/* Título de la tarjeta */
.planes-fabrikdent-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--planes-text-dark);
}

/* Precio */
.planes-fabrikdent-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    color: var(--planes-text-dark);
    line-height: 0.7;
}

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

/* Solo la cifra/valor del precio: color naranja, mismo tamaño y grosor que el precio */
.planes-fabrikdent-price .planes-fabrikdent-price-value,
.planes-fabrikdent-price-usd .planes-fabrikdent-price-value {
    color: #FF5503;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Precio en dólares - mismo estilo que precio COP */
.planes-fabrikdent-price-usd {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--planes-text-dark);
    line-height: 1.2;
}

.planes-fabrikdent-price-usd span {
    font-size: 1rem;
    color: var(--planes-text-muted);
    font-weight: 400;
}

/* Texto de ubicación del precio */
.planes-fabrikdent-price-location {
    font-size: 0.85rem;
    color: var(--planes-text-muted);
    margin: 0.3rem 0 0rem 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Notas informativas del precio */
.planes-fabrikdent-price-notes {
    margin: 0.5rem 0 1.5rem 0;
}

.planes-fabrikdent-price-note {
    font-size: 0.80rem;
    color: var(--planes-text-muted);
    margin: 0.4rem 0;
    font-style: normal;
    line-height: 1.4;
}

/* Lista de características */
.planes-fabrikdent-features {
    list-style: none;
    margin: 1rem 0 1rem 0;
    text-align: left;
    padding: 0;
    flex-grow: 1;
}

.planes-fabrikdent-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--planes-text-dark);
}

.planes-fabrikdent-features li.included {
    color: var(--planes-text-dark);
}

.planes-fabrikdent-features li.excluded {
    color: var(--planes-text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Botones */
.planes-fabrikdent-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--planes-secondary-color);
    color: white !important;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.planes-fabrikdent-btn:hover {
    background: var(--planes-primary-color);
    color: white !important;
}

.planes-fabrikdent-btn.btn-featured {
    background: var(--planes-primary-color);
}

.planes-fabrikdent-btn.btn-featured:hover {
    background: var(--planes-primary-color);
    color: white !important;
}

/* Nota sobre impuestos */
.planes-fabrikdent-tax-note {
    font-size: 0.85rem;
    color: var(--planes-text-muted);
    margin: 1.3rem 0 0rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.planes-fabrikdent-billing-note {
    font-size: 0.85rem;
    color: var(--planes-text-muted);
    margin: 1.3rem 0 0rem 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Texto de métodos de pago */
.planes-fabrikdent-payment {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem 1rem 0.5rem 1rem;
}

.planes-fabrikdent-payment-text {
    font-size: 0.9rem;
    color: var(--planes-text-muted);
    line-height: 1.6;
    margin: 0;
}

.planes-fabrikdent-payment-link {
    color: var(--planes-text-muted);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.planes-fabrikdent-payment-link:hover {
    color: var(--planes-primary-color);
    text-decoration: none;
}

/* Texto de política de privacidad */
.planes-fabrikdent-privacy {
    margin-top: 0;
    text-align: center;
    padding: 0.5rem 1rem 1.5rem 1rem;
}

.planes-fabrikdent-privacy-text {
    font-size: 0.9rem;
    color: var(--planes-text-muted);
    line-height: 1.6;
    margin: 0;
}

.planes-fabrikdent-privacy-link {
    color: var(--planes-text-muted);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.planes-fabrikdent-privacy-link:hover {
    color: var(--planes-primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .planes-fabrikdent-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .planes-fabrikdent-section {
        padding: 2rem 1rem;
    }
    
    .planes-fabrikdent-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .planes-fabrikdent-card {
        padding: 1.5rem;
    }
}
