/* =====================================================
   ESTILOS GENERALES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 70px; /* Espacio para el header fijo */
}

/* =====================================================
   HEADER FIJO Y MENÚ HAMBURGUESA PROFESIONAL
   ===================================================== */
header {
    background-color: #FFFFFF;
    color: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
     transition: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* Menú de escritorio */
.menu-desktop {
    display: flex;
    align-items: center;
}

.menu-desktop ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.menu-desktop a {
    color: #654321;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-desktop a:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
}

.menu-desktop a.active {
    background-color: #FFFFFF;
    font-weight: bold;
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    background: #000000;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    z-index: 1002;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  border: 1px solid #fff3;
}
.whatsapp-btn:hover {
  background-color: #1da85c;
  color: white;
}


/* =====================================================
   MENÚ MÓVIL - DISEÑO PROFESIONAL SIN CAJAS
   ===================================================== */
.menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    padding: 70px 20px 30px;
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.menu-mobile.active {
    right: 0;
}

.menu-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-mobile li {
    margin-bottom: 5px;
}

.menu-mobile a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-radius: 0;
    background: none;
    border: none;
    font-weight: normal;
}

.menu-mobile a:hover {
    background-color: #f5f5f5;
    color: #8B4513;
}

.menu-mobile a.active {
    color: #8B4513;
    font-weight: 600;
    background: none;
    border-left: 3px solid #8B4513;
}

.menu-mobile a i {
    font-size: 1.1rem;
    color: #8B4513;
    width: 20px;
    text-align: center;
}

.menu-mobile .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    width: auto;
    height: auto;
}

.menu-mobile .close-menu:hover {
    color: #8B4513;
    background: none;
    transform: none;
}

/* Estilo especial para el carrito en menú móvil */
.menu-mobile a .carrito-contador {
    background-color: #8B4513;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
}

/* Overlay más sutil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

/* Header con scroll */
header.scrolled {
    padding: 0.3rem 2rem;
    background-color: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(5px);
}

