@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,100..1000&display=swap");

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #111111;
    color: #f5f5f5;
    font-family: "Google Sans Flex", Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid #333333;
}

header h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 40px;
}

main h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

article {
    margin-top: 40px;
    max-width: 320px;
    padding: 25px;
    background-color: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 8px;
}

article h3 {
    margin-top: 0;
}

button {
    padding: 12px 20px;
    background-color: #f5f5f5;
    color: #111111;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

article img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 6px;
}

.productos-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    justify-content: start;
}

/* Ajustes para celulares */

@media (max-width: 600px) {
    header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    header h1 {
        margin: 0;
        font-size: 28px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    nav a {
        font-size: 14px;
        white-space: nowrap;
    }

    main {
        padding: 40px 20px;
    }

    article {
        max-width: 100%;
        width: 100%;
    }
}

/*
  =========================================================
    CHECKOUT
    =========================================================
 */

#resumenPedido {
    max-width: 620px;
    margin-top: 35px;
    margin-bottom: 45px;
    padding: 24px;
    background-color: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 8px;
}

#resumenPedido h3 {
    margin-top: 0;
}

.resumen-producto {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333333;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    font-size: 18px;
}

/* Formulario */

#formCheckout {
    display: flex;
    flex-direction: column;
    max-width: 620px;
    gap: 8px;
}

#formCheckout h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

#formCheckout label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #d8d8d8;
}

#formCheckout input,
#formCheckout textarea {
    width: 100%;
    padding: 12px 14px;
    background: #171717;
    color: #f5f5f5;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#formCheckout textarea {
    resize: vertical;
    min-height: 100px;
}

#formCheckout button[type="submit"] {
    align-self: flex-start;
    margin-top: 25px;
    padding: 14px 28px;
}

/*
  =========================================================
    CHECKOUT - CELULAR
    =========================================================
 */

@media (max-width: 600px) {
    #resumenPedido {
        max-width: 100%;
        padding: 18px;
        margin-top: 25px;
        margin-bottom: 35px;
    }

    .resumen-producto {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .resumen-total {
        font-size: 17px;
    }

    #formCheckout {
        max-width: 100%;
    }

    #formCheckout input,
    #formCheckout textarea {
        font-size: 16px;
    }

    #formCheckout button[type="submit"] {
        width: 100%;
    }
}

/*
  =========================================================
    ACCIONES DESPUÉS DE AGREGAR AL CARRITO
    =========================================================
 */

#accionesPostAgregar {
    margin-top: 16px;
    gap: 10px;
    flex-wrap: wrap;
}

#accionesPostAgregar a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* Botón secundario */

#accionesPostAgregar a:first-child {
    background-color: transparent;
    color: #f5f5f5;
    border: 1px solid #555555;
}

/* Botón principal */

#accionesPostAgregar a:last-child {
    background-color: #f5f5f5;
    color: #111111;
    border: 1px solid #f5f5f5;
}

/* Celular */

@media (max-width: 600px) {
    #accionesPostAgregar {
        flex-direction: column;
    }

    #accionesPostAgregar a {
        width: 100%;
        text-align: center;
    }
}

button:disabled {
    opacity: 0.65;
    cursor: default;
}

/* Estado de stock */

.estado-stock {
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
}

article .estado-stock {
    min-height: 34px;
}

/* Botón de consulta por WhatsApp */

.boton-whatsapp {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 18px;
    background-color: #f5f5f5;
    color: #111111;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.boton-whatsapp:hover {
    opacity: 0.85;
}

/* =========================================================
   UTILIDADES DE PAGO
   ========================================================= */

.boton-volver {
    display: inline-block;
    padding: 12px 18px;
    background-color: #f5f5f5;
    color: #111111;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.boton-volver:hover {
    opacity: 0.85;
}

#datosComprador:empty,
#accionesPago:empty {
    display: none;
}

/*
  =========================================================
    FICHA INDIVIDUAL DE PRODUCTO
    =========================================================
 */

.detalle-producto {
    max-width: 850px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 40px;
    align-items: start;
    padding: 24px;
    background-color: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 8px;
    margin-top: 0;
}

/* Imagen completa del producto */

