.hidden {
    display: none !important;
}

/* Ambos grids iguales */
#pantallaCarrito,
#pantallaFormulario {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.condiciones .accordion-button {
    font-weight: 600;
    background-color: #f8f9fa;
}

.condiciones .accordion-body p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
/* Grid interno del formulario */
.formulario-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}
    .formulario-grid h5 {
        margin-bottom: 0 !important;
    }
.ocultarFacturaElectronica{
    display:none;
}
.label-optional {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: #eef2f7;
    color: #6b7280;
    letter-spacing: .3px;
    text-transform: uppercase;
}
/* Mensajes de error */
.msg-error {
    display: none;
    color: red;
    text-align: center;
    margin-top: 10px;
}
.tituloContainer {
    text-align: center;
    padding: 2rem 1rem;
}

/* TITULO */
h1 {
    margin-bottom: 30px;
    color: #2d2d6a;
}

/* TABLA */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;

}

th, td {
    padding: 18px;
    text-align: left;

}
td {

    color: black !important;
}


th {
    background: #f4f4f8;
    font-weight: 600;
 
}

/* CANTIDAD */
.qty-box {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
}



/* CONDICIONES */
.condiciones {
    background: white;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.7rem;
    color:black !important;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;

}

    .check input {
        width: 22px;
        height: 22px;
    }

/* CARD DERECHA */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.07);

}

.detalle-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    color: black !important;
}

.total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    color: black !important;
}

/* BOTÓN */
.btn-comprar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--azulOscuro);
    color: white;
    padding: 14px 22px;
    border-radius: 30px;
    margin-top: 25px;
    cursor: pointer;
    border: none;
    justify-content:center;
}
/* BOTÓN */
.btn-outline-comprar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--azulOscuro);
    padding: 14px 22px;
    border-radius: 30px;
    margin-top: 25px;
    cursor: pointer;
    border: 2px solid var(--azulOscuro);
    justify-content: center;
}
    .btn-outline-comprar:hover {
        background: var(--azulOscuro);
        color: white;
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 900px) {
        #pantallaCarrito, #pantallaFormulario {
        grid-template-columns: 1fr;
    }

    .right {
        margin-top: 20px;
    }

    th, td {
        padding: 14px;
    }
}
.placetopay-info {
    text-align: center;
    margin: 0px 0;
    font-size: 0.85rem;
    color: #555;
}

.placetopay-logo {
    max-width: 140px;

}

.placetopay-text {
    margin: 0;
}

.modal-legal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.modal-body {
    overflow-y: auto;
    max-height: 60vh;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}


@media (max-width: 600px) {
    
    .qty-box {
        width: 55px;
    }

   
}
@media (max-width: 600px) {

    /* Encabezados de tabla */
    table thead th {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Valores de la tabla */
    table tbody td {
        font-size: 0.75rem;
    }

    /* Inputs dentro de la tabla */
    table tbody input {
        font-size: 0.75rem;
    }
}
