:root {
    --azul-oscuro: #040447;
    --turquesa-claro: #5DC1B9;
    --verde: #47AD96;
    --dorado-claro: #EFC16B;
    --dorado: #E8A221;
    --azul-medio: #3F5983;
    --blanco: #FEFEFE;
    --gris-fondo: #f2f2f2;
    --gris-texto: #555;
    --sombra: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

	
/* Asegúrate de que este estilo esté después de otros estilos de tabla en tu CSS */
/* Contenedor global para todas las tablas */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* Estilo global para todas las tablas */
table {
    min-width: max-content; /* Permite que la tabla crezca más allá del ancho del contenedor */
    border-collapse: collapse;
    width: 100%;
}

/* Asegura que los encabezados y celdas tengan un ancho mínimo */
th, td {
    white-space: nowrap;
    padding: 10px;
    border: 1px solid #ddd;
    min-width: 150px; /* Ancho mínimo para cada columna */
}


.content-block {
    margin: 15px;
    text-align: justify; /* Justifica el texto */
}

body {
    font-family: 'Futura LT', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
    line-height: 1.6;
}

h1 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    color: var(--azul-oscuro);
}

h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    color: var(--azul-oscuro);
}

h7 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
	font-size:30px;
    margin-bottom: 1rem;
}

h8 {
    font-family: 'Clash Display', sans-serif;
    color: var(--azul-oscuro);
	font-size:18px;
}

a {
    text-decoration: none;
    color: var(--azul-medio);
    transition: color 0.3s;
}

a:hover {
    color: var(--dorado);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    box-shadow: var(--sombra);
}

.logo img {
    height: 42px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--blanco);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a.active:after,
nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--dorado);
}

.icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.icons i {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--blanco);
    transition: color 0.3s;
}

.icons i:hover {
    color: var(--dorado);
}

.hamburger {
    display: none;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: var(--azul-medio);
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-panel a {
    color: var(--blanco);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-panel.active {
    left: 0;
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Footer */
footer {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 3rem 1rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
}

footer h4 {
    margin-bottom: 1rem;
    color: var(--blanco);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--blanco);
}

footer input {
    padding: 0.5rem;
    width: 100%;
    border: none;
    border-radius: 5px;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .side-panel {
        display: flex;
    }
}

/* Estilos específicos para páginas */
.seccion-extra {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
	
}

.contenido-pagina {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: var(--sombra);
}

/* Estilos para formularios */
.campo-formulario {
    margin-bottom: 1.5rem;
}

.campo-formulario label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.campo-formulario input,
.campo-formulario textarea,
.campo-formulario select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.boton-enviar {
    background-color: var(--dorado);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.boton-enviar:hover {
    background-color: var(--dorado-claro);
}

/* Estilos para el carrusel de banners */
.banner-principal {
    width: 100%;
    display: flex; /* Asegura que el contenedor maneje bien el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    overflow: hidden; /* Evita desbordamientos no deseados */
}

.banner-principal img {
    width: 100%; /* Estira la imagen al 100% del ancho del contenedor */
    height: auto; /* Ajusta automáticamente la altura para mantener la proporción */
    max-height: 80vh; /* Limita la altura máxima al 80% de la ventana */
}


/* Estilos para el carrusel de banners */
.publicidad {
    width: 95%;
	max-width: 1200px;
    display: flex; /* Asegura que el contenedor maneje bien el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    overflow: hidden; /* Evita desbordamientos no deseados */
	margin: 0 auto;
	border-radius: 5px;
}

.publicidad img {
    width: 100%; /* Estira la imagen al 100% del ancho del contenedor */
    height: auto; /* Ajusta automáticamente la altura para mantener la proporción */
    max-height: 10vh; /* Limita la altura máxima al 80% de la ventana */
}

.banner-carrusel {
    position: relative;
    overflow: hidden;
}

.banners {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
	max-height: 150px;
}

.banners img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 300px;
}

.indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicadores div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
}

.indicadores .activo {
    background-color: var(--dorado);
}

/* Estilos para el catálogo */
.categoria {
	padding-left: 10px;
	padding-right: 10px;
	margin-top: 10px;
	max-width: 1200px;
	margin: 0 auto;
}

.carrusel-contenedor {
    position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.grid-carrusel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    align-items: stretch; /* Para que todos los items tengan misma altura */
}

.grid-carrusel::-webkit-scrollbar {
    display: none;
}

.libro:hover {
    transform: translateY(-5px);
}

.libro {
    min-width: 200px;
    max-width: 200px;
    width: 200px;
    height: 350px; /* Altura fija para la tarjeta completa */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    position: relative; /* Añadido para el contenedor de imagen */
}

/* Contenedor especial para la imagen */
.libro .image-container {
    width: 100%;
    height: 250px; /* Altura fija para el área de imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    overflow: hidden;
    position: relative;
}

.libro .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado a cover para llenar el espacio */
    position: absolute;
    top: 0;
    left: 0;
}

.libro h3 {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    text-align: center;
}

.libro p {
    padding: 0 1rem;
    color: var(--dorado);
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
}

.libro button {
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem 1rem;
    background: var(--dorado-claro);
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-medio);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.izquierda {
    left: 10px;
}

.derecha {
    right: 10px;
}

/* Estilos para el modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    z-index: 9999;
    overflow-y: auto;
}

.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--azul-oscuro);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
	text-align:justify;
}

.modal-imagenes {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}

.modal-banners {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.modal-banners img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    flex-shrink: 0;
}

.modal-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-imagenes:hover .modal-flecha {
    opacity: 1;
}

.modal-flecha.izquierda {
    left: 20px;
}

.modal-flecha.derecha {
    right: 20px;
}

.modal-info {
    padding: 1.5rem;
}

.modal-precio {
    font-size: 1.5rem;
    color: var(--dorado);
    font-weight: bold;
    margin: 1rem 0;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.cantidad-selector button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--azul-medio);
    color: white;
    border: none;
    cursor: pointer;
}

.modal-boton {
    background: var(--dorado);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Indicadores de imágenes */
.modal-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.modal-indicadores div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-indicadores .activo {
    background-color: var(--dorado);
}

/* Estilos para la administración */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
	width: 100%;
    font-family: 'Futura LT', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}


