﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 4rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: white;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

    .main .top-row > a, .main .top-row .btn-link {
        white-space: nowrap;
        /*margin-left: 1.5rem;*/
    }

    .main .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.sidebar {
    background-image: linear-gradient(180deg, var(--cn-yellow-bright) 80%, #EAEA86 100%);
}

.sidebar .top-row {
    background-color: var(--cn-yellow-bright);
    text-align: left;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: black;
    border-radius: 4px;
    height: 2.4rem;
    display: flex;
    align-items: center;
    line-height: 2.2rem;
}

.sidebar .nav-item a.active {
    background-color: var(--cn-yellow-accent);
    color: white;
    min-height: 3.2rem;
    width: 12rem;
    padding-top: 5px;
}

.sidebar .nav-item a.active span {
    color: white;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-item a:hover span {
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    height: 60px;
    width: 60px;
    /*background-image: none;*/
}

/*.carousel-control-next-icon:after {
    content: '>';
    font-size: 55px;
    color: grey;
}

.carousel-control-prev-icon:after {
    content: '<';
    font-size: 55px;
    color: grey;
}*/

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        /*display: none;*/
        height: 5rem;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .main-bgColor {
        background-color: white;
        /*background-image: linear-gradient(180deg, #F29821 10%, #FFE713 70%);*/
    }

    .logoCopianet {
        width: 4.8rem !important;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .sidebar .navbar-brand {
        font-size: 1.1rem;
        text-align: center;
        width: 60%;
    }

    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .main-bgColor {
        background-color: white;
        /*background-image: linear-gradient(180deg, #F29821 10%, #FFE713 70%);*/
    }

    .logoCopianet {
        height: 7rem !important;
    }

    /*.menuIconHome {
        display: none;
    }*/
}

.main-bgColor {
    background-color: white;
    /*background-image: linear-gradient(180deg, #F29821 10%, #FFE713 70%);*/
}

.top-row-bgColor {
    background-color: var(--cn-yellow-bright) !important;
}

.menuLabel {
    font-size: 11px;
    color: #474747;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 20px;
}

.menuParent {
    cursor: pointer;
    color: black;
    border-radius: 4px;
    min-height: 2.2rem; /* alto flexible: las etiquetas largas pueden ocupar 2 líneas sin recortarse */
    display: flex;
    align-items: center;
    line-height: 1.25;
    padding: 0.3rem 0.8rem; /* padding vertical para que el texto no se 'comprese' */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menuParent:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Ítems "Próximamente" del menú admin de Prode (deshabilitados). */
.menuParent--disabled {
    opacity: .55;
    cursor: default;
}

.lblMenuProde {
    flex: 1 1 auto;
}

.lblMenuProde__badge {
    font-size: .6rem;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ===== Badges de MiProdePro (estilos explícitos) =====
   No dependen de las utilidades bg-* de Bootstrap (poco confiables en este
   proyecto). Garantizan contraste y padding en roles, contadores y código. */
.prode-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    background-color: #6c757d;
    white-space: nowrap;
    vertical-align: middle;
}

.prode-badge--owner { background-color: #1b6d3a; }   /* verde */
.prode-badge--admin { background-color: #0d6efd; }   /* azul */
.prode-badge--competidor { background-color: #6c757d; } /* gris */

.prode-badge--soft {
    background-color: #eef1f4;
    color: #334155;
    font-weight: 600;
}

.prode-badge--warning {
    background-color: #f0ad4e;
    color: #3d2c00;
}

.prode-badge--danger {
    background-color: #dc3545;
    color: #ffffff;
}

/* Código de invitación: caja oscura monoespaciada y legible. */
.prode-code {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 8px;
    background-color: #1f2937;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    vertical-align: middle;
}


.menuIcon {
    color: #73818F;
    font-size: 12px !important;
}

.menuIconContacto {
    color: #73818F;
    font-size: 18px !important;
}

.menuIconWeb {
    color: var(--cn-yellow-accent);
    font-size: 22px !important;
    margin-right: 8px;
    flex-shrink: 0;
}

.menuIconLoginHeader {
    color: #73818F;
    font-size: 20px !important;
    margin-right: 5px;
}

.menuIconHome {
    color: #73818F;
    font-size: 24px !important;
    margin-right: 5px;
}

.card {
    padding: 0 !important;
}

.spanPasswordField {
    margin-left: 2px;
    margin-right: 2px;
}

.imagen {
    width: 100px;
    height: 100px;
    transition: all .2s ease-in-out;
}

.imagen-seleccionable:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.selector-multiple {
    display: flex;
}

.selectable-ul {
    height: 200px;
    overflow-y: auto;
    list-style-type: none;
    width: 170px;
    padding: 0;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.selectable-ul li {
    cursor: pointer;
    border-bottom: 1px #eee solid;
    padding: 2px 10px;
    font-size: 14px;
}

.selectable-ul li:hover {
    background-color: #08c;
}

.selector-multiple-botones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.selector-multiple-botones button {
    margin: 5px;
}

.loggedUser {
    font-size: 18px;
    color: black;
    font-style: italic;
}

.loggedUser:hover {
    color: black;
    font-style: italic;
}

.copiaNetButton {
    background-color: var(--cn-yellow-bright) !important;
    color: black !important;
    cursor: pointer;
}

.copiaNetButton:hover {
    background-color: #EEEEA4 !important;
    color: black !important;
}

.copiaNetButtonImpresion {
    background-color: #ff9f1a !important;
    color: black !important;
    cursor: pointer;
}

.copiaNetButtonImpresion:hover {
    background-color: #ffb347 !important;
    color: black !important;
}

.copiaNetButtonGrey {
    background-color: #B0B0B0 !important;
    color: black !important;
    cursor: pointer;
}

.copiaNetButtonGrey:hover {
    background-color: #DFDFDF !important;
    color: black !important;
}

/* ===== Encabezado de pantallas de administración (AdminPageHeader) ===== */
.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--cn-yellow-accent);
}

.admin-page-header__titles {
    display: flex;
    flex-direction: column;
}

.admin-page-header__title {
    margin: 0;
    font-weight: 700;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-page-header__icon {
    color: #1A1A1A;
}

.admin-page-header__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.admin-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Acción destructiva en grillas de administración: se distingue del botón de marca */
.btn.copiaNetButtonDanger {
    background-color: #fff !important;
    color: #c0392b !important;
    border: 1px solid #c0392b !important;
    cursor: pointer;
}

.btn.copiaNetButtonDanger:hover {
    background-color: #c0392b !important;
    color: #fff !important;
}

/* Separación uniforme entre botones de marca contiguos (grillas y barras de acciones) */
.btn.copiaNetButton,
.btn.copiaNetButtonDanger,
.btn.copiaNetButtonGrey,
.btn.copiaNetButtonImpresion {
    margin: 0.3rem;
}

/* Tarjeta contenedora uniforme para todas las pantallas de administración */
.admin-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 1rem;
}

/*
   Tarjeta automática para las pantallas de administración que NO usan un
   contenedor propio (checkout-container, registro-container, etc.).
   Cada pantalla admin arranca con <AdminPageHeader> como hijo directo de
   .content; las que ya tienen su propia tarjeta lo anidan adentro, por lo
   que este selector las excluye y evita la doble tarjeta.
*/
.content:has(> .admin-page-header) {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    /* Mismo ancho/centrado que .checkout-container para que TODAS las
       pantallas admin tengan el mismo margen lateral. */
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
}

/* Barra de filtros reutilizable para reportes y gráficos */
.admin-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-filtros > div {
    display: flex;
    flex-direction: column;
}

.admin-filtros .form-label {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* ===== Menú de administración: buscador + chevron ===== */
.menu-search {
    position: relative;
    padding: 0.75rem 1rem 0.25rem;
}

.menu-search__icon {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-25%);
    color: #8a7a00;
    font-size: 0.8rem;
    pointer-events: none;
}

.menu-search__input {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem 0.4rem 1.9rem;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.55);
    color: #2b2b2b;
}

.menu-search__input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(225, 225, 91, 0.6);
}

.menu-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.menu-chevron--abierto {
    transform: rotate(90deg);
}

.copiaNetButtonLogin {
    background-color: var(--cn-orange) !important;
    width: 100%;
    text-align: center;
    color: white !important;
}

.copiaNetButtonLogin:hover {
    background-color: #333333 !important;
    color: white !important;
}

.lblMenuCategorias {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    width: 160px;
    line-height: normal;
}

.invisible {
    visibility: hidden;
    display: none;
}

.map {
    height: 400px;
    width: 100%;
}

.linkContacto {
    color: grey;
}

.marginTopImporte {
    margin-top: 8px;
}

.marginsDescuento {
    margin-top: 6px;
    margin-left: 10px;
    margin-right: 10px;
}

.ventaHeader {
    background-color: lightgrey;
    width: 100%;
}

.numberField {
    text-align: right;
    padding: 0;
}

.inlineFieldMargin {
    margin-left: 8px;
    margin-right: 8px;
}

/* Ventas mostrador (VentasManager) - layout responsive de los renglones de artículos.
   En desktop se ve como tabla (encabezado + columnas). En mobile cada artículo es
   una tarjeta apilada con etiquetas por campo. */
.venta-art-label {
    display: none;
}

@media (max-width: 767.98px) {
    .venta-art-header {
        display: none !important;
    }

    .venta-art-row {
        border: 1px solid #e3e3e3;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 12px;
        background-color: #fafafa;
    }

    .venta-art-label {
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 2px;
    }

    /* El botón quitar no tiene etiqueta: lo alineo con los inputs que sí la tienen. */
    .venta-art-delete .btn {
        margin-top: 1.15rem;
    }
}

.dropzone {
    border: 3px dashed steelblue;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.dropzone:hover {
    background-color: #f3f3f3;
    color: #333;
}

.dropzone input[type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-drag {
    background-color: palegreen;
}

.lblCategoriaHome {
    font-weight: bold;
    font-style: italic;
    color: var(--cn-yellow-accent);
}

.carouselArt {
    width: 100%;
}

/* ECOMMERCE */
.pizza-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 15rem);
    grid-gap: 2rem;
    justify-content: center;
    padding-left: 0;
}

.pizza-cards > li {
    height: 15rem;
    position: relative;
    background-size: cover;
    border-radius: 0.5rem;
    list-style-type: none;
    box-shadow: 0 3px 4px rgba(0,0,0,0.4);
    transition: 0.1s ease-out;
}

/* En pantallas pequeñas: 2 columnas */
@media (max-width: 600px) {
    .pizza-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 1rem;
        justify-items: center;
    }

        .pizza-cards > li {
            width: 100%;
            aspect-ratio: 1 / 1; /* mantiene forma cuadrada */
            border-radius: 0.5rem;
            overflow: hidden; /* asegura que nada se salga del borde */
        }
}

.pizza-cards > li:hover {
    transform: scale(1.04);
}

.pizza-info {
    border-radius: 0.5rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    background: linear-gradient(rgba(0,0,0,0.5) 5%, rgba(0,0,0,0) 50%);
    padding: 1rem 1rem;
    color: #fff2cc;
    cursor: pointer;
    line-height: 1.25rem;
}

.pizza-info .title {
    color: white;
    font-size: 1.2rem;
    display: block;
    margin: 0.2rem 0 0.4rem 0;
    font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.pizza-info .product-description {
    color: white;
    font-size: 0.8rem;
    display: block;
    margin: 0.2rem 0 0.4rem 0;
    font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.pizza-info .price {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0rem 0.7rem;
    border-radius: 4px;
    background-color: #F3F3BE;
    color: black;
    line-height: 2rem;
}

.pizza-info .withoutStock {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0rem 0.7rem;
    border-radius: 4px;
    background-color: #676767;
    color: white;
    line-height: 2rem;
}

.pizza-info .btn-eliminar {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background-color: #dc3545; /* rojo tipo bootstrap */
    color: white;
    border: none;
    cursor: pointer;
}

    .pizza-info .btn-eliminar:hover {
        background-color: #bb2d3b;
    }

.price::before {
    content: '$';
    font-weight: 200;
    font-size: 1.2rem;
    margin-right: 0.2rem;
}

.order-contents {
    overflow-y: auto;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex-grow: 1;
}

    .order-contents h2 {
        color: #fff2cc;
        font-size: 1.3rem;
        font-weight: 300;
        margin-bottom: 1rem;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
    }

.order-total {
    background-color: rgb(191, 52, 52);
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0 1.5rem;
}

    .order-total.hidden {
        transform: translate3d(0, 4rem, 0);
    }

    .order-total .total-price {
        font-weight: 700;
        font-size: 1.5rem;
    }

        .order-total .total-price::before {
            content: '£';
            font-weight: 300;
            margin: 0 0.1rem 0 0.4rem;
        }

    .order-total .btn {
        margin-left: auto;
        font-weight: 700;
        border-radius: 20px;
        padding: 0.4rem 1.2rem;
    }

.checkout-button {
    margin: auto;
    display: block;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
}

.cart-item {
    background-color: #333333;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 100;
    margin-top: 1rem;
    position: relative;
}

    .cart-item .title {
        font-weight: 700;
    }

    .cart-item ul {
        padding: 0;
        margin: 0.4rem 0.6rem;
    }

    .cart-item li {
        list-style-type: none;
        margin-left: 0rem;
        font-size: 0.8rem;
    }

.empty-cart {
    text-align: center;
    margin: auto;
    font-size: 1.5rem;
    font-weight: 100;
    color: #676767;
}

.item-price {
    font-weight: 500;
}

    .item-price::before {
        content: '£';
        font-weight: 100;
        margin-right: 0.3rem;
    }

.delete-item {
    position: absolute;
    top: 0;
    right: 0;
    content: 'X';
    cursor: pointer;
    color: #fff2cc;
    width: 2rem;
    height: 2rem;
    text-align: center;
}

    .delete-item:hover {
        text-decoration: none;
        color: #fff2cc;
        background-color: rgba(255,255,255,0.1);
    }

.configured-pizza-item {
    display: flex;
    flex-direction: row;
}

.dialog-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

.carouselArt {
    background: rgba(217, 217, 217, 0.5); /* Hace el fondo más transparente */
    padding: 10px; /* Da más espacio alrededor */
    border-radius: 10px; /* Bordes más suaves */
}

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.2); /* Más transparencia */
    border-radius: 50%; /* Hace los botones redondos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    top: 50%; /* Centrado vertical */
    transform: translateY(-50%); /* Asegura que esté centrado */
}

    .carousel-control-prev:hover, .carousel-control-next:hover {
        background: rgba(0, 0, 0, 0.5); /* Oscurece más al pasar el mouse */
        transform: translateY(-50%) scale(1.1); /* Mantiene el centrado con el zoom */
    }


.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.input-spacing-10-right {
    margin-right: 10px;
}

.container.producto-container {
    border: 1px solid #ddd; /* Borde fino gris */
    border-radius: 10px; /* Bordes redondeados */
    padding: 20px; /* Espaciado interno */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-container {
    max-width: 95%;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.pedido-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pedido-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

    .pedido-item > * {
        margin-bottom: 1rem;
    }

@media (min-width: 768px) {
    .pedido-item > * {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

.pedido-info {
    flex: 2;
}

.pedido-detalle {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.pedido-acciones {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-container {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    background-color: #eef;
    border-radius: 5px;
}

.msgpedidocreado-container {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    background-color: #FFFFAA;
    border-radius: 5px;
    vertical-align: middle;
}

.checkout-acciones {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

    .checkout-acciones > *:not(:last-child) {
        margin-right: 1rem;
    }

.producto-imagen-sm{
    width: 150px;
    margin-right: 15px;
}

.whatsapp-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px; /* Aumentamos el tamaño del contorno verde */
    height: 50px; /* Aumentamos el tamaño del contorno verde */
    background-color: rgb(77, 194, 71);
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-button img {
    width: 25px; /* Ajustamos el tamaño de la imagen blanca */
    height: 25px; /* Ajustamos el tamaño de la imagen blanca */
    transition: transform 0.3s;
}

.whatsapp-button img:hover {
    transform: scale(1.1); /* Efecto de aumento al pasar el ratón */
}

/* Footer */

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas por defecto */
    gap: 20px;
    padding: 20px;
    background-color: var(--cn-yellow-bright);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left,
.footer-center-left,
.footer-center-right,
.footer-right {
    text-align: center;
    min-width: 0; /* para evitar overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Texto y direcciones */
.footer-text {
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.footer-address {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

    .social-icon.facebook {
        background-color: #3b5998;
    }

    .social-icon.instagram {
        background: linear-gradient(to right, #f58529, #dd2a7b, #8134af, #515bd4);
    }

    .social-icon:hover {
        transform: scale(1.1);
    }

/* MEDIA QUERIES */

/* Tablets: 2 columnas */
@media (max-width: 1023px) and (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles: 1 columna */
@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .footer-left,
    .footer-center-left,
    .footer-center-right,
    .footer-right {
        text-align: center;
        padding: 10px 0;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
/* Formulario registro */

.registro-container {
    max-width: 80%;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.registro-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.registro-subtitulo {
    margin: 10px 0 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #FFE713;
    color: #333;
    font-size: 1.1rem;
}

.grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.registro-input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.registro-observaciones {
    grid-column: span 2;
    height: 60px;
}

.registro-botonera {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Espacio entre botones */
}

.registro-botonera .button-orange {
    min-width: 200px; /* Opcional: que tengan un ancho mínimo */
    flex: 1 1 auto; /* Que se adapten en mobile */
}

.button-orange {
    display: inline-block;
    text-align: center;
    background-color: var(--cn-orange);
    color: white !important; /* Fuerza el color del texto */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none !important; /* Elimina el subrayado */
    cursor: pointer;
    transition: background-color 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-orange:hover,
.button-orange:focus,
.button-orange:active {
    background-color: #333333;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

/* Evita que los estilos predeterminados de los enlaces afecten */
.button-orange:visited,
.button-orange:link {
    color: white !important;
    text-decoration: none !important;
}

.registro-alerta {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.registro-alerta.show {
    opacity: 1;
}


.social-icon-header {
    font-size: 2rem;
    padding: 12px;
    transition: background-color 0.3s;
    color: #73818F;
    text-decoration: none;
}

.social-icon.facebook-icon-header {
    background-color: #73818F; /* Facebook azul */
    width: 55px;
}

.social-icon-header.instagram-icon-header {
     /* Colores de Instagram */
}

/* Login */
.registro-container-login {
    max-width: 640px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mis Pedidos */
/* Contenedor general */
.checkout-container-mis-pedidos {
    max-width: 95%;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-container-mis-pedidos-artrelacionados {
    max-width: 95%;
    margin: auto;
    padding: 20px;
    background-color: #FFFDE6;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Lista de pedidos */
.pedidos-lista-mis-pedidos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cada pedido */
.pedido-mis-pedidos {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 20px;
}

    /* Contenedor de la info del pedido */
    .pedido-mis-pedidos .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* Permite mejor distribución en pantallas pequeñas */
    }

/* Ajuste del tamaño de cada sección */
.info-pedido-mis-pedidos,
.estado-total-mis-pedidos,
.boton-ver-pedido-mis-pedidos {
    flex: 1;
    min-width: 200px; /* Evita que los elementos se amontonen */
    text-align: center; /* Centra el contenido de cada bloque */
}

/* Espaciado para la información del pedido */
.contenido-info-pedido {
    padding-left: 20px;
    padding-top: 18px;
}

/* Estado y total con mejor alineación */
.estado-total-mis-pedidos {
    margin-top: 10px;
}

/* Corrección de alineación del estado */
.pedido-estado-mis-pedidos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Espacio entre el ícono y el texto */
}

/* Espaciado del botón "Ver Pedido" */
.boton-ver-pedido-mis-pedidos {
    margin-top: 15px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
}

/* ============================================================
   Splash screen — shown until Blazor mounts and replaces the
   contents of <app>. Pure HTML/CSS, no JS, system fonts so it
   paints without waiting for web fonts to arrive.

   Neutral palette: soft grey-to-white background, dark ink text,
   black indeterminate progress bar. Honors prefers-reduced-motion.
   ============================================================ */
.cn-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px;
    background: linear-gradient(180deg, #F5F5F5 0%, #FAFAFA 55%, #FFFFFF 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #111418;
    -webkit-font-smoothing: antialiased;
}

.cn-splash__logo {
    display: block;
    width: auto;
    height: 84px;
    max-width: 60vw;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.cn-splash__text {
    text-align: center;
    max-width: 380px;
}

.cn-splash__title {
    font-size: 18px;
    font-weight: 600;
    color: #111418;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cn-splash__hint {
    font-size: 13px;
    color: #3A3F47;
    margin: 0;
    line-height: 1.4;
}

.cn-splash__bar {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: rgba(17, 20, 24, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.cn-splash__bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: var(--cn-orange);
    border-radius: 999px;
    transform: translateX(-100%);
    animation: cn-splash-bar 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cn-splash-bar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
    .cn-splash__bar-fill {
        animation: none;
        width: 100%;
        transform: none;
        opacity: 0.4;
    }
}

@media (max-height: 480px) {
    /* Tight landscape phones */
    .cn-splash { gap: 14px; padding: 16px; }
    .cn-splash__logo { height: 56px; }
    .cn-splash__title { font-size: 16px; margin-bottom: 2px; }
    .cn-splash__hint { display: none; }
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(218, 219, 223, 0.3);
    border-top: 8px solid rgba(238, 238, 164, 1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/*.spinner {
    margin-left: -4em;
    border: .6em solid rgba(218, 219, 223, 1);
    border-left: .6em solid rgba(249, 249, 0, 1);
    animation: spin 1.1s infinite linear;
    border-radius: 50%;
    width: 4em;
    height: 4em;
    display: block;
    position: absolute;
    top: 30%;
    left: 50%;
}*/

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/*Animación alertas*/
@keyframes bell-shake {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    45% {
        transform: rotate(-10deg);
        transform: scale(1.25);
    }

    60% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

.animate-bell {
    animation: bell-shake 0.6s ease-in-out;
}

.pedido-impresion {
    border-left: 6px solid #0d6efd; /* Azul Bootstrap */
    background-color: #e9f3ff; /* Azul claro */
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.1);
}

.button-mercado-pago {
    background-color: #009ee3;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    height: 68px; /* altura pareja como otros botones */
    padding: 0 14px;
}

.button-mercado-pago:hover {
    background-color: #0077b6;
}

.logo-mercado-pago-large {
    height: 45px; /* tamaño cómodo en desktop */
    width: auto;
}

.texto-mercado-pago {
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    margin-left: -10px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .button-mercado-pago {
        flex-direction: column; /* logo arriba, texto abajo */
        height: 68px; /* se adapta al contenido */
        padding: 8px 12px 15px;
    }

    .logo-mercado-pago-large {
        width: auto; /* más grande en mobile */
    }

    .texto-mercado-pago {
        font-size: 15px;
        white-space: normal; /* permite que el texto salte abajo */
    }

    .button-orange-ancho {
        min-width: 50px;
        margin-bottom: 10px;
        margin-right: -10px;
    }

    .button-orange-ancho {
        min-height: 68px;
        margin-bottom: 10px;
        margin-right: -10px;
    }
}

.button-orange-ancho {
    min-height: 68px;
    margin-bottom: 10px;
    margin-right: -10px;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.li-printer {
    background-color: white;
    position: relative;
}

    .li-printer::before {
        content: "\f1c1"; /* Unicode de fa-file-pdf */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 6rem;
        color: #000;
        opacity: 0.2; /* para que quede de fondo */
    }

.price.no-currency::before {
    content: none; /* elimina el $ */
}

.articulo-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Otros estilos de la card */
}

    /* Para artículos sin imagen */
    .articulo-card.sin-img {
        background-size: 160%; /* Ocupa más espacio */
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f5f5f5;
        min-height: 180px; /* Altura mínima para que no quede muy chico */
    }

.related-carousel {
    white-space: nowrap;
    padding-bottom: 10px;
}

    .related-carousel .articulo-relacionado {
        display: inline-block;
    }

.carousel-item img {
    width: 100%;
    height: auto; /* que respete proporción */
    object-fit: cover; /* recorta si sobra alto */
    object-position: center; /* centra el recorte */
    max-height: 350px; /* límite en desktop */
}

@media (max-width: 600px) {
    .carousel-item img {
        max-height: 170px; /* límite en mobile */
    }
}

.fontAgregarArticulo {
    font-size: 2rem; /* tamaño por defecto */
}

@media (max-width: 600px) {
    .fontAgregarArticulo {
        font-size: 1.2rem; /* más chico en mobile */
    }
}

/* Copia Einstein Articulo Home Card*/
.articulo-card {
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* imagen arriba, info abajo */
}

/* wrapper con tamaño fijo relativo a la card */
.articulo-img-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

    /* imágenes dentro del wrapper */
    .articulo-img-wrapper .articulo-img {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

        /* segunda imagen encima, inicialmente oculta */
        .articulo-img-wrapper .articulo-img.second {
            opacity: 0;
        }

/* efecto hover: zoom + fade */
.articulo-card:hover .articulo-img {
    transform: scale(1.04);
}

    .articulo-card:hover .articulo-img.second {
        opacity: 1;
        transform: scale(1.04);
    }

/* Timeline estado pedidos */

/* Timeline base */
.timeline {
    position: relative;
    margin: 20px 0;
    padding: 0 0 0 30px;
}

/* Timeline para pedidos normales */
.timeline-articulos {
    border-left: 2px solid var(--cn-yellow-accent); /* amarillo */
}

    .timeline-articulos .timeline-marker {
        background: var(--cn-yellow-accent);
        box-shadow: 0 0 0 2px var(--cn-yellow-accent);
    }

/* Timeline para pedidos de impresión */
.timeline-impresion {
    border-left: 2px solid #ff9f1a; /* naranja */
}

    .timeline-impresion .timeline-marker {
        background: #ff9f1a;
        box-shadow: 0 0 0 2px #ff9f1a;
    }

/* Items y contenido (comparten estilo) */
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.timeline-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Palabras Rápidas */

.palabras-rapidas {
    margin: 20px 0;
    text-align: center;
}

.palabras-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.palabra-chip {
    background-color: var(--cn-yellow-accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px; /* más grande */
    font-size: 1.1rem; /* aumenta el tamaño de la letra */
    cursor: pointer;
    transition: 0.2s;
}

    .palabra-chip:hover {
        background-color: #ffb347;
        transform: scale(1.1);
        transform-origin: center;
    }

/* Modal fullscreen */

.modal-fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    top: 0;
    left: 0;
}

    .modal-fullscreen .modal-content {
        height: 100%;
        border: none;
        border-radius: 0;
    }

    .modal-fullscreen .modal-body {
        height: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Limitar la imagen para que no supere la pantalla */
    .modal-fullscreen .carousel-item img {
        max-height: 90vh; /* nunca más alto que la pantalla */
        width: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Solo para el carousel dentro del modal fullscreen */
    .modal-fullscreen .carousel-item img {
        max-width: 90vw; /* nunca más ancho que la pantalla */
        max-height: 80vh; /* nunca más alto que la pantalla */
        width: auto;
        height: auto;
        object-fit: contain; /* mantiene proporción sin recortar */
        display: block;
        margin: 0 auto; /* centra horizontalmente */
    }

@media (max-width: 600px) {
    .modal-fullscreen .carousel-item img {
        max-width: 78vw; /* ancho adaptativo en mobile */
        max-height: 60vh; /* alto adaptativo para que no haga scroll */
    }
}

.skeleton {
    pointer-events: none;
}

.skeleton-img.working {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    background-image: url('/images/sinImg2.jpg'); /* tu placeholder */
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.75);
    animation: workingPulse 1.6s ease-in-out infinite;
}

/* Líneas inferiores (sin precios) */
.skeleton-line {
    height: 12px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 8px;
    animation: shimmer 1.4s ease infinite;
}

    .skeleton-line.title {
        width: 75%;
    }

    .skeleton-line.desc {
        width: 100%;
    }

/* Animación imagen */
@keyframes workingPulse {
    0% {
        filter: grayscale(100%) brightness(0.7);
    }

    50% {
        filter: grayscale(100%) brightness(1);
    }

    100% {
        filter: grayscale(100%) brightness(0.7);
    }
}

/* Animación líneas */
@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.fade-img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* ============================================================
   Admin / empleado off-canvas menu
   ------------------------------------------------------------
   Desktop: plain static block inside the sidebar (head + close +
   overlay are hidden, no transform) — identical to the old layout.
   Mobile (<768px): slides in from the LEFT with an overlay, just
   like the customer <MobileDrawer />.
   ============================================================ */
.cn-admin-drawer {
    padding-top: 3rem;
}

/* Drawer chrome (logo + close) only exists in the mobile drawer. */
.cn-admin-drawer__head { display: none; }
.cn-admin-drawer-overlay { display: none; }

@media (max-width: 767.98px) {
    .cn-admin-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        max-width: 86vw;
        padding-top: 0;
        background-image: linear-gradient(180deg, var(--cn-yellow-bright) 80%, #EAEA86 100%);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1300;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 18px rgba(0, 0, 0, 0.25);
    }

    .cn-admin-drawer--open {
        transform: translateX(0);
    }

    .cn-admin-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        background-color: var(--cn-yellow-bright);
        z-index: 1;
    }

    .cn-admin-drawer__head .cn-brand img {
        height: 34px;
        width: auto;
    }

    .cn-admin-drawer__close {
        background: rgba(0, 0, 0, 0.06);
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 18px;
        color: #333;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .cn-admin-drawer__close:hover {
        background: rgba(0, 0, 0, 0.12);
    }

    .cn-admin-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        z-index: 1250;
    }

    .cn-admin-drawer-overlay--open {
        opacity: 1;
        visibility: visible;
    }

    /* Hamburger on the LEFT, before the logo — consistent with the
       customer header and with the drawer that opens from the left. */
    .sidebar .top-row.navbar {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .sidebar .top-row .navbar-toggler {
        order: -1;
    }
}

/* ============================================================
   Botonera de acciones dentro de grillas (Radzen)
   ------------------------------------------------------------
   Las grillas tienen una columna de acciones con varios íconos.
   El margen global de los botones (0.3rem) los hace desbordar el
   ancho de la celda y Radzen los recorta con "…". Esta fila los
   compacta para que entren todos.
   ============================================================ */
.grid-acciones {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.grid-acciones .btn {
    margin: 0 !important;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}