.imagen-detalle-producto {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Información */

.info-producto {
    padding-top: 4px;
}

.info-producto h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.15;
}

.info-producto p {
    line-height: 1.5;
}

/* Precio */

.precio-producto {
    margin: 22px 0 18px;
    font-size: 22px;
    font-weight: bold;
}

/* Disponibilidad */

.info-producto .estado-stock {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Botón agregar */

#agregarCarrito {
    margin-top: 20px;
    padding: 13px 20px;
}

/* WhatsApp */

.info-producto .boton-whatsapp {
    margin-top: 18px;
}

/*
  =========================================================
    FICHA DE PRODUCTO - CELULAR
    =========================================================
 */

@media (max-width: 600px) {
    .detalle-producto {
        display: block;
        max-width: 100%;
        padding: 16px;
    }

    .imagen-detalle-producto {
        width: 100%;
        margin-bottom: 24px;
    }

    .info-producto {
        padding: 0;
    }

    .info-producto h2 {
        font-size: 28px;
    }

    .precio-producto {
        font-size: 20px;
    }

    #agregarCarrito {
        width: 100%;
    }

    .boton-whatsapp {
        width: 100%;
        text-align: center;
    }
}

/* Imagen principal de la ficha: recorte cuadrado */

.detalle-producto .imagen-detalle-producto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/*
  =========================================================
    CATÁLOGO - IMAGEN CLICKEABLE + HOVER
    =========================================================
 */

.contenedor-imagen-producto {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.contenedor-imagen-producto .imagen-producto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease,
        filter 0.25s ease;
}

/* Nombre clickeable */

.nombre-producto {
    cursor: pointer;
}

/* Efecto solamente en dispositivos con mouse */

@media (hover: hover) and (pointer: fine) {
    .contenedor-imagen-producto:hover .imagen-producto {
        transform: scale(1.025);
        filter: brightness(0.78);
    }

}

/*
  =========================================================
    CARRUSEL DEL CATÁLOGO
    =========================================================
 */

/* Flechas */

.flecha-catalogo {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.flecha-catalogo-izquierda {
    left: 12px;
}

.flecha-catalogo-derecha {
    right: 12px;
}

/* Solamente aparecen con mouse */

@media (hover: hover) and (pointer: fine) {
    .contenedor-imagen-producto:hover
    .flecha-catalogo {
        opacity: 1;
    }

    .flecha-catalogo:hover {
        background: rgba(30, 30, 30, 0.92);
        transform: translateY(-50%)
            scale(1.06);
    }
}

/*
  En pantallas táctiles no mostramos flechas.
    Se cambia la foto deslizando.
 */

@media (hover: none) {
    .flecha-catalogo {
        display: none;
    }
}

/*
  =========================================================
    CATÁLOGO - 4 PRODUCTOS POR FILA
    =========================================================
 */

.productos-grid article {
    width: 100%;
    max-width: none;
    margin-top: 0;
    box-sizing: border-box;
    transition: transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

/* Tablet */

@media (max-width: 1000px) {
    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/*
  =========================================================
    MICROINTERACCIONES - TEXTOS Y NAVEGACIÓN
    =========================================================
 */

@media (hover: hover) and (pointer: fine) {
    /* Links del menú */

    .nav-escritorio a {
        position: relative;
        display: inline-block;
        transition: opacity 0.2s ease,
            transform 0.2s ease;
    }

    .nav-escritorio a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.22s ease;
    }

    .nav-escritorio a:hover {
        opacity: 0.78;
        transform: translateY(-1px);
    }

    .nav-escritorio a:hover::after {
        transform: scaleX(1);
    }

    /* Nombre de cada producto */

    .nombre-producto {
        position: relative;
        display: inline-block;
        cursor: pointer;
        transition: opacity 0.2s ease,
            transform 0.2s ease;
    }

    .nombre-producto::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 100%;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.22s ease;
    }

    .nombre-producto:hover {
        opacity: 0.82;
        text-decoration: underline;
        transform: translateY(-1px);
    }

    .nombre-producto:hover::after {
        transform: scaleX(1);
    }
}

/*
  =========================================================
    TARJETAS DE PRODUCTO - HOVER SUTIL
    =========================================================
 */

@media (hover: hover) and (pointer: fine) {
    .productos-grid article:hover {
        transform: translateY(-3px);
        border-color: #474747;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    }
}

/*
  =========================================================
    BOTONES - ESTILO NOLO
    =========================================================
 */

main button:not(.flecha-catalogo),
main input[type="submit"],
main a[class*="boton"],
main a[class*="btn"] {
    font-family: "Google Sans Flex", Arial, sans-serif;
    font-weight: 600;
    padding: 11px 18px;
    background: #f5f5f5;
    color: #111111;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover sólo en dispositivos con mouse */

@media (hover: hover) and (pointer: fine) {
    main button:not(.flecha-catalogo):hover,
    main input[type="submit"]:hover,
    main a[class*="boton"]:hover,
    main a[class*="btn"]:hover {
        background: transparent;
        color: #f5f5f5;
        transform: translateY(-1px);
    }
}

/* Click */

main button:not(.flecha-catalogo):active,
main input[type="submit"]:active,
main a[class*="boton"]:active,
main a[class*="btn"]:active {
    transform: translateY(0);
}

/*
  =========================================================
    FORMULARIOS - ESTILO NOLO
    =========================================================
 */

#formCheckout input:hover,
#formCheckout textarea:hover {
    border-color: #555555;
}

#formCheckout input:focus,
#formCheckout textarea:focus {
    background: #1b1b1b;
    border-color: #8a8a8a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
    outline: none;
}

#formCheckout input::placeholder,
#formCheckout textarea::placeholder {
    color: #777777;
}