.admin-nav {
    background: var(--azul-oscuro);
    color: white;
    width: 250px;
    padding: 1rem;
    position: fixed; /* Mantenemos fixed para que el menú sea siempre visible */
    height: 100vh;
    overflow-y: auto;
    left: 0; /* Aseguramos que esté pegado a la izquierda */
    top: 0; /* Aseguramos que esté pegado arriba */
}

.admin-nav ul {
    list-style: none;
    padding: 0;
}

.admin-nav a {
    color: white;
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-nav a:hover, 
.admin-nav a.active {
    background: var(--dorado);
    color: var(--azul-oscuro);
}

.admin-nav i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    width: 100%; /* Ocupa el 100% del ancho */
    margin: 0 auto; /* Centrado */
    padding: 20px;
    margin-top: 60px; /* Espacio para el menú superior */
    box-sizing: border-box; /* Incluye padding en el ancho total */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th, 
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-action {
    color: var(--azul-medio);
    margin-right: 0.5rem;
}

.btn-action:hover {
    color: var(--dorado);
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    color: #a71d2a;
}

.admin-actions {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form input, 
.search-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: var(--dorado);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-clear {
    color: var(--azul-medio);
    margin-left: 0.5rem;
}

.btn-add {
    background: var(--verde);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-form, 
.category-form, 
.banner-form {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: var(--sombra);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-save {
    background: var(--dorado);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel {
    background: var(--azul-medio);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-preview img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 0.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-back {
    background: var(--azul-medio);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.detail-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--sombra);
}

.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    width: 200px;
}

.order-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-items th, 
.order-items td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.order-items th {
    background-color: #f5f5f5;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.banner-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.banner-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.banner-info {
    padding: 1rem;
}

.banner-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-badge {
	padding: 5px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
	text-align:center;
	width: 100px !important;
}

.status-badge.pending {
    background-color: #ff4d00;
    color: #fff;

}

.status-badge.processing {
    background-color: #00BFFF;
    color: #fff;

}

.status-badge.completed {
    background-color: #28A745;
    color: #fff;
}
.status-badge.cancelled {
    background-color: #ff0018;
    color: #fff;
}

.status-badge.waiting {
    background-color: #d400ff;
    color: #fff;
	width: 100px !important;
	}

.payment-proof-section {
    margin-top: 20px;
}


.status-badge.active {
    background-color: #d4edda;
    color: #fff;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #fff;
}

.featured-badge {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

@media (max-width: 992px) {
    .admin-nav {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .admin-nav {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

.buscador {
    width: calc(100% - 5px); /* Resta 10px (5px de cada lado) */
    margin: 20px auto;
    box-sizing: border-box; /* Incluye el padding en el ancho total */
	text-align:center;
	padding-left: 5px;
	padding-top: 20px;
}

.buscador input {
    flex: 1;
    border: 2px solid var(--verde);
    font-family: 'Futura LT', sans-serif;
    max-width: 1200px;
}

.buscador button {
	margin-right: 10px;
    border: none;
    background-color: var(--dorado);
    color: var(--blanco);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-family: 'Futura LT', sans-serif;
    transition: background-color 0.3s ease;
}

.search-container {
    display: flex;
    width: 100%; /* Ocupa todo el ancho disponible del contenedor padre */
    margin: 0 auto;
}

#searchInput {
    flex: 1;
    border: 2px solid var(--verde);
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0.6rem;
    font-family: 'Futura LT', sans-serif;
    min-width: 0; /* Permite que el input se reduzca */
}

#genreSelect {
    width: 100px;
    border: 2px solid var(--verde);
    border-left: none;
    border-right: none;
    padding: 0.6rem;
    font-family: 'Futura LT', sans-serif;
    background: white;
    color: #333;
}

.search-container button {
    padding: 0.6rem 1rem;
    border: none;
    background-color: var(--dorado);
    color: var(--blanco);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-family: 'Futura LT', sans-serif;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Evita que el texto del botón se rompa */
}

.buscador button:hover {
    background-color: var(--dorado-claro);
}

/* Estilos para el formulario de newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border: 1px solid var(--azul-medio);
    border-radius: 5px;
    flex: 1;
    font-family: 'Futura LT', sans-serif;
}

.btn-subscribe {
    background-color: var(--dorado);
    color: var(--blanco);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Futura LT', sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background-color: var(--dorado-claro);
}

/* Estilos generales */
body.admin-login-page, 
body.admin-dashboard {
    font-family: 'Futura LT', sans-serif;
    background-color: var(--azul-oscuro);
    margin: 0;
    padding: 0;
    color: #333;
	text-align:center;
}

/* Login Page */
.admin-login-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 20px;
	
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
	color: #FFF;
}

.admin-logo {
    max-width: 200px;
    margin-bottom: 15px;
}

.admin-login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.admin-login-form .form-group {
    margin-bottom: 20px;
}

.admin-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #040447;
    color: white;
    border: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.admin-login-footer {
    text-align: center;
    margin-top: 30px;
    color: #FFF;
    font-size: 14px;
}

/* Dashboard Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #040447;
    color: white;
    padding: 20px 0;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.admin-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    background: #f8f9fa;
}

.admin-main-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-contents {
    padding: 20px;
    background: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Contenedores para tablas y formularios */
.admin-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}



/* Header superior */
.admin-header {
    background: var(--azul-oscuro);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.admin-header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.admin-logo img {
    height: 40px;
    margin-right: 1.5rem;
}

.admin-top-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.admin-top-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.admin-top-nav a {
    color: white;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.admin-top-nav a:hover,
.admin-top-nav a.active {
    background: rgba(255,255,255,0.1);
}

.admin-top-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--dorado);
}

.admin-top-nav i {
    margin-right: 0.5rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 500;
}

.logout-btn {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: var(--dorado);
}

/* Contenido principal */
.admin-main-content {
    margin-top: 60px; /* Igual al height del header */
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

/* Mantenemos todos los estilos originales del contenido */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.recent-orders table {
    width: 100%;
    min-width: 100%; /* Fuerza el ancho completo */
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--sombra);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--dorado);
    margin-bottom: 1rem;
}

.stat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--azul-oscuro);
}

.stat-card a {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--azul-medio);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.stat-card a:hover {
    background: var(--dorado);
}

/* Estilos para la tabla de pedidos recientes */
.recent-orders {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--sombra);
    margin-top: 2rem;
}

