/* ===== FUENTES EXTERNAS ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;700&display=swap');

/* ===== RESET Y BASE ===== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f8f8f8;
}

/* ===== BODY VARIANTES ===== */

.bodyvideo {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: url('../visuales/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 40px 20px;
}

.bodyindex {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
    color: white;
    background: url('../visuales/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

/* ===== HEADER ===== */

header {
    background: rgba(37, 11, 11, 0.5);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.headerindex {
    position: relative;
    z-index: 10;
    border-bottom: 3px solid #8C0D16;
}

.tableindex {
    background: rgba(10, 5, 5, 0.72);
    backdrop-filter: blur(12px);
    color: white;
    width: 100%;
    table-layout: fixed;
}

.tableindex td {
    padding-left: 10px;
    padding-right: 10px;
    height: 40px;
}

.inicio_sesion {
    text-align: right;
}

.inicio_sesion .label-login {
    font-size: 14px !important;
}

.logo {
    padding-right: 400px;
}

.cuenta {
    text-align: right;
    padding-right: 30px;
}

/* ===== INPUTS Y BOTONES DEL HEADER ===== */

.inputindex, .buttonindex {
    padding: 5px;
    border-radius: 5px;
    border: none;
    width: 275px;
}

.inputindex {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
    transition: border-color 0.2s, background 0.2s;
}

.inputindex:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #e94e1b;
}

.inputindex::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.buttonindex {
    cursor: pointer;
    background-color: #8C0D16;
    color: white;
    width: 169px;
    font-weight: bold;
    border-radius: 6px;
    letter-spacing: 1px;
    font-size: 12px;
    font-family: 'Inter', Arial, sans-serif;
    transition: background 0.2s, transform 0.15s;
}

.buttonindex:hover {
    background-color: #b01020;
    transform: translateY(-1px);
}

/* ===== LOGO ===== */

.logoindex {
    text-align: center;
}

.logo-text {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 22px;
    letter-spacing: 5px;
    color: white;
    margin-top: -8px;
}

.logoindex canvas {
    display: block;
    margin: 0 auto;
    margin-top: 40px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.logoindex canvas:hover {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(233, 78, 27, 0.65));
}

/* ===== TICKER / BANNER ANIMADO ===== */

.ticker-wrap {
    width: 100%;
    background: #8C0D16;
    overflow: hidden;
    padding: 8px 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 38s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker span {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 55px;
}

.ticker span::before {
    content: '♩ ';
    opacity: 0.5;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== FONDO INDEX ===== */

.fondoindex {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid black;
    background-attachment: fixed;
    position: relative;
    box-sizing: border-box;
}

/* ===== BUSCADOR ===== */

.search-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 14px;
    background-color: white;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 9px 20px;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-bar:focus-within {
    border-color: #8C0D16;
    box-shadow: 0 0 0 3px rgba(140, 13, 22, 0.12);
    background: white;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #222;
    font-size: 14px;
    width: 100%;
    font-family: 'Inter', Arial, sans-serif;
}

.search-bar input::placeholder {
    color: #bbb;
}

.search-icon {
    color: #8C0D16;
    font-size: 16px;
    flex-shrink: 0;
}

#no-results {
    display: none;
    text-align: center;
    padding: 10px;
    color: #8C0D16;
    font-weight: 600;
    background: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
}

/* ===== STATS BAR ===== */

.stats-bar {
    display: flex;
    justify-content: center;
    background: white;
    border-bottom: 3px solid #8C0D16;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 22px 45px;
    border-right: 1px solid #ebebeb;
    flex: 1 1 120px;
    transition: background 0.2s;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: #fdf5f5;
}

.stat-number {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 44px;
    color: #8C0D16;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #999;
    font-family: 'Inter', Arial, sans-serif;
    margin-top: 4px;
    display: block;
}

/* ===== TÍTULOS ===== */

h1 {
    font-size: 36px;
    color: #e94e1b;
    margin-bottom: 20px;
    text-align: center;
}

.h1index {
    font-family: 'Bebas Neue', Arial, sans-serif;
    text-align: center;
    letter-spacing: 10px;
    font-size: 42px;
    line-height: 50px;
    margin-top: 5px;
    color: #8C0D16;
    font-weight: normal;
    position: relative;
    padding-bottom: 12px;
}

h1.top-message {
    text-align: center;
    font-size: 26px;
    color: #8C0D16;
    margin: 20px 0;
}

h2 {
    text-align: center;
    color: #8C0D16;
    margin-bottom: 10px;
}

/* ===== CAJA1 con línea decorativa ===== */

.caja1 {
    width: 100%;
    padding: 10px;
    background-color: white;
    margin-top: 0;
    box-sizing: border-box;
}

.caja1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e94e1b;
    margin: 0 auto;
    border-radius: 2px;
}

.caja0 {
    width: 80%;
    max-width: 1200px;
    height: 100px;
    border-bottom: 3px solid #000;
    background-color: #f0f0f0;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caja0 h1 {
    letter-spacing: 15px;
    font-size: 60px;
    color: #8C0D16;
    margin: 0;
}

/* ===== CONTENEDOR 6 CAJAS (TOP PRODUCTS) ===== */

.contenedor6cajas {
    width: 100%;
    padding: 20px 0;
    background-color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.caja2, .caja3, .caja4, .caja5, .caja6, .caja7 {
    flex: 1 1 30%;
    max-width: 30%;
    min-width: 250px;
    height: 300px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    color: black;
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caja2:hover, .caja3:hover, .caja4:hover,
.caja5:hover, .caja6:hover, .caja7:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 35px rgba(140, 13, 22, 0.18);
    z-index: 1;
}

/* Overlay "Añadir al carrito" */
.caja2::after, .caja3::after, .caja4::after,
.caja5::after, .caja6::after, .caja7::after {
    content: '🛒 Add to Cart';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(140, 13, 22, 0.9));
    color: white;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
    padding: 22px 10px 12px;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    letter-spacing: 1px;
}

.caja2:hover::after, .caja3:hover::after, .caja4:hover::after,
.caja5:hover::after, .caja6:hover::after, .caja7:hover::after {
    transform: translateY(0);
}

/* ===== IMÁGENES ===== */

.imagenes {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

/* ===== PÁRRAFOS ===== */

p {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin-bottom: 30px;
}

.pindex {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #444;
    margin: 6px 0 2px;
}

.precioindex {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    color: #1a8a3c;
    font-family: 'Inter', Arial, sans-serif;
}

/* ===== CUADROS STAFF / NUBE ===== */

.cuadros-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px auto;
}

.cuadros-container > div {
    flex: 1 1 45%;
    margin: 0;
}

.nube, .staff {
    background: rgba(30, 8, 8, 0.55);
    padding: 40px;
    max-width: 500px;
    border-radius: 60px 60px 50px 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                20px 0 30px rgba(0, 0, 0, 0.1),
                -20px 0 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nube {
    margin: 0 auto;
}

.staff {
    margin: 0 auto;
}

.nube:hover, .staff:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
                20px 0 30px rgba(0, 0, 0, 0.15),
                -20px 0 30px rgba(0, 0, 0, 0.15);
}

.nube h2, .staff h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    color: white;
}

.nube h2::after, .staff h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #e94e1b;
    margin: 6px auto 0;
    border-radius: 2px;
}

/* ===== CAJA8 (CATEGORÍAS) ===== */

.caja8 {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 20px 0;
    box-sizing: border-box;
}

.caja8 a {
    flex: 1 1 22%;
    max-width: 400px;
}

.caja8 .imagen {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.caja8 .imagen:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

/* ===== ZONA CLIENTES ===== */

.zona_clientes {
    width: 100%;
    background-color: white;
    margin-top: 0;
    padding: 30px 20px 10px;
    box-sizing: border-box;
}

.zona_clientes h1 {
    margin: 0;
    padding: 0;
}

.subtitulo {
    font-family: 'Inter', Arial, sans-serif;
    color: #888;
    margin-top: 0;
    letter-spacing: normal;
    display: block;
    font-size: 16px;
    font-weight: normal;
}

/* ===== RESEÑAS ===== */

.clientes {
    width: 100%;
    background-color: white;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.reseña1, .reseña2, .reseña3 {
    width: 300px;
    background-color: #f5f5f5;
    border-radius: 14px;
    border: 1px solid #ececec;
    padding: 20px;
    font-size: 16px;
    color: black;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reseña1:hover, .reseña2:hover, .reseña3:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(140, 13, 22, 0.12);
}

.stars-rating {
    color: #e94e1b;
    font-size: 17px;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 8px;
}

.reseña {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin: 0;
}

/* ===== FADE IN ON SCROLL ===== */

.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NEWSLETTER CTA ===== */

.newsletter-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdf5f5 0%, #fff 100%);
    border-top: 3px solid #8C0D16;
}

.newsletter-cta p {
    font-family: 'Inter', Arial, sans-serif;
    color: #666;
    font-size: 15px;
    margin-bottom: 18px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-newsletter {
    background: #8C0D16;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 18px rgba(140, 13, 22, 0.35);
}

.btn-newsletter:hover {
    background: #a81020;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(140, 13, 22, 0.4);
}

/* ===== MODAL NEWSLETTER ===== */

#newsletter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#newsletter-overlay.active {
    display: flex;
}

.newsletter-box {
    background: white;
    border-radius: 16px;
    padding: 44px 38px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', Arial, sans-serif;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8C0D16, #e94e1b, #8C0D16);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.newsletter-box h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    color: #8C0D16;
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.newsletter-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.newsletter-box input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
    transition: border-color 0.2s;
    color: #333;
}

.newsletter-box input[type="email"]:focus {
    outline: none;
    border-color: #8C0D16;
}

.btn-subscribe {
    width: 100%;
    padding: 13px;
    background: #8C0D16;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    transition: background 0.2s, transform 0.15s;
}

.btn-subscribe:hover {
    background: #a81020;
    transform: translateY(-1px);
}

.btn-skip {
    background: none;
    border: none;
    color: #bbb;
    font-size: 13px;
    cursor: pointer;
    margin-top: 14px;
    font-family: 'Inter', Arial, sans-serif;
    text-decoration: underline;
    display: block;
    width: 100%;
}

.btn-skip:hover {
    color: #888;
}

.close-nl {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-nl:hover {
    color: #555;
}

/* ===== TOAST ===== */

#toast {
    position: fixed;
    bottom: 88px;
    right: 24px;
    background: white;
    border-left: 4px solid #8C0D16;
    color: #333;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 270px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#toast.show {
    transform: translateX(0);
}

/* ===== BOTÓN VOLVER ARRIBA ===== */

#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: #8C0D16;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 19px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(140, 13, 22, 0.45);
    font-family: 'Inter', Arial, sans-serif;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:hover {
    background: #a81020;
    transform: translateY(-3px);
}

/* ===== CARRITO BADGE ===== */

#cart-count {
    background: #e94e1b;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ===== FOOTER ===== */

.footer-extendido {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: auto;
    margin-top: 60px;
    background: rgba(177, 101, 101, 0.5);
    clip-path: polygon(0 10%, 10% 0, 20% 5%, 30% 0, 40% 5%, 50% 0, 60% 5%, 70% 0, 80% 5%, 90% 0, 100% 10%, 100% 100%, 0 100%);
    overflow: visible;
}

/* ===== VIDEO ===== */

video {
    max-width: 800px;
    width: 100%;
    border: 3px solid #e94e1b;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* ===== FONDOS ALTERNOS ===== */

.fondo {
    width: 100%;
    min-height: 100vh;
    background-image: url("../visuales/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px 0;
}

.fondoventas {
    width: 100%;
    min-height: 100vh;
    background-image: url("../visuales/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ===== VENTAS / ADMIN ===== */

.summary-container {
    width: 90%;
    max-width: 1200px;
    background-color: rgba(240, 240, 240, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #000;
    text-align: center;
}

.tableventas {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: center;
}

.tableventas th, .tableventas td {
    border: 2px solid #000;
    padding: 10px;
}

.tableventas th {
    background-color: #8C0D16;
    color: #fff;
    font-size: 18px;
}

.tableventas tr:nth-child(even) {
    background-color: #f2f2f2;
}

.formproductos {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: rgba(240, 240, 240, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #000;
}

/* ===== FORMULARIOS ===== */

.formcrearcuentas {
    background-color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.tablecuentas {
    width: 100%;
    border-collapse: collapse;
}

.tablecuentas td {
    padding: 10px 5px;
    vertical-align: middle;
}

.label {
    text-align: right;
    padding-right: 20px;
    font-weight: 700;
    width: 40%;
    color: #333;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.input-cell {
    text-align: left;
    width: 60%;
    vertical-align: middle;
}

input {
    width: 90%;
    padding: 5px;
}

button {
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
}

.title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 15px;
}

.button-row {
    text-align: center;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    font-size: 28px;
    color: #8C0D16;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* ===== PRODUCTOS (páginas de categoría) ===== */

.productos {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.producto {
    background-color: #f0f0f0;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.producto img.imagen {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.productosP {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.productoP {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.productoP:hover {
    transform: scale(1.03);
}

.productoP img.imagen {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.info {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.info h2 {
    font-size: 20px;
    margin: 10px 0;
    text-align: center;
}

.estrellas {
    width: 160px;
    height: 35px;
    display: block;
    margin: 0 auto 10px auto;
}

.info ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.infoP {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.infoP h2 {
    font-size: 18px;
    margin: 10px 0;
}

.infoP ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
    text-align: left;
}

.stock {
    color: #3CB371;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
}

.precio {
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    margin: 10px 0;
}

.negro {
    width: 100%;
    height: 400px;
    color: white;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* ===== ENLACES ===== */

a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ===== ERRORES ===== */

.error-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.error-message {
    background-color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* ===== CHECKBOX ===== */

.checkbox-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* ===== BOTONES GENERALES ===== */

.btn-next {
    display: block;
    margin: 20px auto 0 auto;
    padding: 12px 30px;
    font-size: 18px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 1px;
    background-color: #8C0D16;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-next:hover {
    background-color: #a30f1c;
}

.btn-back {
    display: inline-block;
    margin: 30px auto 0 auto;
    padding: 12px 30px;
    font-size: 18px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 1px;
    background-color: #8C0D16;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btn-back:hover {
    background-color: #a30f1c;
}

.total {
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
}

.no-selection-message {
    font-size: 20px;
    color: #8C0D16;
    margin-top: 40px;
}

/* ===== PÁGINAS DE CATEGORÍA (GUITARRAS, BATERIAS, PIANOS, TROMPETAS) ===== */

/* Tarjetas de producto mejoradas */
.producto {
    background-color: #f0f0f0;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(140, 13, 22, 0.18);
    border-color: #8C0D16;
}

/* Stock con check */
.stock {
    color: #1a8a3c;
    font-weight: 700;
    text-align: center;
    margin: 5px 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
}

/* Precio en páginas de categoría */
.precio {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-weight: normal;
    font-size: 32px;
    text-align: center;
    margin: 8px 0;
    color: #8C0D16;
    letter-spacing: 2px;
}

/* Botón Add to Cart en páginas de producto */
.btn-addcart {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px 20px;
    background: #8C0D16;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-addcart:hover {
    background: #a81020;
    transform: translateY(-2px);
}

/* Título h1 en caja0 con Bebas Neue */
.caja0 h1 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 10px;
    font-size: 60px;
    color: #8C0D16;
    margin: 0;
    font-weight: normal;
}

/* Stars en páginas de producto */
.stars-rating {
    color: #e94e1b;
    font-size: 20px;
    letter-spacing: 4px;
    text-align: center;
    margin: 8px 0 12px;
}

/* Info ul mejorado */
.info ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.info ul li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.info ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #8C0D16;
    font-weight: bold;
}

/* ===== PÁGINAS DE FORMULARIO Y ERROR ===== */

/* Página de error mejorada */
.error-message {
    background-color: white;
    padding: 40px 50px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-align: center;
    border-top: 5px solid #8C0D16;
    font-family: 'Inter', Arial, sans-serif;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-message h3 {
    color: #8C0D16;
    font-size: 20px;
    margin-bottom: 12px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 2px;
    font-weight: normal;
}

.error-message p {
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulario crear cuenta mejorado */
.formcrearcuentas {
    background-color: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 5px solid #8C0D16;
    font-family: 'Inter', Arial, sans-serif;
}

.formcrearcuentas .title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    color: #8C0D16;
    font-weight: normal;
}

.tablecuentas input {
    width: 90%;
    padding: 9px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tablecuentas input:focus {
    outline: none;
    border-color: #8C0D16;
    box-shadow: 0 0 0 3px rgba(140,13,22,0.1);
}

/* Fieldset en PRODUCTOS / REGISTROS2 */
fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.04);
}

legend {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 26px;
    color: #8C0D16;
    margin-bottom: 10px;
    padding: 0 10px;
    letter-spacing: 3px;
    font-weight: normal;
}

/* Checkbox mejorado */
.checkbox-container {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8C0D16;
    cursor: pointer;
    transform: scale(1.2);
}

/* Precio en productoP */
.infoP .precio {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 26px;
    color: #8C0D16;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Stock en productoP */
.infoP .stock {
    color: #1a8a3c;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
}

/* Tabla de ventas mejorada */
.tableventas {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tableventas th {
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: normal;
}

/* Total */
.total {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 32px;
    color: #8C0D16;
    letter-spacing: 2px;
    margin-top: 24px;
    font-weight: normal;
}

/* Mensaje sin selección */
.no-selection-message {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    color: #8C0D16;
    margin-top: 30px;
    font-weight: 600;
}

/* Top message */
h1.top-message {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 32px;
    color: #8C0D16;
    letter-spacing: 4px;
    font-weight: normal;
    text-align: center;
    margin: 24px 0 10px;
}

/* ═══════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════ */
.site-footer {
    background: #111111;
    color: rgba(255,255,255,0.65);
    font-family: 'Inter', Arial, sans-serif;
    border-top: 4px solid #8C0D16;
}
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}
.footer-brand .brand:hover { text-decoration: none; }
.footer-brand .brand span {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 5px;
    color: #ffffff;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 230px;
    text-align: left;
}
.footer-links h4 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #ffffff;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #8C0D16;
    display: inline-block;
    font-weight: normal;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}
.footer-links ul a:hover { color: #e94e1b; padding-left: 5px; text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer .container { padding: 32px 20px 0; }
}

/* ═══════════════════════════════════════════════
   SUGGESTIONS SECTION
═══════════════════════════════════════════════ */
.suggestions-section {
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 60px;
}
.suggestions-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}
.suggestions-intro {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.7;
    max-width: 100%;
}
.suggestions-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-top: 4px solid #8C0D16;
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.suggestions-row { display: flex; gap: 20px; flex-wrap: wrap; }
.suggestions-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.suggestions-label {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #8C0D16;
}
.suggestions-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.suggestions-input:focus {
    border-color: #8C0D16;
    box-shadow: 0 0 0 3px rgba(140,13,22,0.08);
}
.suggestions-input::placeholder { color: #bbb; }
.suggestions-textarea { resize: vertical; min-height: 130px; }
.suggestions-submit { text-align: center; padding-top: 4px; }
.suggestions-btn {
    background: #8C0D16;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 50px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 5px 18px rgba(140,13,22,0.35);
}
.suggestions-btn:hover {
    background: #a81020;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(140,13,22,0.45);
}
@media (max-width: 600px) {
    .suggestions-form    { padding: 24px 20px; }
    .suggestions-row     { flex-direction: column; gap: 20px; }
    .suggestions-wrapper { padding: 0 16px; }
}