/* Páginas públicas de la demo (noticias, tienda) */

/* Franja 1: Menú principal sólido superior */
#header nav {
    position: relative !important;
    background: #202526 !important;
    border-top: 3px solid #1C98E0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 1000 !important;
}
body.nav-is-sticky #header #navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: #202526 !important;
}

/* Franja 2: Cabecera azul corporativa (comienza debajo del menú, sin solaparse) */
.demo-cabecera {
    padding: 35px 0 35px;
    background: linear-gradient(135deg, #0e1e2d 0%, #153755 45%, #1C98E0 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.demo-cabecera h1 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}
.demo-cabecera a:not(.tienda-boton-carrito) {
    color: rgba(255, 255, 255, 0.85);
    transition: color .2s;
}
.demo-cabecera a:not(.tienda-boton-carrito):hover {
    color: #fff;
}
.demo-aviso {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: .45rem 1rem;
    border-radius: .375rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: .88rem;
    color: rgba(255, 255, 255, 0.95);
}
.demo-aviso a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
}

.demo-categorias { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.demo-categorias a { padding: .35rem .9rem; border: 1px solid #ccc; border-radius: 2rem; color: #333; font-size: .9rem; transition: all .2s ease; }
.demo-categorias a.activa, .demo-categorias a:hover { background: #1C98E0; border-color: #1C98E0; color: #fff; text-decoration: none; }

.demo-tarjeta { display: block; color: inherit; margin-bottom: 2rem; }
.demo-tarjeta:hover { text-decoration: none; color: inherit; }
.demo-tarjeta img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.demo-tarjeta h3 { font-size: 1.15rem; margin: .75rem 0 .4rem; }
.demo-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #888; }

.demo-nota { max-width: 820px; margin: 0 auto; }
.demo-nota .foto { width: 100%; max-height: 480px; object-fit: cover; margin: 1.5rem 0; }
.demo-nota .copete { font-size: 1.2rem; color: #555; }
.demo-nota .cuerpo { font-size: 1.05rem; line-height: 1.7; }
.demo-nota .cuerpo img { max-width: 100%; height: auto; }

.demo-paginado { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.demo-paginado a, .demo-paginado span { padding: .3rem .75rem; border: 1px solid #ccc; border-radius: .25rem; color: #333; }
.demo-paginado .actual { background: #333; border-color: #333; color: #fff; }

/* Tienda demo */
.tienda-barra { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.tienda-boton-carrito { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 2px solid #333; border-radius: 2rem; color: #333; font-weight: 700; transition: all .25s ease; }
.tienda-boton-carrito:hover { background: #333; color: #fff; text-decoration: none; }
.tienda-contador { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; border-radius: 1rem; background: #009ee3; color: #fff; text-align: center; font-size: .85rem; line-height: 1.6rem; }

.demo-cabecera .tienda-boton-carrito {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}
.demo-cabecera .tienda-boton-carrito:hover {
    background: #fff;
    color: #0e1e2d;
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.demo-cabecera .tienda-boton-carrito .tienda-contador {
    background: #1C98E0;
    color: #fff;
}
.demo-cabecera .tienda-boton-carrito:hover .tienda-contador {
    background: #0e1e2d;
    color: #fff;
}

.tienda-aviso { margin: 1.25rem 0 0; padding: .75rem 1rem; border-radius: .25rem; border-left: 4px solid #6c757d; background: #f5f6f8; }
.tienda-aviso-success { border-color: #28a745; background: #eaf6ec; }
.tienda-aviso-danger { border-color: #dc3545; background: #fbeaec; }
.tienda-aviso-warning { border-color: #e0a800; background: #fff6dd; }

.tienda-producto { margin-bottom: 2.5rem; }
.tienda-producto-foto { position: relative; display: block; }
.tienda-producto-foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f5f6f8; }
.tienda-etiqueta { position: absolute; top: .6rem; left: .6rem; padding: .15rem .6rem; border-radius: 1rem; background: #333; color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.tienda-producto h3 { font-size: 1.15rem; margin: .75rem 0 .3rem; }
.tienda-producto h3 a { color: inherit; }
.tienda-breve { font-size: .95rem; color: #666; min-height: 2.8em; }
.tienda-producto-pie { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tienda-precio { font-size: 1.25rem; font-weight: 700; color: #222; }
.tienda-precio-grande { font-size: 2rem; margin: .5rem 0 1rem; }

.tienda-ficha-foto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 1.5rem; }
.tienda-agregar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tienda-agregar label { margin: 0; }
.tienda-agregar input { width: 5.5rem; }

.tienda-tabla-envoltorio { overflow-x: auto; }
.tienda-tabla { width: 100%; border-collapse: collapse; }
.tienda-tabla th, .tienda-tabla td { padding: .7rem .5rem; border-bottom: 1px solid #e3e3e3; vertical-align: middle; }
.tienda-tabla th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #888; }
.tienda-tabla tfoot td { border-bottom: 0; font-size: 1.1rem; }
.tienda-tabla-foto { width: 64px; }
.tienda-tabla-foto img { width: 56px; height: 56px; object-fit: cover; }
.tienda-cantidad { width: 5rem; }
.tienda-quitar { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #999; cursor: pointer; }
.tienda-quitar:hover { color: #dc3545; }
.tienda-acciones { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

.tienda-caja { padding: 1.5rem; margin-bottom: 1.5rem; background: #f5f6f8; border-radius: .35rem; }
.tienda-total { font-size: 1.2rem; }
.tienda-boton-mp { background: #009ee3; border-color: #009ee3; }
.tienda-boton-mp:hover, .tienda-boton-mp:focus { background: #007eb5; border-color: #007eb5; }
.tienda-boton-mp:disabled { background: #9ccfe6; border-color: #9ccfe6; }
.tienda-prueba { font-size: .9rem; background: #fff; border: 1px dashed #bbb; }
.tienda-prueba ul { padding-left: 1.1rem; margin-bottom: .75rem; }
.tienda-prueba code { color: #222; background: #f0f0f0; padding: 0 .25rem; white-space: nowrap; }

.tienda-resultado { padding: 1.5rem; margin-bottom: 2rem; border-radius: .35rem; border-left: 6px solid #6c757d; background: #f5f6f8; }
.tienda-resultado-ok { border-color: #28a745; background: #eaf6ec; }
.tienda-resultado-mal { border-color: #dc3545; background: #fbeaec; }
.tienda-resultado-espera { border-color: #e0a800; background: #fff6dd; }
