.plan-wrapper {
    cursor: pointer;
    display: block;
}

.plan-wrapper input {
    display: none;
}

/* CARD BASE */
.plan-card {
    border-radius: 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #ffffff;
}

/* HOVER */
.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: rgba(25,135,84,0.25);
}

/* SELECCIONADO (MUY IMPORTANTE) */
.plan-wrapper input:checked + .plan-card {
    border: 2px solid #198754;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 60px rgba(25,135,84,0.18);
}

/* EFECTO “GLASS LIGHT” SUTIL */
.plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(25,135,84,0.06),
        transparent 60%
    );
    pointer-events: none;
}

/* BADGE MÁS VENDIDO */
.popular-badge {
    position: absolute;
    top: 14px;
    right: -38px;
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    padding: 6px 45px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(35deg);
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(25,135,84,0.25);
}

/* FOOTER MEJORADO */
.select-footer {
    background: #f8fafc;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #eef2f7;
}


.whatsapp-footer {
    background: #0bb10b;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border-top: 1px solid #eef2f7;
}

/* HIGHLIGHT ICONO CHECK (OPCIONAL FUTURO) */
.plan-wrapper input:checked + .plan-card::after {
    content: "✓";
    position: absolute;
    top: 12px;
    left: 12px;
    background: #198754;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.payment-btn {
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(25,135,84,0.2);
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(25,135,84,0.3);
}

.payment-btn:active {
    transform: scale(0.98);
}
.payment-icon {
    height: 38px;
    object-fit: contain;
}

/* CONTENEDOR GENERAL */
.payment-card {
    cursor: pointer;
    display: block;
}

/* OCULTAR RADIO */
.payment-card input[type="radio"] {
    display: none;
}

/* CARD BASE */
.payment-box {
    border-radius: 18px;
    transition: all 0.25s ease;
    background: #ffffff;
    border: 2px solid transparent;
    position: relative;
}

/* ICONOS */
.payment-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

/* HOVER EFECTO */
.payment-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #e9ecef;
}

.payment-box:hover .payment-icon {
    transform: scale(1.1);
}

/* SELECCIONADO */
.payment-card input:checked + .payment-box {
    border: 2px solid #16a34a;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

/* CHECK ICON */
.payment-card input:checked + .payment-box::after {
    content: "✔";
    position: absolute;
    top: 10px;
    right: 12px;
    background: #16a34a;
    color: white;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 50%;
}

/* TEXTO */
.payment-box .fw-semibold {
    font-size: 16px;
}

.payment-box small {
    font-size: 13px;
}

/* BOTÓN PRO */
.payment-btn {
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, #15803d, #16a34a);
}

.payment-btn:active {
    transform: scale(0.97);
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .payment-box {
        padding: 20px 10px;
    }
}
/* CONTENEDOR */
.hwid-group {
    border: 2px dashed #28a745;
    border-radius: 10px;
    background: #f8fff9;
    transition: all 0.2s ease;
}

/* QUITAR BORDES INTERNOS DE BOOTSTRAP */
.hwid-group .form-control,
.hwid-group .input-group-text,
.hwid-group .btn {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* INPUT */
#hwidInput {
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ICONO */
.hwid-group .input-group-text {
    opacity: 0.7;
}

/* BOTÓN PEGAR */
#btnPaste {
    transition: all 0.2s ease;
}

#btnPaste:hover {
    background: #e9f7ef;
}

/* HOVER GENERAL */
.hwid-group:hover {
    border-color: #20c997;
    background: #f1fff4;
}

/* FOCUS (cuando escriben o pegan) */
.hwid-group:focus-within {
    border-style: solid;
    border-color: #198754;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
}

/* VALIDACIÓN */
#hwidInput:valid {
    color: #198754;
}

#hwidInput:invalid:not(:placeholder-shown) {
    color: #dc3545;
}

.input-group .form-control.is-invalid {
    z-index: 2;
}

.input-group .form-control.is-valid {
    z-index: 2;
}
.text-error {
    color: #dc3545 !important; /* rojo bootstrap */
}
.is-invalid {
    color: #dc3545;
}
#hwidInput.is-invalid {
    color: #dc3545;
    font-weight: 500;
}

#hwidInput.is-valid {
    color: #198754;
    font-weight: 500;
}
