/* public/assets/css/planes.css */

/* ====== Hero planes ====== */
.planes-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background: linear-gradient(150deg, #0a1628 0%, #0e1c38 40%, #152448 80%, #1a2e52 100%);
    color: #f0eee8;
    position: relative;
    overflow: hidden;
}

.planes-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,135,26,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.planes-hero h1 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem;
    color: #f0eee8;
    line-height: 1.15;
}

.planes-hero p {
    font-size: 1.05rem;
    color: rgba(240,238,232,0.72);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ====== Flash alerts ====== */
.alert {
    padding: 0.8rem 1.1rem;
    border-radius: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.alert-error {
    background-color: #fef0f0;
    border: 1px solid #f5c0c0;
    color: #8b1e1e;
}

.alert-success {
    background-color: #e8f8ef;
    border: 1px solid #b6e8d1;
    color: #145c38;
}

/* ====== Plans grid section ====== */
.planes-grid-section {
    padding: 3.5rem 0 5rem;
    background: #f5f2ed;
}

.planes-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .planes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (min-width: 1100px) {
    .planes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
    }
}

/* ====== Plan card ====== */
.plan-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2.1rem 1.85rem;
    border: 1.5px solid #ddd8d0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(20,20,40,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(20,20,40,0.11);
    border-color: #c4bfb6;
}

.plan-card.destacado {
    border-color: #c8871a;
    box-shadow: 0 8px 32px rgba(200,135,26,0.18);
    transform: scale(1.02);
    background: linear-gradient(to bottom, #fffdf8, #ffffff);
}

.plan-card.destacado:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 18px 50px rgba(200,135,26,0.22);
}

/* Badge "Más popular" */
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #c8871a, #a8720f);
    color: #fff;
    padding: 0.32rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(200,135,26,0.38);
}

/* Plan header */
.plan-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #edeae5;
}

.plan-header h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
    letter-spacing: -0.02em;
    color: #1a1a2a;
}

.plan-precio {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
}

.precio-cantidad {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2.85rem;
    font-weight: 700;
    color: #1a1a2a;
    line-height: 1;
    letter-spacing: -0.04em;
}

.precio-periodo {
    font-size: 1rem;
    color: #5c5e72;
    font-weight: 500;
}

.plan-precio-detalle {
    font-size: 0.82rem;
    color: #9196ab;
    margin-top: 0.35rem;
}

.plan-ahorro {
    display: inline-block;
    background: linear-gradient(90deg, #e8f8ef, #b6e8d1);
    color: #145c38;
    padding: 0.22rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.65rem;
    letter-spacing: 0.01em;
}

/* Features list */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.85rem;
    flex: 1;
}

.plan-features li {
    padding: 0.55rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2c2e3e;
    border-bottom: 1px solid #f5f2ed;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    position: absolute;
    left: 0;
    top: 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-included::before {
    content: "\2713";
    color: #1a7a4a;
}

.feature-excluded::before {
    content: "\2717";
    color: #c8c4bc;
}

.feature-excluded {
    color: #9196ab;
}

/* Plan button */
.plan-action {
    text-align: center;
}

.plan-action form {
    display: block;
}

.plan-action .btn-primary,
.plan-action .btn-outline {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    letter-spacing: 0.01em;
}

/* Gold CTA for featured plan */
.plan-card.destacado .plan-action .btn-primary {
    background: #c8871a;
    box-shadow: 0 3px 12px rgba(200,135,26,0.38);
}

.plan-card.destacado .plan-action .btn-primary:hover {
    background: #a8720f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200,135,26,0.45);
}

.plan-action .btn-primary:hover {
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid #ddd8d0;
    background-color: transparent;
    color: #5c5e72;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    border-radius: 9999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    background-color: #f5f2ed;
    border-color: #a09890;
    color: #1a1a2a;
}

.btn-outline.disabled {
    cursor: default;
    opacity: 0.6;
    pointer-events: none;
}

/* ====== FAQ Section ====== */
.planes-garantia {
    padding: 4.5rem 0 5.5rem;
    background-color: #ffffff;
}

.planes-garantia h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    text-align: center;
    margin-bottom: 2.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1a1a2a;
}

.faq-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    padding: 1.6rem;
    background: #faf8f5;
    border-radius: 1rem;
    border: 1px solid #edeae5;
    transition: border-color 0.18s;
}

.faq-item:hover {
    border-color: #d4b87a;
}

.faq-item h3 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 0.55rem;
    color: #1a1a2a;
    letter-spacing: -0.01em;
}

.faq-item p {
    font-size: 0.875rem;
    color: #5c5e72;
    line-height: 1.7;
    margin: 0;
}

/* ====== Active plan (premium user) ====== */
.planes-actual {
    padding: 3.5rem 0 4.5rem;
    background: #f5f2ed;
}

.plan-activo-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 2px solid #c8871a;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(200,135,26,0.12);
}

.plan-activo-badge {
    display: inline-block;
    background: linear-gradient(90deg, #c8871a, #a8720f);
    color: #fff;
    padding: 0.3rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    letter-spacing: 0.03em;
}

.plan-activo-card h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a2a;
}

.plan-renovacion {
    color: #5c5e72;
    font-size: 0.9rem;
    margin-bottom: 1.85rem;
}

.plan-activo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.plan-activo-nota {
    font-size: 0.78rem;
    color: #9196ab;
    margin-top: 1rem;
}

/* ====== Payment result page ====== */
.pago-resultado {
    padding: 5.5rem 0;
}

.resultado-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    border: 1.5px solid #ddd8d0;
    box-shadow: 0 4px 20px rgba(20,20,40,0.09);
}

.resultado-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-weight: 700;
}

.resultado-exito .resultado-icono {
    background-color: #e8f8ef;
    color: #1a7a4a;
}

.resultado-cancelado .resultado-icono {
    background-color: #fef0f0;
    color: #c42b2b;
}

.resultado-card h1 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    color: #1a1a2a;
}

.resultado-card p {
    color: #5c5e72;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.resultado-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .planes-hero h1 {
        font-size: 1.9rem;
    }

    .plan-card.destacado {
        transform: none;
    }

    .plan-card.destacado:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 640px) {
    .precio-cantidad {
        font-size: 2.35rem;
    }

    .plan-card {
        padding: 1.6rem 1.35rem;
    }

    .resultado-card {
        padding: 2.25rem 1.35rem;
    }

    .plan-activo-card {
        padding: 1.85rem 1.35rem;
    }
}

/* ── Banner garantía 7 días ── */
.planes-garantia-banner {
    padding: 1.25rem 0;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
    border-bottom: 1px solid #bbf7d0;
}

.garantia-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.garantia-banner__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garantia-banner__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: #166534;
}

.garantia-banner__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #14532d;
}

.garantia-banner__text a {
    color: #16a34a;
    text-decoration: underline;
    font-size: 0.83rem;
}

@media (max-width: 480px) {
    .garantia-banner {
        gap: 0.75rem;
    }
    .garantia-banner__icon {
        width: 40px;
        height: 40px;
    }
}