/*
  =========================================================
    CARRITO - ESTILO FINAL
    =========================================================
 */

#carritoContenido {
    max-width: 720px;
    margin-top: 30px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    width: 100%;
    max-width: none;
    padding: 20px;
    margin-top: 20px;
    background: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 8px;
}

.carrito-item .imagen-carrito {
    width: 86px;
    height: 86px;
    max-width: 86px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0;
}

.carrito-item-info {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.carrito-item-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.carrito-producto-nombre {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 650;
}

.carrito-precio {
    margin: 4px 0;
    font-size: 15px;
}

.stock-carrito {
    margin: 4px 0;
    color: #a8a8a8;
    font-size: 13px;
}

.carrito-item-pie {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.carrito-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controles-cantidad {
    width: fit-content;
    height: 30px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #444444;
    border-radius: 999px;
    overflow: hidden;
    background: #141414;
}

#carritoContenido .controles-cantidad button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
    transform: none;
}

.cantidad-carrito {
    min-width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

#carritoContenido .eliminar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0;
    flex: 0 0 28px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #a9a9a9;
    border: 1px solid #484848;
    border-radius: 50%;
    box-shadow: none;
    transform: none;
    text-decoration: none;
    font-size: 13px;
}

.icono-eliminar {
    width: 11px;
    height: 11px;
    display: block;
    pointer-events: none;
}

.subtotal-carrito {
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.subtotal-carrito span {
    color: #8f8f8f;
    font-size: 12px;
}

.subtotal-carrito strong {
    font-size: 16px;
    font-weight: 600;
}

#carritoResumen {
    max-width: 720px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #353535;
}

.carrito-total {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
}

.carrito-total span {
    color: #b5b5b5;
}

.carrito-total strong {
    font-size: 21px;
    font-weight: 650;
}

#carritoResumen #continuarCompra {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    #carritoContenido .controles-cantidad button:hover {
        background: #292929;
        transform: none;
    }

    #carritoContenido .eliminar:hover {
        background: #252525;
        color: #ffffff;
        border-color: #666666;
        transform: none;
    }
}

#carritoContenido .controles-cantidad button:disabled {
    color: #555555;
    cursor: default;
    background: transparent;
}

@media (max-width: 600px) {
    #carritoContenido {
        max-width: 100%;
    }

    .carrito-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 13px;
        padding: 14px;
    }

    .carrito-item .imagen-carrito {
        width: 72px;
        height: 72px;
        max-width: 72px;
        margin-bottom: 18px;
        border-radius: 5px;
    }

    .carrito-producto-nombre {
        margin: 0 0 10px;
        font-size: 17px;
    }

    .carrito-item-cabecera {
        gap: 10px;
    }

    .carrito-item-pie {
        margin-top: 16px;
        padding-top: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .carrito-acciones {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .subtotal-carrito {
        align-items: flex-start;
    }

    #carritoResumen #continuarCompra {
        width: 100%;
    }
}

