/* =========================================
   EXTRACTA — Subscriptions / Plans
   ========================================= */

.plans-page {
    background-color: var(--color-bg);
    min-height: calc(100vh - 64px);
    padding: 60px 20px;
}

.plans-header {
    text-align: center;
    margin-bottom: 48px;
}

.plans-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.plans-header p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Grid de planes --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Tarjeta de plan --- */
.plan-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.plan-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

/* Plan destacado */
.plan-card.featured {
    border-color: var(--color-orange);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.15);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
}

.plan-description {
    font-size: 0.825rem;
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Lista de features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan-features li {
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: var(--color-green);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Botón dentro de la card */
.btn-plan {
    width: 100%;
    padding: 13px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    text-align: center;
}

.btn-plan:active { transform: scale(0.98); }

.btn-plan-primary {
    background-color: var(--color-orange);
    color: #ffffff;
}
.btn-plan-primary:hover { background-color: var(--color-orange-dark); }

.btn-plan-outline {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}
.btn-plan-outline:hover { border-color: #9ca3af; }

.btn-plan-current {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: default;
    border-color: transparent;
}

/* --- Resumen del plan seleccionado --- */
.plan-summary-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.plan-summary-card .plan-info .label {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 4px;
}

.plan-summary-card .plan-info .name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
}

.plan-summary-card .plan-info .price {
    font-size: 0.875rem;
    color: #6b7280;
}

.plan-summary-card .plan-price-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-orange);
    white-space: nowrap;
}

/* Sugerencia de upgrade */
.upgrade-suggestion {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.825rem;
    color: #92400e;
}

.upgrade-suggestion a {
    color: var(--color-orange);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.upgrade-suggestion a:hover { text-decoration: underline; }

/* --- Métodos de pago --- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

/* Indicador de selección */
.payment-option-content::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: border-color 0.2s, background-color 0.2s;
}

.payment-option input[type="radio"]:checked + .payment-option-content::before {
    border-color: var(--color-orange);
    background-color: var(--color-orange);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: var(--color-orange);
    background-color: rgba(245, 166, 35, 0.04);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.payment-option-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    overflow: hidden; /* 🔥 clave */
}

.payment-option-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 evita deformación */
}

.payment-option-logo.nequi          { background-color: #7B2FF7; }
.payment-option-logo.daviplata      { background-color: #E8000D; }
.payment-option-logo.breb  { background-color: #1d4ed8; }

.payment-option-content strong {
    display: block;
    font-size: 0.875rem;
    color: #111827;
    font-weight: 700;
}

.payment-option-content span {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* --- Input file --- */
.file-input-wrap input[type="file"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #6b7280;
    background-color: #f9fafb;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.file-input-wrap input[type="file"]:hover {
    border-color: var(--color-orange);
}

.file-hint-text {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 6px;
    display: block;
}