:root {
    --blanco-1: #ffffff;
    --blanco-2: #f8f8f8;
    --blanco-3: #f0f0f0;
    --negro: #000000;
    --azul-claro: #6ba8e6;
    --azul-oscuro: #133b72;
    --sombra: 0 4px 8px rgba(0, 0, 0, 0.2);
    --gris-claro-opcion: #e0e0e0;
    --sombra-hover: 0 8px 20px rgba(0, 0, 0, 0.3);
    --borde-glow: 1px solid rgba(107, 168, 230, 0.5);
}

/* Estilos generales */
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--blanco-3);
    color: var(--negro);
}

.main-content {
    margin-bottom: 300px;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
}

/* Contenedor principal */
.contenedor-tienda {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

/* Estilos para notificaciones */
.notificacion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notificacion.mostrar {
    transform: translateY(0);
    opacity: 1;
}

.notificacion.error {
    background-color: #f44336;
}

.notificacion.info {
    background-color: #2196F3;
}

.notificacion-contenido {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para vista previa del carrito */
.vista-previa-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    border: 1px solid #e0e0e0;
}

.vista-previa-carrito.mostrar {
    transform: translateY(0);
    opacity: 1;
}

.vista-previa-contenido {
    position: relative;
    min-width: 200px;
}

.vista-previa-contenido h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.btn-ver-carrito {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-ver-carrito:hover {
    background-color: #1a252f;
}

.btn-cerrar-vista-previa {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-cerrar-vista-previa:hover {
    background: #d32f2f;
}

/* Animación para botones de añadir */
.btn-agregar-carrito.adding {
    opacity: 0.7;
    cursor: wait;
}

.carrito-contador.updated {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Estilos para el carrito */
.contenedor-carrito {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Header */
.header {
    width: 100%;
    background-color: var(--blanco-1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1000;
}

.header.fixed {
    position: fixed;
    top: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Navbar */
.nav-links a {
    color: var(--negro);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a7bd5, #6ba8e6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a i,
.nav-links a .nav-label {
    display: none;
}

/* Estilos para el nuevo botón "Tienda" en la navbar */
.nav-item-with-label {
    padding: 0.6rem 1.5rem;
    overflow: visible;
    justify-content: flex-start;
    gap: 0;
    width: auto;
}

.nav-item-with-label i {
    display: block;
    font-size: 1.2em;
    color: var(--negro);
    transition: color 0.3s ease, transform 0.3s ease;
    margin-right: 0.5rem;
    transform: translateX(0);
}

.nav-item-with-label .nav-label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: var(--azul-oscuro);
    color: var(--blanco-1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-item-with-label:hover i {
    color: var(--blanco-1);
    transform: translateX(-10px);
}

.nav-item-with-label:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Estilos para el icono del carrito */
.carrito-link {
    position: relative;
    color: var(--azul-oscuro);
    text-decoration: none;
    font-size: 1.2rem;
}

.carrito-contador {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--azul-claro);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Vista previa del carrito */
.vista-previa-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #ddd;
}

.vista-previa-carrito.mostrar {
    transform: translateY(0);
    opacity: 1;
}

.vista-previa-contenido {
    position: relative;
    min-width: 200px;
}

.vista-previa-contenido h4 {
    margin: 0 0 1rem 0;
    color: var(--azul-oscuro);
}

.btn-ver-carrito {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--azul-oscuro);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btn-cerrar-vista-previa {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrito-vacio {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.btn-tienda {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--azul-oscuro);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.producto-carrito {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.producto-carrito img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1rem;
}

.info-producto {
    flex-grow: 1;
}

.resumen-carrito {
    text-align: right;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.btn-pagar {
    padding: 0.8rem 1.5rem;
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* Notificaciones */
.notificacion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notificacion.mostrar {
    transform: translateY(0);
    opacity: 1;
}

.notificacion.error {
    background-color: #f44336;
}

/*FOOTER*/
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0a0a0a;
    color: #e0e0e0;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-logo p {
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 0.4rem 0;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00bfff;
}

.footer-social .social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: #bbb;
    transition: color 0.3s;
}

.footer-social .social-icons a:hover {
    color: #00bfff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #777;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}