/*
  =========================================================
    CHECKOUT - ESTRUCTURA
    =========================================================
 */

.checkout-page main {
    max-width: 1000px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.checkout-intro {
    margin-bottom: 18px;
}

.checkout-intro h2 {
    margin-bottom: 8px;
}

.checkout-intro p {
    margin: 0;
    color: #c5c5c5;
}

/*
  =========================================================
    DOS COLUMNAS EN ESCRITORIO
    =========================================================
 */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        360px;
    grid-template-areas: "form resumen";
    gap: 28px;
    align-items: start;
}

.checkout-formulario {
    grid-area: form;
}

.checkout-resumen {
    grid-area: resumen;
    min-width: 0;
}

/*
  =========================================================
    RESUMEN DEL PEDIDO
    =========================================================
 */

.checkout-resumen #resumenPedido {
    margin: 0;
    padding: 22px;
    background: #1b1b1b;
    border: 1px solid #383838;
    border-radius: 6px;
}

.checkout-resumen #resumenPedido h3 {
    margin-top: 0;
}

@media (min-width: 801px) {
    .checkout-resumen {
        position: sticky;
        top: 125px;
    }
}

/*
  =========================================================
    FORMULARIO
    =========================================================
 */

.checkout-formulario #formCheckout {
    width: 100%;
}

.checkout-formulario #formCheckout > h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.checkout-formulario label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
}

.checkout-formulario input,
.checkout-formulario textarea {
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

.checkout-formulario textarea {
    min-height: 110px;
    resize: vertical;
}

/*
  =========================================================
    ENTREGA Y ENVÍO
    =========================================================
 */

.checkout-formulario .aviso-envio {
    margin: 20px 0;
    padding: 14px 20px 16px !important;
    background: #171717;
    border: 1px solid #303030;
    border-left: 2px solid #777777;
    border-radius: 4px;
}

.checkout-formulario .aviso-envio h3 {
    margin: 0 0 7px !important;
    font-size: 17px;
}

.checkout-formulario .aviso-envio p {
    margin: 3px 0;
    line-height: 1.45;
}

/*
  =========================================================
    BOTÓN CONTINUAR
    =========================================================
 */

.checkout-formulario .checkout-continuar {
    margin-top: 18px;
    min-width: 140px;
}

/*
  =========================================================
    TABLET / MÓVIL
    =========================================================
 */

@media (max-width: 800px) {
    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "resumen"
            "form";
        gap: 50px;
    }

    .checkout-resumen {
        position: static;
    }
}

/*
  =========================================================
    MÓVIL
    =========================================================
 */

@media (max-width: 600px) {
    .checkout-page main {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .checkout-intro {
        margin-bottom: 16px;
    }

    .checkout-layout {
        gap: 30px;
    }

    .checkout-resumen #resumenPedido {
        padding: 18px;
    }

    .checkout-formulario #formCheckout > h3 {
        margin-bottom: 16px;
    }

    .checkout-formulario .aviso-envio {
        margin: 18px 0;
    }

    .checkout-formulario .checkout-continuar {
        width: 100%;
        margin-top: 16px;
    }

    .checkout-page .footer-nolo {
        margin-top: 18px;
    }
}

/*
  =========================================================
    PAGO - ESTRUCTURA GENERAL
    =========================================================
 */

.pago-page main {
    max-width: 1000px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.pago-intro {
    margin-bottom: 32px;
}

.pago-intro h2 {
    margin-bottom: 8px;
}

.pago-intro p {
    margin: 0;
    color: #c5c5c5;
}

/*
  =========================================================
    DOS COLUMNAS
    =========================================================
 */

.pago-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        360px;
    grid-template-areas: "principal resumen";
    gap: 54px;
    align-items: start;
}

.pago-principal {
    grid-area: principal;
    min-width: 0;
}

.pago-resumen {
    grid-area: resumen;
    min-width: 0;
}

/*
  =========================================================
    RESUMEN
    =========================================================
 */