/* Carrito en menú */
.carrito-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.carrito-contador {
    background-color: #ffc107;
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.carrito-contador.actualizado {
    animation: pulse 0.5s ease;
}

/* =====================================================
   MAIN Y CONTENEDORES PRINCIPALES
   ===================================================== */
 

/* =====================================================
   BOTONES
   ===================================================== */
button, .button, .btn-primary {
    background-color: #8B4513;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover, .button:hover, .btn-primary:hover {
    background-color: #654321;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

button:disabled,
.btn:disabled,
button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =====================================================
   TABLAS
   ===================================================== */
.table-container {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin: 1rem 0;
}

th {
    background-color: #8B4513;
    color: white;
    padding: 12px;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f5f5f5;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   TARJETAS Y GRIDS
   ===================================================== */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(to right, #8B4513, #654321);
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.card-header i {
    margin-right: 10px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* =====================================================
   SELECTOR DE FECHAS
   ===================================================== */
.fecha-selector {
    text-align: center;
    margin: 20px 0 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fecha-selector h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.fecha-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
}

.fecha-boton {
    background: white;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.fecha-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    border-color: #654321;
}

.fecha-boton.seleccionado {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.fecha-boton.seleccionado .dia-semana {
    color: rgba(255,255,255,0.9);
}

.fecha-boton .dia-semana {
    font-size: 1.1rem;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 3px;
}

.fecha-boton .fecha-completa {
    font-size: 1rem;
    margin-bottom: 8px;
}

.info-seleccion {
    background: #e8f4f8;
    border-left: 4px solid #8B4513;
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
}

.info-seleccion .fecha-elegida {
    font-size: 1.1rem;
    font-weight: bold;
    color: #8B4513;
}

/* =====================================================
   CATEGORÍAS
   ===================================================== */
.categoria-section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

.categoria-titulo {
    background: linear-gradient(to right, #8B4513, #654321);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =====================================================
   PRODUCTOS - GRID Y TARJETAS
   ===================================================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.producto-card {
    background: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.no-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.producto-card h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.producto-card .descripcion {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* =====================================================
   PRODUCTOS - BOTÓN COMPRAR (MITAD DEL ANCHO)
   ===================================================== */

/* Contenedor del formulario para centrar el botón */
.producto-card form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Input de cantidad - tamaño reducido */
.producto-card input[type="number"] {
    width: 50px;
    padding: 6px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 0.85rem;
}

/* Botón comprar - tamaño reducido (mitad del ancho) */
.producto-card .btn-comprar {
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.85rem;
    font-weight: bold;
    width: auto;
    min-width: 80px;
    max-width: 120px;
    flex: 0 1 auto;
}

.producto-card .btn-comprar:hover:not(:disabled) {
    background-color: #654321;
}

/* Botón agotado - mismo tamaño */
.producto-agotado-mensaje {
    margin-top: 10px;
    text-align: center;
}

.btn-agotado {
    background-color: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px 12px;
    min-width: 80px;
    max-width: 120px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    cursor: not-allowed;
    margin: 0 auto;
}

.icono-agotado {
    font-size: 1rem;
}

/* Ocultar badge de disponibilidad normal */
.stock-badge:not(.stock-bajo) {
    display: none;
}

/* Badge de agotado */
.stock-badge.stock-bajo {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Ribbon de agotado */
.agotado-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 20;
}

/* Contador de productos en carrito */
.producto-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffc107;
    color: #333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 30;
}

.producto-contador.visible {
    opacity: 1;
    transform: scale(1);
}

/* Productos agotados */
.producto-card.producto-agotado {
    opacity: 0.85;
    background-color: #fafafa;
    border: 1px solid #ffcdd2;
    position: relative;
    overflow: hidden;
}

.producto-card.producto-agotado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.imagen-agotado {
    filter: grayscale(80%);
    opacity: 0.7;
}

.producto-agotado .stock-badge.stock-bajo {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.producto-card.producto-agotado:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =====================================================
   CARRITO FLOTANTE INFERIOR
   ===================================================== */
.cart-flotante {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    border: 2px solid #8B4513;
    transition: all 0.3s ease;
}

.cart-flotante:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.cart-flotante .cart-icon {
    font-size: 1.5rem;
    color: #8B4513;
}

.cart-flotante .cart-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-flotante .cart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-flotante .cart-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.cart-flotante .cart-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.cart-flotante .cart-value.total {
    color: #8B4513;
    font-size: 1.3rem;
}

.cart-flotante .cart-link {
    background-color: #8B4513;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cart-flotante .cart-link:hover {
    background-color: #654321;
}

.cart-flotante.vacio {
    opacity: 0.7;
    border-color: #ccc;
}

.cart-flotante.vacio .cart-link {
    background-color: #999;
    pointer-events: none;
}

/* =====================================================
   NOTIFICACIONES Y MENSAJES
   ===================================================== */
.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    font-weight: bold;
    min-width: 300px;
}

.notificacion.mostrar {
    transform: translateX(0);
}

.notificacion.error {
    background-color: #dc3545;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 3px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 3px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
}

/* =====================================================
   ESTADOS VACÍOS
   ===================================================== */
.no-productos {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 5px;
    color: #666;
}

.no-productos h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 5px;
    margin: 20px 0;
}

.empty-cart h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

.empty-cart .btn-continuar {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.empty-cart .btn-continuar:hover {
    background-color: #654321;
}

/* =====================================================
   BOTÓN VOLVER ARRIBA
   ===================================================== */
.volver-arriba {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #8B4513;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    border: none;
    font-size: 1.3rem;
    z-index: 999;
}

.volver-arriba.visible {
    opacity: 1;
    visibility: visible;
}

.volver-arriba:hover {
    background: #654321;
    transform: translateY(-3px);
}

/* =====================================================
   FOOTER
   ===================================================== */
	/* Footer */
	footer {
		background: #FFFFFF;
		color: white;
		text-align: center;
		padding: 20px;
		margin-top: 40px;
		font-size: 0.9rem;
		margin-bottom: 80px;
	}
	
	footer p {
		margin: 3px 0;
	}
	footer {
		margin-bottom: 100px;
	}

/* =====================================================
   MODALES DE BOOTSTRAP PERSONALIZADOS
   ===================================================== */
.modal-confirmar {
    color: #636363;
}

.modal-confirmar .modal-content {
    padding: 20px;
    border-radius: 10px;
    border: none;
}

.modal-confirmar .modal-header {
    border-bottom: none;
    position: relative;
    justify-content: center;
}

.modal-confirmar .modal-body {
    text-align: center;
    font-size: 1.1rem;
    padding: 20px;
}

.modal-confirmar .modal-footer {
    border-top: none;
    justify-content: center;
    gap: 10px;
}

.modal-confirmar .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #8B4513;
}

.modal-confirmar .btn-confirmar {
    background-color: #28a745;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-confirmar .btn-confirmar:hover {
    background-color: #218838;
}

.modal-confirmar .btn-cancelar {
    background-color: #6c757d;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-confirmar .btn-cancelar:hover {
    background-color: #5a6268;
}

/* =====================================================
   ANIMACIONES
   ===================================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

/* =====================================================
   MEDIA QUERIES - RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    header.scrolled {
        padding: 0.3rem 1rem;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .menu-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-mobile {
        display: block;
        width: 220px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .hero-mini h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .fecha-botones {
        flex-direction: column;
        align-items: center;
    }
    
    .fecha-boton {
        width: 100%;
        max-width: 280px;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .agotado-ribbon {
        top: 15px;
        right: -35px;
        padding: 4px 30px;
        font-size: 0.7rem;
    }
    
    /* Botones más pequeños en móvil */
    .producto-card .btn-comprar {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .producto-card input[type="number"] {
        width: 45px;
        padding: 5px 3px;
    }
    
    .btn-agotado {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    /* Carrito flotante responsive */
    .cart-flotante {
        width: 90%;
        padding: 10px 15px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        bottom: 10px;
    }
    
    .cart-flotante .cart-info {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cart-flotante .cart-item {
        min-width: 60px;
    }
    
    .cart-flotante .cart-value {
        font-size: 1rem;
    }
    
    .cart-flotante .cart-value.total {
        font-size: 1.1rem;
    }
    
    .cart-flotante .cart-link {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .volver-arriba {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .notificacion {
        left: 20px;
        right: 20px;
        min-width: auto;
        text-align: center;
    }
    
    footer {
        margin-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .menu-mobile {
        width: 200px;
    }
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
  .hero {
    height: 50vh; /* menos alto en móvil */
    padding: 0 0.5rem;
  }

  .hero .btn {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  .section-text {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  h2, h4 {
    font-size: 1.4rem; /* títulos más pequeños */
  }

  ol li {
    margin-bottom: 0.5rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero {
    height: 40vh;
  }

  .hero .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  h2, h4 {
    font-size: 1.2rem;
  }

  .section-text {
    font-size: 0.9rem;
  }
}