.recent-orders h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}



.btn-action {
    color: var(--azul-medio);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-action:hover {
    color: var(--dorado);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .admin-header-left {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-logo {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .admin-top-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-top-nav li {
        width: 100%;
        height: auto;
    }
    
    .admin-top-nav a {
        padding: 0.75rem;
        justify-content: center;
    }
    
    .admin-header-right {
        margin-top: 1rem;
    }
    
    .admin-main-content {
        margin-top: 180px; /* Ajustar según altura del header */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.recent-orders {
    width: 100%;
    overflow-x: auto; /* Para móviles */
}

table {
    min-width: 100%; /* Fuerza a ocupar todo el espacio */
}

/* Estructura principal */
.admin-dashboard {
    font-family: 'Futura LT', sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Header superior */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--azul-oscuro);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.admin-logo .logo-img {
    height: 40px;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    margin: 0 10px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.admin-nav a.active {
    background: rgba(255,255,255,0.2);
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.admin-nav i {
    margin-right: 8px;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    font-weight: 500;
}

.logout-btn {
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: var(--dorado);
    transform: rotate(90deg);
}

/* Contenido principal */
.admin-main-content {
    margin-top: 60px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Estadísticas */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
}

.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }
.bg-orange { background: #f59e0b; }
.bg-yellow { background: #fbbf24; }
.bg-purple { background: #8b5cf6; }

.stat-info h3 {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 5px;
}

.stat-info p {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 10px;
}

.stat-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.stat-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.stat-link:hover i {
    transform: translateX(3px);
}

/* Tabla de pedidos */
.recent-orders-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recent-orders-section h2 {
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.recent-orders-section h2 i {
    margin-right: 10px;
    color: var(--dorado);
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.orders-table th {
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.orders-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}



.btn-action {
    color: #3b82f6;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-action:hover {
    color: #2563eb;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .admin-nav ul {
        display: none;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-header-container {
        padding: 0 10px;
    }
    
    .admin-user-menu {
        gap: 10px;
    }
    
    .username {
        display: none;
    }
}


/* Estilos actualizados para el grid de géneros */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.genre-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--dorado);
}

.genre-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.genre-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.genre-card:hover .genre-image {
    transform: scale(1.05);
}

.genre-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 50px;
    background: #f9f9f9;
}

.genre-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.genre-info h3 {
    margin: 0 0 10px;
    color: var(--azul-oscuro);
    font-size: 18px;
}

.badge {
    background: var(--dorado-claro);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}


/* Estilos para la paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: var(--dorado);
    color: white;
    border-color: var(--dorado);
}


/* Estilos para el encabezado del género */
.genre-header, .search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-button {
    padding: 8px 15px;

    background: var(--azul-medio);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: var(--azul-oscuro);
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}