.pago-resumen #resumenPago {
    margin: 0;
    padding: 22px;
    background: #1b1b1b;
    border: 1px solid #383838;
    border-radius: 6px;
}

.pago-resumen #resumenPago h3 {
    margin-top: 0;
}

@media (min-width: 801px) {
    .pago-resumen {
        position: sticky;
        top: 125px;
    }
}

/*
  =========================================================
    DATOS DEL COMPRADOR
    =========================================================
 */

.pago-principal #datosComprador {
    margin: 0;
    padding: 22px;
    background: #1b1b1b;
    border: 1px solid #383838;
    border-radius: 6px;
}

.pago-principal #datosComprador h3 {
    margin-top: 0;
}

.pago-principal #datosComprador p {
    margin: 10px 0;
    line-height: 1.5;
}

/*
  =========================================================
    ENTREGA Y ENVÍO DENTRO DE PAGO
    =========================================================
 */

.pago-principal .aviso-envio {
    margin-top: 22px;
    padding: 14px 20px 16px;
    background: #171717;
    border: 1px solid #303030;
    border-left: 2px solid #777777;
    border-radius: 4px;
}

.pago-principal .aviso-envio h3 {
    margin: 0 0 7px;
}

.pago-principal .aviso-envio p {
    margin: 4px 0;
}

/*
  =========================================================
    ACCIÓN DE PAGO
    =========================================================
 */

.pago-principal #accionesPago {
    margin-top: 22px;
}

.pago-principal #accionesPago button {
    min-width: 140px;
    padding: 14px 24px;
    font-size: 15px;
}

/*
  =========================================================
    TABLET / MÓVIL
    =========================================================
 */

@media (max-width: 800px) {
    .pago-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "resumen"
            "principal";
        gap: 28px;
    }

    .pago-resumen {
        position: static;
    }
}

/*
  =========================================================
    MÓVIL
    =========================================================
 */

@media (max-width: 600px) {
    .pago-page main {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .pago-intro {
        margin-bottom: 18px;
    }

    .pago-resumen #resumenPago,
    .pago-principal #datosComprador {
        padding: 18px;
    }

    .pago-principal #accionesPago button {
        width: 100%;
    }

    .pago-page .footer-nolo {
        margin-top: 20px;
    }
}

/*
  =========================================================
    PAGO EXITOSO
    =========================================================
 */

.pago-exitoso-page main {
    max-width: none;
    display: flex;
    justify-content: center;
    padding-top: 85px;
    padding-bottom: 85px;
}

#confirmacionPago {
    width: min(100%, 560px);
    box-sizing: border-box;
    padding: 42px 38px;
    background: #1b1b1b;
    border: 1px solid #383838;
    border-radius: 6px;
    text-align: center;
}

/*
  =========================================================
    ÍCONO
    =========================================================
 */

.confirmacion-icono {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #777777;
    border-radius: 50%;
    color: #ffffff;
}

.confirmacion-icono svg {
    width: 27px;
    height: 27px;
}

/*
  =========================================================
    TEXTOS
    =========================================================
 */

#confirmacionPago h2 {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.1;
}

#confirmacionPago p {
    max-width: 430px;
    margin: 0 auto 12px;
    line-height: 1.5;
    color: #d0d0d0;
}

#confirmacionPago .confirmacion-principal {
    color: #ffffff;
    font-weight: 500;
}

#confirmacionPago .confirmacion-gracias {
    margin-top: 20px;
    margin-bottom: 28px;
    color: #ffffff;
}

/*
  =========================================================
    VOLVER A LA TIENDA
    =========================================================
 */

#confirmacionPago .confirmacion-volver {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 18px;
    background: #f5f5f5;
    color: #111111;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    #confirmacionPago .confirmacion-volver:hover {
        opacity: 0.85;
        background: transparent;
        color: #f5f5f5;
        transform: translateY(-1px);
    }
}

/*
  =========================================================
    MÓVIL
    =========================================================
 */

@media (max-width: 600px) {
    .pago-exitoso-page main {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    #confirmacionPago {
        padding: 34px 22px;
    }

    #confirmacionPago h2 {
        font-size: 28px;
    }

    .confirmacion-icono {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }

    #confirmacionPago .confirmacion-volver {
        width: 100%;
        box-sizing: border-box;
    }
}

