/* --- SICAS Lite: Pricing UI Styles (Final Polish) --- */

.pricing-section {
    padding: 2rem 5%;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.pricing-selector-title {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selection-guidance {
    text-align: center;
    color: #64748B;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1.5rem;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-br {
    display: none;
}


.pricing-cards {
    display: flex;
    width: 100%;
    max-width: 1030px; /* From Figma: width 1030px */
    padding: 20px 0; /* From Figma */
    justify-content: center;
    align-items: stretch;
    gap: 32px; /* From Figma */
    margin: 0 auto 1rem auto; /* Reduced from 4rem to 1rem to close the gap */
}

.inclusions-wrapper {
    width: 100%;
    max-width: 1030px;
    margin: 0 auto 3rem auto !important;
}

.hero-section {
    padding-bottom: 0.5rem !important;
}

/* --- New Standard Benefits Section --- */
.standard-benefits-section {
    padding: 0.5rem 0 0 0;
    text-align: center;
}

.benefits-divider {
    width: 100%;
    max-width: 1030px;
    height: 1px;
    background: linear-gradient(to right, transparent, #E2E8F0, transparent);
    margin: 2.5rem auto 0;
    opacity: 0.8;
}


.benefits-horizontal-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefit-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.benefit-tag svg, .benefit-tag img {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.benefit-tag:hover {
    transform: translateY(-2px);
    color: var(--navy);
}

.benefit-tag:hover svg, .benefit-tag:hover img {
    opacity: 1;
}

/* --- Horizontal Variable Benefits --- */
.horizontal-var-benefits {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 1rem 0;
}

.horizontal-var-benefits .inclusion-item {
    margin: 0 !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}


.plan-card {
    background: var(--white);
    border-radius: 24px;
    padding: 34px 30px; /* Exact values from Figma */
    border: 1.5px solid rgba(0, 0, 0, 0.05); /* Standard thin border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* From Figma */
    gap: 0; /* Let flex layout the inner elements, we use margins currently */
    cursor: pointer;
    min-height: 330px; 
    flex: 1 0 0; /* From Figma: distribute available width equally */
    width: 100%;
}

.plan-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; color: #1E293B; transition: color 0.3s ease; }
.billing-cycle-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1.5rem; display: block; }
.plan-price-container { margin-bottom: 0.75rem; display: flex; align-items: baseline; gap: 0.25rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: #1E293B; }
.plan-currency { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

/* Uniform Selected State (Navy Dark) with THICK Cyan Border */
.plan-card.selected {
    background: #0F172A;
    border: 3px solid #38BDF8; /* Thicker border to stand out */
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15); /* Discreet 3D shadow, not "staining" the screen */
    z-index: 2;
}

/* Title turns cyan when selected to match the thick border */
.plan-card.selected .plan-name { color: #38BDF8; }
.plan-card.selected .plan-price { color: var(--white); }
.plan-card.selected .billing-cycle-label { color: #94A3B8; }
.plan-card.selected .plan-divider { background-color: rgba(255, 255, 255, 0.1); }

/* Recommended Label */
.pill-recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0EA5E9, #38BDF8);
    color: #0F172A;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

/* Base Button UI */
.btn-select-plan {
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    background: transparent;
    color: #475569;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

/* Outline state for the primary recommended plan (pre-selection) */
.btn-select-plan.primary-outline {
    border-color: #38BDF8;
    color: #38BDF8;
    background-color: var(--white);
}

/* Solid state when a plan is actually selected */
.btn-select-plan.primary {
    background: linear-gradient(135deg, #0EA5E9, #38BDF8);
    color: #0F172A;
    border: none;
}

/* SUBTLE Waves (Ripple) of EXACTLY 10px using box-shadow */
.btn-select-plan.waves {
    animation: ripple-shadow 2.5s infinite;
}

@keyframes ripple-shadow {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } /* Expands exactly 10px and fades out */
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.plan-divider { height: 1px; width: 100%; background: #E2E8F0; margin: 1.5rem 0; }

/* Discrete MSI Info matching image */
.promo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #38BDF8; /* Cyan color matching the image */
    font-size: 0.8rem; /* Smaller, matching billing-cycle-label scale */
    font-weight: 400; /* Finer text as requested */
    margin-bottom: 1.5rem;
    background: transparent;
    border: none;
    padding: 0;
}

.promo-info svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .pricing-cards { 
        flex-direction: column; 
        align-items: center; 
        padding: 20px 5%; 
    }
    .plan-card { min-height: auto; width: 100%; max-width: 450px; }

    .inclusions-wrapper {
        padding: 0 5%;
    }

    .standard-benefits-section {
        padding: 0.5rem 5% 0 5%;
    }

    .mobile-br {
        display: block;
    }

    .horizontal-var-benefits {
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .horizontal-var-benefits .inclusion-item {
        width: 100%;
        justify-content: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #F1F5F9;
    }

    .horizontal-var-benefits .inclusion-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .horizontal-var-benefits .incl-divider {
        display: none;
    }

    .benefits-horizontal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .benefits-horizontal-grid .benefit-tag:last-child {
        grid-column: span 2;
        justify-self: center;
    }

    .payment-methods {
        flex-direction: column;
        gap: 1rem;
        padding: 0 5%;
        margin: 2rem 0;
    }

    .payment-icons-row {
        gap: 20px;
    }

    .payment-icon-wrapper img {
        height: 32px;
    }

    .payment-icon-wrapper::after {
        display: none; /* Desactivar tooltips en móvil para evitar toques accidentales */
    }
}

/* --- Estilos Globales de Métodos de Pago --- */
.payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.payment-icons-row {
    display: flex;
    align-items: center;
    gap: 32px; /* Mayor separación */
}

.payment-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.payment-icon-wrapper img {
    height: 38px; /* ~20% más pequeño que los 48px originales */
    width: auto;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.payment-icon-wrapper:hover img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Tooltip estético */
.payment-icon-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0F172A;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 10;
}

.payment-icon-wrapper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    border: 6px solid transparent;
    border-top-color: #0F172A;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.payment-icon-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

.payment-icon-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.iva-notice {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 0.5rem;
    font-weight: 400;
}


