.general-seccion-body {
    margin-bottom: 0px;
}

.carrito-contenedor {
    max-width: 1600px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.carrito-contenido {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
    padding: 0px 10px;
}

.carrito-contenido-left{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .carrito-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.carrito-boton-cuenta{
    display:inline-block; margin-top:5px; padding:5px 10px; background:#6b4b5e; color:#fff; text-decoration:none; border-radius:4px;
}

.carrito-contenedor-tabla {
    background-color: white;
    border-radius: 8px;
    box-shadow:  0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.carrito-tabla thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #6b4b5e;
}

.carrito-tabla th, .carrito-tabla td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    align-content: center;
}

/* Definir anchos de columnas */
.carrito-tabla th:nth-child(1),
.carrito-tabla td:nth-child(1) {
    width: 75px;
}

.carrito-tabla th:nth-child(2),
.carrito-tabla td:nth-child(2) {
    width: 40%;
}

.carrito-tabla th:nth-child(3),
.carrito-tabla td:nth-child(3) {
    width: 15%;
}

.carrito-tabla th:nth-child(4),
.carrito-tabla td:nth-child(4) {
    width: 15%;
}

.carrito-tabla th:nth-child(5),
.carrito-tabla td:nth-child(5) {
    width: 15%;
    text-align: center;
}

.carrito-tabla th:nth-child(6),
.carrito-tabla td:nth-child(6) {
    width: 10%;
    text-align: center;
}

.carrito-tabla th {
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 18px;
}

.carrito-contenedor-tabla-body::-webkit-scrollbar {
    width: 6px;
}

.carrito-contenedor-tabla-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.carrito-contenedor-tabla-body::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.carrito-contenedor-tabla-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.carrito-contenedor-producto {
    display: flex;
    align-items: center;
}

.carrito-imagen-producto {
    width: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.carrito-info-producto h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.carrito-info-producto p {
    color: #777;
    font-size: 14px;
}

.carrito-contenedor-controles {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrito-boton-cantidad {
    background-color: #ecf0f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.carrito-boton-cantidad:hover {
    background-color: #dde4e6;
}

.carrito-input-cantidad {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    align-items: anchor-center;
    display: flex;
    justify-content: center;
}

.carrito-boton-eliminar {
    background-color: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.carrito-precio-producto {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.carrito-subtotal-producto {
    font-weight: 600;
    color: #3498db;
    font-size: 16px;
}

.carrito-contenedor-resumen {
    background-color: white;
    border-radius: 8px;
    box-shadow:  0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: fit-content;
    border: 2px solid #e8f4fd;
    position: sticky;
    top: 180px;
}

.carrito-contenedor-resumen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 10px;
}

.carrito-fila-resumen {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.carrito-total-resumen {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
    background-color: #f8fafc;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
    color: #2c3e50;
}

.carrito-boton-pago {
    width: 100%;
    padding: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.carrito-boton-pago:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.carrito-enlace-continuar {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.carrito-enlace-continuar:hover {
    color: #2980b9;
    text-decoration: underline;
}

.carrito-contenedor-seguridad {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8f4fd;
}

.carrito-fila-seguridad {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    flex-direction: column;
}

.carrito-item-seguridad {
    display: flex;
    align-items: center;
    color: #666;
    padding-bottom: 10px;
}

.carrito-icono-seguridad {
    margin-right: 8px;
    color: #2ecc71;
    font-size: 14px;
}

.carrito-contenedor-vacio {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow:  0 4px 6px rgba(0, 0, 0, 0.1);
}

.carrito-contenedor-vacio p {
    margin-bottom: 20px;
    color: #777;
}

.carrito-boton-principal {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.carrito-boton-principal:hover {
    background-color: #2980b9;
}


.carrito-control-oculto{
    display: none;
}

/* FORMULARIO */

#carrito-seccion-datos{
    display: none;
}

.carrito-seccion { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-bottom: 20px; 
}

.carrito-grupo { display: flex; flex-direction: column; }
.carrito-grupo-completo { grid-column: 1 / -1; }

.carrito-etiqueta { margin-bottom: 8px; font-weight: 500; color: #333; font-size: 14px; }
.carrito-input, .carrito-textarea { font-family: 'Roboto', sans-serif;width: 100%; box-sizing: border-box;padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; transition: 0.3s; }
.carrito-textarea { resize: vertical; min-height: 100px; }
.carrito-input:focus, .carrito-textarea:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 2px rgba(67,97,238,0.1); }
.carrito-input:disabled { background: #f8f9fa; color: #6c757d; }
.carrito-boton { background: #4361ee; color: white; border: none; padding: 15px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; width: 100%; margin-top: 10px; }
.carrito-boton:hover { background: #3a56d4; }
.carrito-error { color: #dc3545; font-size: 12px; margin-top: 5px; display: none; }
.carrito-input.error { border-color: #dc3545; }
.carrito-input.success { border-color: #28a745; }

/* Tablet: 2 campos por fila */
@media (max-width: 1024px) {
    .carrito-seccion { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile: 1 campo por fila (100% ancho) */
@media (max-width: 768px) {
    .carrito-seccion { 
        grid-template-columns: 1fr; 
    }
}

/* FIN FORMULARIO */

/* Responsive para móviles */
@media (max-width: 768px) {
    .carrito-contenedor-tabla {
        overflow-x: auto;
    }
    
    .carrito-tabla {
        table-layout: auto;
    }
    
    .carrito-contenedor-producto {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carrito-imagen-producto {
        margin-right: 0;
    }
    
    .carrito-contenedor-resumen {
        padding: 20px;
    }
    
    .carrito-contenedor-resumen h2 {
        font-size: 20px;
    }
    
    .carrito-fila-resumen {
        font-size: 15px;
    }
    
    .carrito-fila-seguridad {
        flex-direction: column;
        gap: 10px;
    }
    
    .carrito-item-seguridad {
        justify-content: center;
    }

    #boton-paypal{
        position: fixed;
        bottom: 0px;
        z-index: 1999;
        background: #fff;
        left: 0px;
        left: 0px;
        -webkit-box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px -1px 8px -1px rgba(0,0,0,0.75);
        box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        text-align: center;
        width: 100%;
        padding: 5px 10px;
        box-sizing: border-box;
    }

     #boton-pagar{
        position: fixed;
        bottom: 0px;
        z-index: 1999;
        background: #fff;
        left: 0px;
        left: 0px;
        -webkit-box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px -1px 8px -1px rgba(0,0,0,0.75);
        box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        text-align: center;
        width: 100%;
        padding: 5px 10px;
        box-sizing: border-box;
    }

    .carrito-control-oculto{
        display: inline-flex;
    }

    .carrito-tabla th:nth-child(1), .carrito-tabla td:nth-child(1) {
        width: 20%;
    }

    .carrito-tabla th:nth-child(3), .carrito-tabla td:nth-child(3) {
        width: 25%;
    }

    .carrito-tabla th:nth-child(4), .carrito-tabla td:nth-child(4) {
        display: none;
    }

    .carrito-tabla th:nth-child(5), .carrito-tabla td:nth-child(5) {
        display: none;
    }

    .carrito-info-producto h3 {
        margin-bottom: 0px;
        font-size: 14px;
        margin-top: 0px;
    }

    .carrito-input-cantidad {
        width: 30px;
    }

    .carrito-imagen-producto {
        width: 60px;
    }
    
    .carrito-tabla th, 
    .carrito-tabla td {
        padding: 5px;
        font-size: 15px;
    }

    .carrito-contenido {
        gap: 15px;
    }
    
    .carrito-contenedor-resumen {
        padding: 15px;
    }
    
    .carrito-boton-pago {
        padding: 14px;
        font-size: 16px;
    }

    .general-seccion-body {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
    
}
