.seccion-banner {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding: 4rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url(../images/banner-seccion.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--border-radius);
}
.titulo-banner {
    font-size: 2.8rem;
    font-family: var(--font-semibold);
    color: var(--blanco);
    letter-spacing: 0.02rem;
    text-align: center;
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.seccion-carrito {
    padding-top: var(--size-56);
    padding-bottom: var(--size-80);
}
.wrapper-detaller-carrito,
.form-cuotas {
    height: 100%;
    border-radius: var(--border-radius);
    /* border: 1px solid var(--border-color); */
    overflow: hidden;
}
.title-detaller-carrito {
    font-size: 1.125rem;
    font-family: var(--font-semibold);
    text-align: center;
    letter-spacing: 0;
    color: var(--principal);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.1rem solid var(--border-color);
    background: var(--border-color-hover);
}
.table-cart {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}
.wrapper-table {
    padding: 1.5rem;
    padding-top: 0;
    border: 1px solid #e7e7e7;
    border-radius: var(--border-);
}
.table th,
.table td {
    border-top: none;
}
.table th {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--texto);
    padding-left: 2rem;
    padding-right: 0;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}
.table.table-summary th {
    padding-left: 0;
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
.table td {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    padding-left: 2rem;
    padding-right: 0;
    vertical-align: middle;
}
.table.table-summary td {
    padding-left: 0;
}
.table.table-summary td:last-child {
    padding-top: 1.4rem;
}
.table td.remove-col {
    padding-left: 0;
}
.product-col .product {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    margin: 0;
    padding-right: 2rem;
    box-shadow: none;
}
.product-col .product-media {
    margin-bottom: 0;
}
.product-col .product-media img {
    display: block;
    width: 80px;
    border-radius: 1rem;
}
.product-col .product-title a {
    display: inline-block;
    color: var(--texto);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.table .price-col {
    color: var(--texto);
    font-weight: 400;
    font-size: 1rem;
}

/* Estilos para precios con promoción en carrito */
.precio-original-carrito {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}
.precio-promocion-carrito {
    color: #af343b;
    font-weight: bold;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}
.badge-promo-cart {
    background: #af343b;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    white-space: nowrap;
    display: inline-block;
}

.table .total-col {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 400;
    color: var(--texto);
}
.cart-bottom {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.cart-discount {
    margin-top: 1rem;
    margin-left: auto;
    width: 320px;
}
.cart-discount p {
    font-size: 0.94rem;
    color: var(--texto);
    margin-bottom: 0.5rem;
}
.form-verificar-cupon {
    height: 46px;
    padding-left: 0.5rem;
    border-radius: 1.6rem;
    position: relative;
    border: 1px solid var(--principal);
    overflow: hidden;
}
.form-verificar-cupon input {
    border: 0;
    width: 100%;
    height: 100%;
    padding-left: 1rem;
}
.btn-canjear {
    background: var(--principal);
    border-radius: 1.6rem;
    color: var(--blanco);
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 38px;
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    outline: 0;
    border: 1px solid var(--principal);
    transition: all 0.3s;
}
.btn-canjear:hover {
    color: var(--principal);
    background: var(--principal-2);
    border: 1px solid var(--principal);
}

.alert-warning {
    margin-bottom: 0;
}
.title-alert {
    font-size: 1.125rem;
    font-family: var(--font-semibold);
    text-align: left;
    letter-spacing: 0;
    color: var(--texto);
}
.list-alert {
    padding-left: 1rem;
    text-align: left;
}
.list-alert li {
    font-size: var(--size-14);
    color: var(--texto);
    margin-bottom: 0.25rem;
}
.text-danger {
    color: var(--principal);
}
/* Total */

.row-summary {
    gap: 2.5rem;
    justify-content: center;
}
.summary {
    padding: 1.6rem;
    background-color: var(--blanco);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--border-color-hover);
}
.summary.mt-1 {
    margin-top: 1rem;
}
.table-summary {
    width: 100%;
    margin-bottom: 0;
}
.summary-title {
    font-size: 1.125rem;
    font-family: var(--font-semibold);
    letter-spacing: 0;
    color: var(--principal);
    padding-bottom: 1rem;
    border-bottom: 0.1rem solid #e7e7e7;
    margin-bottom: 1.4rem;
}
.summary-subtotal {
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 0.1rem solid #e7e7e7;
}
.summary-envio {
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 0.1rem solid #e7e7e7;
}
.summary-total {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}
.summary-subtotal td {
    padding-bottom: 0.75rem;
}
.summary-envio td {
    padding: 0.75rem 0;
}
.summary-total td {
    padding-top: 0.75rem;
}
.summary-subtotal td:nth-child(1) {
    text-align: left;
}
.summary-subtotal td:nth-child(2) {
    text-align: right;
}
.summary-envio td:nth-child(1) {
    text-align: left;
    color: var(--gray-text);
    font-size: 0.9rem;
}
.summary-envio td:nth-child(2) {
    text-align: right;
    color: var(--gray-text);
    font-size: 0.9rem;
}
.summary-total td:nth-child(1) {
    text-align: left;
    color: var(--principal);
    font-size: 1.125rem;
}
.summary-total td:nth-child(2) {
    text-align: right;
    color: var(--principal);
    font-size: 1.125rem;
}
.summary-descuento td:nth-child(1) {
    text-align: left;
    color: var(--principal);
    font-size: 1.125rem;
}
.summary-descuento td:nth-child(2) {
    text-align: right;
    color: var(--principal);
    font-size: 1.125rem;
}
.lista-btn-carrito {
    padding-left: 0;
    margin-top: 1.6rem;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.btn-checkout-line {
    height: 48px;
    width: 100%;
    font-size: 1rem;
    letter-spacing: 0.02rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    border: 0;
    border-radius: 1.6rem;
    background: var(--secundario);
    color: var(--principal);
    border: 1px solid var(--secundario);
    transition: all 0.3s;
}
.btn-checkout-line:hover {
    color: var(--principal);
    background: var(--principal-2);
    border: 1px solid var(--principal);
}

/* Fin Total */

@media screen and (max-width: 1100px) {
    .titulo-banner {
        font-size: 2rem;
    }
    .summary {
        margin-top: 2rem;
    }

    .card-collapse {
        font-size: 1.2rem;
    }
    .table {
        margin-bottom: 0;
    }
    .wrapper-table {
        padding: 1.5rem;
    }
    .table thead {
        display: none;
    }
    .table tr .product-col {
        padding-bottom: 0.6rem;
    }
    .product-col {
        margin: 0 auto;
    }
    .table tr td {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        padding: 0.1rem 0;
        border-bottom: none;
    }
    .table .product-col .product {
        padding-right: 0;
        justify-content: center;
    }
    .table .product-col .product-title {
        text-align: left;
    }
    .table,
    .table tbody,
    .table tr,
    .table td {
        width: 100%;
        display: block;
    }
    .table .remove-col {
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--secundario);
    }
    .table .remove-col .card-btn-remove {
        color: red;
    }
    .table .quantity-col {
        margin: 1rem auto;
    }
    td[data-title]::before {
        content: attr(data-title);
    }
    .cart-bottom {
        justify-content: center;
    }
    .cart-discount {
        margin: 0 auto;
    }
    .cart-discount p {
        text-align: center;
    }
    .table-summary tr {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .table .product-col .product-media {
        margin-right: 1.5rem;
    }
    .form-box {
        padding: 1.6rem;
    }
    .nav.nav-pills.nav-login .nav-item .nav-link {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        font-size: 1.2rem;
    }
    .row-redes {
        gap: 1rem;
    }
    .prods-summary .table-summary {
        display: block;
    }
    .prods-summary .table-summary tr {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .prods-summary .table-summary tr td {
        display: block;
        padding-left: 0;
        padding-right: 0;
    }
    .summary-link {
        justify-content: center;
    }
}

/* ===== ESTILOS PARA SECCIONES DESPLEGABLES DEL CARRITO ===== */
/* Solo para la página del carrito */
.seccion-carrito .cart-section {
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}

.seccion-carrito .section-banner {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.seccion-carrito .section-banner:hover {
    background: #f8f9fa;
}

.seccion-carrito .section-banner.active {
    border: 2px solid #b31616;
    box-shadow: 0 2px 8px rgba(179, 22, 22, 0.1);
}

.seccion-carrito .section-banner h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #b31616;
    text-transform: uppercase;
}

.seccion-carrito .section-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seccion-carrito .item-count {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 12px;
}

.seccion-carrito .dropdown-arrow {
    font-size: 14px;
    color: #b31616;
    transition: transform 0.3s ease;
}

.seccion-carrito .dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.seccion-carrito .section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.seccion-carrito .section-content.expanded {
    max-height: 2000px;
}

.seccion-carrito .section-summary {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.seccion-carrito .section-summary h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.seccion-carrito .summary-details {
    margin-bottom: 20px;
}

.seccion-carrito .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.seccion-carrito .summary-row.total {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 12px;
}

.seccion-carrito .summary-row.discount {
    color: #28a745;
}

.seccion-carrito .btn-checkout-section {
    display: block;
    width: 100%;
    padding: 12px;
    background: #b31616;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.seccion-carrito .btn-checkout-section:hover {
    background: #c01818;
    color: white;
    text-decoration: none;
}

.seccion-carrito .payment-badge {
    margin-top: 5px;
}

.seccion-carrito .product-code {
    margin-top: 5px;
}

.seccion-carrito .product-code small {
    font-size: 12px;
    color: #666;
}

/* Estilos para el resumen general */
.seccion-carrito .summary-contado td:first-child,
.seccion-carrito .summary-cuotas td:first-child {
    font-weight: 500;
}

.seccion-carrito .summary-total td:first-child {
    font-weight: 700;
    font-size: 16px;
}

.seccion-carrito .summary-total td:last-child p {
    font-weight: 700;
    font-size: 18px;
    color: #b31616;
}

/* Estilos para la tabla del carrito */
.seccion-carrito .cart-table {
    margin-top: 20px;
}

.seccion-carrito .cart-table .table {
    margin-bottom: 0;
}

.seccion-carrito .cart-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.seccion-carrito .cart-table td {
    vertical-align: middle;
    padding: 15px 10px;
}

.seccion-carrito .product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seccion-carrito .product-media {
    flex-shrink: 0;
}

.seccion-carrito .product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.seccion-carrito .product-title a {
    color: #333;
    text-decoration: none;
}

.seccion-carrito .product-title a:hover {
    color: #b31616;
}

.seccion-carrito .summary-price {
    font-weight: 600;
    color: #b31616;
    margin: 0;
}

.seccion-carrito .card-btn-remove {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.seccion-carrito .card-btn-remove:hover {
    background: #f8f9fa;
    color: #b31616;
}

/* Estilos para la sección de cupones */
.seccion-carrito .coupon-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Estilos para el layout interno de las secciones */
.seccion-carrito .section-content .row {
    margin: 0;
}

.seccion-carrito .section-content .col-lg-8 {
    padding-right: 15px;
}

.seccion-carrito .section-content .col-lg-4 {
    padding-left: 15px;
}

/* Estilos para los resúmenes dentro de las secciones */
.seccion-carrito .section-content .summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.seccion-carrito .section-content .summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.seccion-carrito .section-content .table-summary {
    width: 100%;
    margin-bottom: 20px;
}

.seccion-carrito .section-content .table-summary td {
    padding: 8px 0;
    border: none;
    font-size: 14px;
}

.seccion-carrito .section-content .table-summary td:first-child {
    font-weight: 500;
    color: #666;
}

.seccion-carrito .section-content .summary-total td:first-child {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.seccion-carrito .section-content .summary-total td:last-child p {
    font-weight: 700;
    font-size: 18px;
    color: #b31616;
}

.seccion-carrito .section-content .lista-btn-carrito {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seccion-carrito .section-content .lista-btn-carrito li {
    margin-bottom: 10px;
}

.seccion-carrito .section-content .btn-card-outline {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #b31616;
    text-align: center;
    text-decoration: none;
    border: 1px solid #b31616;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.seccion-carrito .section-content .btn-card-outline:hover {
    background: #b31616;
    color: white;
    text-decoration: none;
}

.seccion-carrito .section-content .btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background: #b31616;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.seccion-carrito .section-content .btn-checkout:hover {
    background: #c01818;
    color: white;
    text-decoration: none;
}

/* Responsive para secciones desplegables */
@media (max-width: 768px) {
    .seccion-carrito .section-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .seccion-carrito .section-controls {
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }

    .seccion-carrito .section-banner h2 {
        font-size: 16px;
    }

    .seccion-carrito .section-content .col-lg-8,
    .seccion-carrito .section-content .col-lg-4 {
        padding: 0;
        margin-bottom: 20px;
    }

    .seccion-carrito .section-content .summary {
        margin-bottom: 15px;
    }

    .seccion-carrito .product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .seccion-carrito .product-media {
        align-self: center;
    }

    .seccion-carrito .cart-table .table {
        font-size: 12px;
    }

    .seccion-carrito .cart-table th,
    .seccion-carrito .cart-table td {
        padding: 8px 5px;
    }
}