/*
  =========================================================
    TIPOGRAFÍA GLOBAL
    =========================================================
 */

button,
input,
textarea,
select {
    font-family: inherit;
}

/*
  =========================================================
    INICIO - ESPACIADO
    =========================================================
 */

.home-page main {
    padding-top: 40px;
}

#productos {
    margin-bottom: 20px;
}

#productos h2 {
    margin-top: 0;
}

#productos p {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .home-page main {
        padding-top: 36px;
    }

}
/* =========================================================
   INICIO - PRUEBA DE COLOR NOLO
   ========================================================= */

.inicio-color {
    --nolo-acento: #B97A45;
}


/* Línea corta debajo del título */

.inicio-color #productos h2::after {
    content: "";
    display: block;

    width: 64px;
    height: 3px;

    margin-top: 10px;

    background-color: var(--nolo-acento);
}


/* Tarjetas */

.inicio-color .productos-grid article {
    position: relative;
    overflow: hidden;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Línea inferior de color, invisible normalmente */

.inicio-color .productos-grid article::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background-color: var(--nolo-acento);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.22s ease;
}


/* Desktop: aparece solamente al pasar el mouse */

@media (hover: hover) and (pointer: fine) {

    .inicio-color .productos-grid article:hover {
        border-color: var(--nolo-acento);
        transform: translateY(-2px);
    }

    .inicio-color .productos-grid article:hover::after {
        transform: scaleX(1);
    }

    .inicio-color .productos-grid article:hover .nombre-producto {
        color: var(--nolo-acento);
    }

}

/* Contador del carrito */

.inicio-color .contador-carrito:not(:empty) {
    background-color: var(--nolo-acento);
    color: #ffffff;
}

.inicio-color .nombre-producto {
    transition: color 0.2s ease;
}
/* Decoración divisoria Header / Body */

.inicio-color header {
    position: relative;
}

.inicio-color header::after {
    content: "◇ ◇ ◇ ◇";

    position: absolute;
    left: 50%;
    bottom: -7px;

    transform: translateX(-50%);

    padding: 0 10px;

    background-color: #111111;
    color: var(--nolo-acento);

    font-size: 14px;
    line-height: 14px;
}
/* Acento visible en móvil, donde no existe hover */

@media (max-width: 600px) {

    .inicio-color .productos-grid article::after {
        transform: scaleX(0.18);
        transform-origin: left;
    }

    .inicio-color .productos-grid article:active {
        border-color: var(--nolo-acento);
    }
}
/* =========================================================
   FICHA DE PRODUCTO - ACENTO NOLO
   ========================================================= */

.producto-color {
    --nolo-acento: #B97A45;
}


/* Línea corta debajo del nombre */

.producto-color .info-producto h2::after {
    content: "";
    display: block;

    width: 52px;
    height: 2px;

    margin-top: 12px;

    background-color: var(--nolo-acento);
}


/* Pequeño acento permanente en la tarjeta */

.producto-color .detalle-producto {
    position: relative;
    overflow: hidden;
}

.producto-color .detalle-producto::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 18%;
    height: 2px;

    background-color: var(--nolo-acento);
}


/* Estado de disponibilidad */

.producto-color .estado-stock {
    position: relative;
    padding-left: 12px;
}

.producto-color .estado-stock::before {
    content: "";

    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;

    width: 2px;

    background-color: var(--nolo-acento);
}
/* PRODUCTO DISPONIBLE POR ENCARGO */

.inicio-color .productos-grid .estado-stock.por-encargo {
    color: var(--nolo-acento);
    font-weight: 600;
}
/* =========================================================
   CATÁLOGO - TÍTULOS ALINEADOS
   ========================================================= */


/* Quitar subrayado viejo: conservamos solamente la línea */

@media (hover: hover) and (pointer: fine) {

    .inicio-color .nombre-producto:hover {
        text-decoration: none;
    }

}


/* En PC y tablet reservamos espacio para hasta 2 líneas */

@media (min-width: 601px) {

    .inicio-color .productos-grid .nombre-producto {
        min-height: 2.5em;
        line-height: 1.25;
    }

}