*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    --blanco: aliceblue;
    --negro: black;
    --bg-header: #ffffff;
    --bg-body: #f8f8f8;
    --text-main: #111827;
    --text-muted: #6b7280;
    --azul-principal: #48e;
    --icon-color: #ffffff;
    --card-bg: #ffffff;
}

body.dark-mode {
    --bg-header: #0f172a;
    --bg-body: #020617;
    --text-main: #f8f8f8;
    --text-muted: #9ca3af;
    --card-bg: #020617;
}

html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    box-shadow: 0px -5px 25px rgba(0,0,0,0.15);
}

.container-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 100px;
    background-color: var(--bg-header);
    transition: background-color 0.3s ease;
}

.logo h1 {
    font-size: 28px;
    color: var(--azul-principal);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-main);
}

.dark-toggle {
    background-color: var(--azul-principal);
    color: var(--text-main);
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.dark-toggle:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}

.carrito-btn{
    background-color: var(--azul-principal);
    color: var(--text-main);
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.carrito-btn:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}
.dark-toggle i {
    color: var(--blanco);
    font-size: 22px;
}

.nav {
    display: flex;
    justify-content: center;
    padding: 12px;
    background-color: var(--bg-header);
    box-shadow: 0px 0px 5px rgba(0, 0, 0,0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 90px
}

.nav-list a {
    color: var(--text-main);
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--azul-principal);
}

.dark-mobile {
    display: none;
}

/*/////////// CHECKOUT ///////////*/

main {
    flex: 1;
    padding: 40px 20px;
}

.checkout h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 35px;
}

.checkout-contenido {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.checkout-form,
.checkout-resumen {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.checkout-form h2,
.checkout-resumen h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.campo label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.campo input,
.campo textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: var(--text-main);
    background-color: var(--card-bg);
    font-size: 1rem;
    resize: none;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(68,136,238,0.2);
}

.opciones-entrega {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opcion-entrega {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid rgba(128,128,128,0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opcion-entrega:has(input:checked) {
    border-color: var(--azul-principal);
    background-color: rgba(68,136,238,0.08);
}

.opcion-entrega input {
    margin-top: 4px;
    accent-color: var(--azul-principal);
    cursor: pointer;
}

.opcion-entrega strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.opcion-entrega small {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.aviso-pago {
    background: rgba(68,136,238,0.1);
    color: var(--azul-principal);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
}

.transferencia-card {
    background: var(--bg-body);
    border: 1px solid rgba(68,136,238,0.25);
    border-radius: 12px;
    padding: 20px;
}

.transferencia-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 16px;
    font-size: 15px;
}

.transferencia-dato {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.15);
}

.transferencia-dato:last-of-type {
    border-bottom: none;
}

.transferencia-dato small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.transferencia-dato p {
    font-size: 15px;
    font-weight: 600;
    font-family: monospace;
}

.btn-copiar {
    background: transparent;
    border: 1px solid rgba(128,128,128,0.3);
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-copiar:hover {
    background: var(--card-bg);
    border-color: var(--azul-principal);
    color: var(--azul-principal);
}

.btn-copiar.copiado {
    background: rgba(34,197,94,0.15);
    border-color: #22c55e;
    color: #22c55e;
}



.transferencia-nota {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.checkout-error {
    background: rgba(224,67,63,0.1);
    color: #e0433f;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn {
    background: var(--azul-principal);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    box-shadow: 0 5px 25px rgba(30,136,229,0.35);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resumen del pedido */

.resumen-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128,128,128,0.15);
}

.resumen-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--bg-body);
    border-radius: 8px;
    padding: 4px;
}

.resumen-item-info {
    flex: 1;
}

.resumen-item-nombre {
    font-size: 14px;
    margin-bottom: 4px;
}

.resumen-item-cantidad {
    font-size: 13px;
    color: var(--text-muted);
}

.resumen-item-precio {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.resumen-totales {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(128,128,128,0.2);
}

.resumen-total-linea {
    font-size: 16px;
    margin-bottom: 6px;
}

#resumen-vacio {
    color: var(--text-muted);
    font-size: 14px;
}

#resumen-vacio a {
    color: var(--azul-principal);
}

/* Confirmación */

.modal-overlay-checkout {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-overlay-checkout[hidden] {
    display: none;
}

.checkout-confirmacion {
    max-width: 450px;
    width: 100%;
    text-align: center;
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: aparecerModal 0.25s ease;
    position: relative;
}

.btn-cerrar-confirmacion {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.btn-cerrar-confirmacion:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

@keyframes aparecerModal {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-confirmacion i {
    font-size: 50px;
    color: #22c55e;
    margin-bottom: 15px;
}

.checkout-confirmacion h2 {
    margin-bottom: 12px;
}

.checkout-confirmacion p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-whatsapp-comprobante {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-comprobante:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn-whatsapp-comprobante i {
    font-size: 20px;
    color: #fff;
    margin-bottom: 0;
}

/*/////////// FOOTER ///////////*/
/*/////////// FOOTER ///////////*/
footer.site-footer {
    background-color: #14141c;
    color: #d1d5db;
    padding-top: 50px;
}

.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 0 30px 40px;
}

.footer-marca h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-marca h2 span {
    color: #4488ee;
}

.footer-marca p {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-redes {
    display: flex;
    gap: 12px;
}

.footer-redes a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-redes a:hover {
    background: #4488ee;
    transform: translateY(-2px);
}

.footer-columna h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-columna a,
.footer-columna span {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-columna a:hover {
    color: #4488ee;
}

.footer-columna i {
    width: 16px;
    color: #4488ee;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.02em;
}

/*/////////// RESPONSIVE ///////////*/

@media (max-width: 768px) {
    .container-barra {
        padding: 15px 20px;
    }

    .checkout-contenido {
        grid-template-columns: 1fr;
    }

    .checkout h1 {
        font-size: 1.8rem;
    }

    .checkout-form,
    .checkout-resumen {
        padding: 22px;
    }

    .nav{
        display: flex;
        justify-content: center;
        padding: 12px;
    }

    .nav-list{
        display: flex;
        list-style: none;
        gap: 30px
    }

    .nav-list a{
        text-decoration: none;
        font-size: 16px;
    }

    .nav-list a:hover{
        color: var(--azul-principal);
    }

    .footer-contenido {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.footer-marca {
    grid-column: 1 / -1;
}
}

@media (max-width: 579px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        list-style: none;
        padding: 0;
    }

    .dark-desktop {
        display: none;
    }

    .acciones-header {
        position: absolute;
    }

    .dark-mobile {
        display: block;
    }

    .dark-mobile button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    main {
        padding: 25px 12px;
    }

    .checkout h1 {
        font-size: 1.5rem;
        margin-bottom: 22px;
    }

    .checkout-form,
    .checkout-resumen {
        padding: 18px;
    }

    .transferencia-card {
        padding: 15px;
    }

    .transferencia-dato p {
        font-size: 13px;
        word-break: break-all;
    }

    .opcion-entrega {
        padding: 12px;
    }

    .checkout-confirmacion {
        padding: 30px 20px;
    }

    .resumen-item img {
        width: 40px;
        height: 40px;
    }

    .footer-contenido {
    grid-template-columns: 1fr;
    padding: 0 20px 30px;
    gap: 28px;
}

footer.site-footer {
    padding-top: 35px;
}

}