/* ============================================
   PET & PET - ESTILOS CLIENTE NO LOGUEADO (GUEST)
   ============================================ */

:root {
    --primary-green: #27AE60;
    --primary-magenta: #E91E63;
    --dark: #2C3E50;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gray: #95A5A6;
    --gray-dark: #7F8C8D;
    --text-secondary: #6C757D;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    padding-top: 80px; /* Espacio para navbar fijo */
    margin: 0;
    padding-bottom: 0;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   NAVBAR CLIENTE (GUEST Y LOGUEADO)
   ============================================ */

.guest-navbar,
.cliente-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 80px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 0.25rem; /* Espacio muy pequeño entre logo y navbar-menu */
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Espaciado muy compacto entre elementos */
    flex: 1;
    justify-content: center;
}

/* Eliminar cualquier margin/padding extra de los elementos hijos */
.navbar-menu > * {
    margin: 0;
    padding: 0;
}

/* Asegurar que los dropdowns no añadan espacio extra */
.navbar-menu > .nav-item.dropdown {
    flex-shrink: 0;
}

/* Espacio específico después del buscador */
.navbar-search {
    margin-right: 0.25rem;
}

/* Botón hamburger para móviles */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buscador en navbar */
.navbar-search {
    position: relative;
    max-width: 400px;
    width: 100%;
    /* Sin margin - el gap del navbar-menu maneja la separación */
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--dark);
    padding: 0.25rem 0.5rem;
}

/* Prevenir zoom en iPhone al seleccionar el input de búsqueda */
@media (max-width: 768px) {
    .search-box input {
        font-size: 16px !important; /* iOS requiere al menos 16px para evitar zoom automático */
    }
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--dark);
    transform: scale(1.1);
}

/* Sugerencias de búsqueda */
.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    display: none !important; /* Oculto por defecto */
    margin-top: 0.25rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-suggestions.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.search-suggestions-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-suggestions-item:last-child {
    border-bottom: none;
}

.search-suggestions-item:hover {
    background: var(--light);
}

.search-suggestions-item i {
    color: var(--primary-green);
    width: 20px;
}

.search-suggestions-item .suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 0.75rem;
    border: 1px solid var(--light);
}

.search-suggestions-item .suggestion-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
}

.search-suggestions-item .suggestion-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.search-suggestions-empty {
    padding: 1rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Aumentar altura en móviles para mostrar más productos */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed !important;
        bottom: 80px !important; /* Encima del navbar-actions */
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        max-height: calc(50vh - 80px) !important; /* 50% de la altura menos el espacio del navbar-actions */
        min-height: 300px !important; /* Altura mínima para mostrar al menos 3 productos */
        border-radius: 0 !important;
        border-top: 1px solid var(--light);
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1005 !important; /* Mayor que todo */
        width: 100% !important;
    }
    
    .search-suggestions-item {
        min-height: 70px; /* Altura mínima por item para mejor visibilidad */
        padding: 1rem;
    }
    
    .search-suggestions-item .suggestion-image {
        width: 60px;
        height: 60px;
    }
    
    .search-suggestions-item .suggestion-name {
        font-size: 0.95rem;
    }
    
    .search-suggestions-item .suggestion-meta {
        font-size: 0.8rem;
    }
}

.nav-item {
    position: relative;
    flex-shrink: 0; /* Evitar que se comprima */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary-green);
}

.nav-link .fa-chevron-down {
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-item.dropdown:hover .fa-chevron-down,
.nav-item.dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary-green);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Submenús anidados (marcas) */
.dropdown-item-submenu {
    position: relative;
}

.dropdown-item-submenu > .dropdown-item {
    justify-content: space-between;
}

.dropdown-item-submenu > .dropdown-item .fa-chevron-right {
    margin-left: auto;
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    min-width: 200px;
    max-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 1002;
    margin-left: 0.5rem;
}

/* Ajustar posición del submenú si está cerca del borde derecho */
.dropdown-item-submenu:last-child .dropdown-submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
}

.dropdown-item-submenu:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-item-submenu:hover > .dropdown-item .fa-chevron-right {
    transform: translateX(3px);
}

/* Scrollbar personalizado para submenús largos */
.dropdown-submenu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-submenu::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 3px;
}

.dropdown-submenu::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.dropdown-submenu::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--light);
    color: var(--primary-green);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-magenta);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

/* User Button y Avatar */
.user-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap; /* Evita que el texto se divida en múltiples líneas */
}

.user-button #userName {
    white-space: nowrap; /* Fuerza el nombre a una sola línea */
    overflow: hidden;
    text-overflow: ellipsis; /* Muestra "..." si el texto es muy largo */
    max-width: 150px; /* Limita el ancho máximo del nombre */
}

.user-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: #229954;
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* ============================================
   FOOTER CLIENTE (GUEST Y LOGUEADO)
   ============================================ */

/* Contenedor del footer - FOOTER MÓVIL (no fijo) */
#guestFooter,
#clienteFooter {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* El footer dentro del contenedor */
#guestFooter footer,
#guestFooter .guest-footer,
#clienteFooter footer,
#clienteFooter .cliente-footer,
.guest-footer,
.cliente-footer {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-green);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-green);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */

main {
    min-height: calc(100vh - 80px);
    padding-bottom: 2rem; /* Espacio normal al final */
    position: relative;
    margin-bottom: 0;
    width: 100%;
}

.container {
    max-width: 1600px !important; /* Aumentado para mejor distribución */
    margin: 0 auto;
    padding: 0 3rem !important; /* Aumentado padding lateral */
    width: 100%;
    box-sizing: border-box;
}

.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-brand {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-brand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ============================================
   SECCIONES DE INICIO
   ============================================ */

.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-text > p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-green);
    min-width: 40px;
}

.feature-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.125rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.categories-section {
    padding: 4rem 0;
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.category-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.featured-products-section {
    padding: 4rem 0;
    background: var(--light);
}

.featured-products-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.featured-products-section .section-title i {
    color: var(--primary-magenta);
    margin-right: 0.5rem;
}

.featured-products-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .featured-products-section {
        padding: 2.5rem 0;
    }
    
    .featured-products-section .section-title {
        font-size: 1.8rem;
    }
    
    .featured-products-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ============================================
   HERO DE PRODUCTOS
   ============================================ */

.productos-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.productos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.productos-hero-content {
    position: relative;
    z-index: 1;
}

.productos-hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
    transition: var(--transition);
}

.productos-hero-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.productos-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.productos-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Iconos específicos por categoría */
.productos-hero-icon.alimento-perros i::before {
    content: '\f1b0'; /* fa-dog */
}

.productos-hero-icon.alimento-gatos i::before {
    content: '\f6be'; /* fa-cat */
}

.productos-hero-icon.farmacia-perros i::before {
    content: '\f484'; /* fa-pills */
}

.productos-hero-icon.farmacia-gatos i::before {
    content: '\f21e'; /* fa-heart */
}

.page-header {
    margin: 2rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   PRODUCTOS
   ============================================ */

#productosContainer {
    width: 100%;
    padding-bottom: 2rem;
}

.productos-categoria {
    margin-bottom: 4rem;
    width: 100%;
}

.productos-categoria:last-child {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.productos-marca {
    margin-bottom: 3rem;
}

.productos-marca:last-child {
    margin-bottom: 0;
}

.marca-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.marca-title i {
    color: var(--primary-green);
    font-size: 1.3rem;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productos-subcategoria {
    margin-bottom: 2.5rem;
}

.productos-subcategoria:last-child {
    margin-bottom: 0;
}

.subcategoria-title {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(39, 174, 96, 0.05);
    border-radius: 6px;
    font-weight: 600;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-green);
    text-transform: capitalize;
}

#productos-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    justify-content: center;
}

/* Responsive breakpoints */
@media (max-width: 1399px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Grid de productos responsivo - 2 columnas en móviles */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .producto-card {
        padding: 0;
    }
    
    .producto-imagen {
        height: 140px;
    }
    
    .producto-info {
        padding: 0.75rem;
    }
    
    .producto-nombre {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .producto-sku {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .producto-marca {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    
    .producto-peso {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .producto-stock {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .producto-stock i {
        font-size: 0.7rem;
    }
    
    .precio-actual {
        font-size: 1.15rem;
    }
    
    .precio-tipo {
        font-size: 0.65rem;
    }
    
    .btn-block {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        min-height: 38px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .badge-stock {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        top: 0.35rem;
        right: 0.35rem;
    }
}

/* En pantallas grandes, aprovechar más el espacio */
/* Media queries para productos-grid ya definidos arriba */

/* Lista de productos de farmacia (sin imágenes) */
.productos-farmacia-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

.producto-farmacia-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-left: 4px solid var(--primary-green);
}

.producto-farmacia-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.producto-farmacia-item.sin-stock {
    opacity: 0.7;
    border-left-color: var(--gray);
}

.producto-farmacia-info {
    flex: 1;
    min-width: 0;
}

.producto-farmacia-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.producto-farmacia-descripcion {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.producto-farmacia-peso {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.producto-farmacia-peso i {
    color: var(--primary-green);
    font-size: 0.8rem;
}

.producto-farmacia-precio {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 120px;
}

.producto-farmacia-precio .precio-actual {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.producto-farmacia-accion {
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
}

.producto-farmacia-accion .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .producto-farmacia-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .producto-farmacia-precio,
    .producto-farmacia-accion {
        width: 100%;
        align-items: flex-start;
    }
    
    .producto-farmacia-accion .btn {
        width: 100%;
    }
}

.productos-categoria {
    margin-bottom: 4rem;
    width: 100%;
}

.productos-categoria:last-child {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

/* Duplicado eliminado - usar el estilo mejorado de arriba */

.producto-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.producto-card.sin-stock {
    opacity: 0.7;
}

.producto-imagen {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .producto-imagen {
        height: 180px;
    }
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.badge-stock {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-magenta);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.producto-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-nombre {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .producto-nombre {
        font-size: 0.95rem;
        min-height: 2.6em;
    }
}

.producto-sku {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
}

.producto-marca {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.producto-marca i {
    color: var(--primary-green);
    font-size: 0.85rem;
}

.producto-peso {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.producto-peso i {
    color: var(--gray);
    font-size: 0.85rem;
}

.producto-stock {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.producto-stock i {
    color: var(--gray);
    font-size: 0.85rem;
}

.producto-stock .stock-disponible {
    color: var(--primary-green);
    font-weight: 600;
}

.producto-stock .stock-bajo {
    color: #f39c12;
    font-weight: 600;
}

.producto-stock .stock-critico {
    color: #e74c3c;
    font-weight: 600;
}

.producto-farmacia-info .producto-stock {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.producto-precio {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.precio-actual {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.precio-tipo {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.btn-block {
    width: 100%;
    margin-top: auto;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-state i,
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Ocultar opciones móviles por defecto en desktop */
.mobile-user-menu,
.mobile-auth-menu,
.mobile-cart-btn,
.mobile-user-name {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 100px;
    }
    
    .navbar-container {
        padding: 0 1rem;
        position: relative;
    }
    
    /* Mostrar botón hamburger en móviles */
    .navbar-toggle {
        display: flex;
    }
    
    /* Botón de carrito móvil */
    .mobile-cart-btn {
        display: flex !important;
        position: relative;
        background: none;
        border: none;
        padding: 0.75rem;
        cursor: pointer;
        color: var(--dark);
        font-size: 1.25rem;
        border-radius: 8px;
        transition: var(--transition);
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .mobile-cart-btn:hover {
        background: var(--light);
        color: var(--primary-green);
    }
    
    .mobile-cart-btn .badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        background: var(--primary-green);
        color: var(--white);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
        min-width: 18px;
    }
    
    /* Ocultar menú por defecto en móviles */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start !important; /* Alinear contenido arriba */
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px - 80px); /* Altura máxima menos navbar y navbar-actions */
        overflow-y: auto;
        overflow-x: hidden; /* Evitar scroll horizontal */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: flex !important; /* Forzar display flex */
        border-radius: 0 0 12px 12px; /* Bordes redondeados abajo */
    }
    
    /* Contenedor para opciones de usuario (abajo) */
    .navbar-menu .mobile-user-bottom {
        margin-top: auto; /* Empujar hacia abajo */
        border-top: 3px solid var(--light);
        padding-top: 0.5rem;
    }
    
    .navbar-menu .mobile-user-bottom:first-of-type {
        margin-top: auto;
    }
    
    /* Asegurar que el navbar-search no corte las sugerencias */
    .navbar-menu .navbar-search {
        overflow: visible !important;
        position: relative;
        z-index: 1001; /* Mayor que el navbar-menu para que las sugerencias se muestren */
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    /* Buscador en móviles */
    .navbar-search {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--light);
        order: -1; /* Mover al inicio */
        position: relative; /* Asegurar contexto de posicionamiento */
        z-index: 1003; /* Mayor que el navbar-menu */
        overflow: visible !important; /* Permitir que las sugerencias se salgan */
        flex-shrink: 0; /* Evitar que se comprima */
    }
    
    /* Asegurar que las sugerencias se muestren justo debajo del buscador */
    .navbar-search .search-suggestions {
        position: fixed !important; /* Cambiar a fixed para que no se corte por el overflow del navbar-menu */
        top: calc(70px + 60px + 0.5rem) !important; /* Debajo del navbar + altura del buscador */
        left: 1rem !important; /* Alineado con el padding del navbar-search */
        right: 1rem !important;
        bottom: auto !important;
        max-height: calc(100vh - 70px - 60px - 80px - 1rem) !important; /* Altura disponible menos navbar, buscador y navbar-actions */
        min-height: 0 !important; /* Cambiar a 0 para que no ocupe espacio cuando está vacío */
        border-radius: 8px !important;
        border: 1px solid var(--light) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        z-index: 1005 !important; /* Mayor que todo para que se muestre sobre el navbar-menu */
        width: auto !important; /* Ancho automático basado en left/right */
        margin: 0 !important;
        background: var(--white) !important;
        transform: none !important; /* Asegurar que no haya transformaciones que lo muevan */
        display: none !important; /* Oculto por defecto */
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Mostrar solo cuando tiene la clase show */
    .navbar-search .search-suggestions.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 300px !important; /* Restaurar altura mínima cuando se muestra */
    }
    
    /* Cuando están en el body (movidas por JavaScript) - mantener fixed solo si es necesario */
    body > .search-suggestions {
        position: fixed !important;
        top: calc(70px + 60px + 0.5rem) !important; /* Debajo del navbar y del buscador */
        left: 1rem !important; /* Alineado con el padding */
        right: 1rem !important;
        bottom: auto !important;
        max-height: calc(100vh - 70px - 60px - 80px - 1rem) !important;
        min-height: 0 !important; /* Cambiar a 0 para que no ocupe espacio cuando está vacío */
        border-radius: 8px !important;
        border: 1px solid var(--light) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        z-index: 1005 !important;
        width: auto !important; /* Ancho automático basado en left/right */
        margin: 0 !important;
        background: var(--white) !important;
        transform: none !important; /* Asegurar que no haya transformaciones */
        display: none !important; /* Oculto por defecto */
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Mostrar solo cuando tiene la clase show */
    body > .search-suggestions.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 300px !important; /* Restaurar altura mínima cuando se muestra */
    }
    
    /* Items del menú en móviles */
    .navbar-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--light);
        display: block !important;
        flex-shrink: 0; /* Evitar que se compriman */
    }
    
    /* Mostrar nombre del usuario en móvil */
    .navbar-menu .mobile-user-name {
        display: block !important;
        width: 100%;
        padding: 1rem;
        border-bottom: 2px solid var(--light);
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary-green);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .mobile-user-name-text {
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

    /* Mostrar opciones de usuario/auth en móviles */
    .navbar-menu .mobile-user-menu,
    .navbar-menu .mobile-auth-menu {
        display: block !important;
    }
    
    /* Separador antes de las opciones de autenticación en móvil */
    .navbar-menu .mobile-auth-menu:first-of-type {
        border-top: 3px solid var(--light);
        margin-top: 0.5rem;
    }
    
    /* Opciones de usuario y autenticación solo en móvil */
    .navbar-menu .mobile-user-menu,
    .navbar-menu .mobile-auth-menu {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid var(--light);
        flex-shrink: 0;
    }
    
    /* Opciones de usuario con separador visual - mismo estilo que auth */
    .navbar-menu .mobile-user-bottom {
        margin-top: 0.5rem !important; /* Mismo espacio que mobile-auth-menu */
    }
    
    .navbar-menu .mobile-user-bottom:first-of-type {
        border-top: 3px solid var(--light) !important;
        margin-top: 0.5rem !important;
        padding-top: 0.75rem;
    }
    
    .navbar-menu .mobile-user-bottom:last-of-type {
        border-bottom: 1px solid var(--light) !important;
        margin-bottom: 0.5rem; /* Espacio al final */
    }
    
    /* Mismo estilo para mobile-user-menu y mobile-auth-menu */
    .navbar-menu .mobile-user-menu .nav-link,
    .navbar-menu .mobile-auth-menu .nav-link {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--dark);
        text-decoration: none;
        transition: var(--transition);
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .navbar-menu .mobile-user-menu .nav-link:hover,
    .navbar-menu .mobile-auth-menu .nav-link:hover {
        background: var(--light);
        color: var(--primary-green);
    }
    
    .navbar-menu .mobile-user-menu .nav-link i,
    .navbar-menu .mobile-auth-menu .nav-link i {
        width: 20px;
        min-width: 20px;
        text-align: center;
        color: var(--primary-green);
        font-size: 1rem;
    }
    
    .navbar-menu .nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: space-between;
        display: flex;
        align-items: center;
        color: var(--dark);
        background: transparent;
    }
    
    .navbar-menu .nav-link:hover {
        background: var(--light);
    }
    
    /* Dropdown en móviles */
    .navbar-menu .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        background: var(--light);
        margin-top: 0;
        padding: 0;
        display: none;
        width: 100%;
    }
    
    .navbar-menu .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .navbar-menu .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-menu .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .navbar-menu .dropdown-item-submenu {
        position: relative;
        display: block;
        width: 100%;
    }
    
    .navbar-menu .dropdown-item-submenu > .dropdown-item {
        position: relative;
        cursor: pointer;
    }
    
    .navbar-menu .dropdown-submenu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.08);
        margin: 0;
        margin-top: 0.25rem;
        padding: 0.5rem 0;
        display: none !important;
        width: 100%;
        max-height: none;
        overflow: visible;
        border-radius: 0;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .navbar-menu .dropdown-item-submenu.active .dropdown-submenu {
        display: block !important;
    }
    
    .navbar-menu .dropdown-submenu li {
        list-style: none;
        margin: 0;
    }
    
    .navbar-menu .dropdown-submenu .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--dark);
    }
    
    .navbar-menu .dropdown-submenu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-menu .dropdown-submenu .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* Indicador visual de submenú expandido */
    .navbar-menu .dropdown-item-submenu.active > .dropdown-item .fa-chevron-right {
        transform: rotate(90deg);
    }
    
    /* Asegurar que los iconos sean visibles */
    .navbar-menu .nav-link i,
    .navbar-menu .dropdown-item i {
        margin-right: 0.5rem;
        min-width: 20px;
    }
    
    /* Ocultar estilos de hover de escritorio en móviles */
    .navbar-menu .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar-menu .nav-item.dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    /* Desactivar hover en submenús para móviles */
    .navbar-menu .dropdown-item-submenu:hover .dropdown-submenu {
        display: none !important;
    }
    
    .navbar-menu .dropdown-item-submenu.active .dropdown-submenu {
        display: block !important;
    }
    
    /* Asegurar que los submenús no se salgan de la pantalla */
    .navbar-menu .dropdown-submenu {
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Ocultar navbar-actions del contenedor principal en móviles */
    .navbar-container > .navbar-actions {
        display: none;
    }
    
    /* Acciones del navbar en móviles (se mostrarán en la parte inferior) */
    .navbar-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0.75rem 1rem;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 998;
        gap: 0.5rem;
    }
    
    
    .auth-buttons {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .auth-buttons .btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Botón de usuario en móviles */
    .user-button {
        padding: 0.5rem;
    }
    
    .user-button #userName {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    body {
        padding-top: 80px;
        padding-bottom: 80px; /* Espacio para navbar actions en móvil */
    }
    
    /* Ajustar altura del navbar en móviles */
    .guest-navbar,
    .cliente-navbar {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .productos-grid {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .producto-imagen {
        height: 120px;
    }
    
    .producto-info {
        padding: 0.65rem;
    }
    
    .producto-nombre {
        font-size: 0.8rem;
    }
    
    .precio-actual {
        font-size: 1rem;
    }
    
    .btn-block {
        padding: 0.6rem 0.65rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .brand-logo {
        height: 40px;
    }
}

/* ============================================
   MODAL GENÉRICO (Recuperación de Contraseña)
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-magenta) 100%);
    color: var(--white);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* ============================================
   MODAL CARRITO DE COMPRAS
   ============================================ */

.modal-carrito-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal-carrito {
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-carrito-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-green);
    color: var(--white);
}

.modal-carrito-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Indicador de pasos */
.pasos-indicador {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light);
    background: var(--light);
}

.paso-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.paso-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: var(--gray);
    z-index: 0;
}

.paso-item.completado:not(:last-child)::after {
    background: var(--primary-green);
}

.paso-numero {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.paso-item.activo .paso-numero {
    background: var(--primary-green);
}

.paso-item.completado .paso-numero {
    background: var(--primary-green);
}

.paso-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.paso-item.activo .paso-label {
    color: var(--primary-green);
    font-weight: 600;
}

/* Contenido del modal */
.modal-carrito-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.paso-contenido h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.25rem;
}

/* Lista de productos del carrito */
.productos-carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producto-carrito-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    background: var(--white);
}

.producto-carrito-imagen img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-carrito-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--dark);
}

.producto-carrito-info .producto-marca {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.producto-carrito-info .producto-precio {
    margin: 0;
    font-weight: 600;
    color: var(--primary-green);
}

.producto-carrito-cantidad {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cantidad {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-cantidad:hover {
    background: var(--light);
    border-color: var(--primary-green);
}

.cantidad-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.producto-carrito-subtotal {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.btn-eliminar {
    background: #E74C3C;
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-eliminar:hover {
    background: #C0392B;
}

/* Resumen del pedido */
.resumen-pedido {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resumen-productos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
}

.resumen-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.resumen-item-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.resumen-item-total {
    font-weight: 600;
    font-size: 1.125rem;
}

.resumen-totales {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.resumen-linea.total {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 2px solid var(--dark);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Dirección de entrega */
.direccion-entrega {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tipo-entrega-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--primary-green);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary-green);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    background: rgba(39, 174, 96, 0.05);
}

.radio-option span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Estilos para opción deshabilitada */
.radio-option.disabled-option {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light);
    position: relative;
}

.radio-option.disabled-option::after {
    content: "No disponible";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.radio-option.disabled-option:hover {
    border-color: var(--light);
    background: var(--light);
}

.radio-option.disabled-option input[type="radio"] {
    cursor: not-allowed;
}

.radio-option.disabled-option span {
    cursor: not-allowed;
    color: var(--gray);
}

/* Badge de Envío Gratis en el radio button */
.envio-gratis-badge {
    background: linear-gradient(135deg, var(--primary-green), #229954);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
    }
}

/* Mensaje destacado de Envío Gratis */
.envio-gratis-mensaje {
    background: linear-gradient(135deg, #e8f8f5, #d5f4e6);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.envio-gratis-mensaje i {
    font-size: 2rem;
    color: var(--primary-green);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.envio-gratis-mensaje strong {
    color: var(--primary-green);
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.envio-gratis-mensaje span {
    color: var(--dark);
    font-size: 0.95rem;
    flex: 1;
}

.usar-direccion-cliente {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.direccion-mostrada {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.direccion-mostrada p {
    margin: 0.5rem 0;
}

.direccion-formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-control {
    padding: 0.7rem 0.875rem;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ============================================
   LOGIN PAGE - LAYOUT DIVIDIDO
   ============================================ */

.login-page {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.login-page {
    padding-top: 0 !important;
}

.login-main {
    flex: 1;
    padding: 5rem 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px - 200px);
    margin-top: 2rem;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 1.0rem auto 0;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: calc(85vh - 2rem);
    min-height: 500px;
}

/* Lado Izquierdo: Branding */
.login-branding {
    flex: 0 0 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand-logo-large {
    margin-bottom: 0;
    flex-shrink: 0;
}

.brand-logo-large h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.branding-image {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-icon.icon-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.floating-icon.icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

.branding-illustration {
    font-size: 5rem;
    opacity: 0.3;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.branding-quote {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.branding-quote p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.branding-quote small {
    font-size: 0.75rem;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Lado Derecho: Formulario */
.login-form-section {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem;
    overflow-y: auto;
    min-height: 500px;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tabs de Tipo de Usuario */
.user-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--light);
    padding: 0.4rem;
    border-radius: 10px;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.tab-button:hover {
    background: rgba(39, 174, 96, 0.1);
    color: var(--primary-green);
}

.tab-button.active {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.tab-button.active i {
    color: var(--white);
}

.tab-button[data-user-type="admin"].active {
    background: var(--primary-magenta);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.tab-button[data-user-type="superadmin"].active {
    background: #9B59B6;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.login-form-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive */
@media (max-width: 968px) {
    .login-main {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        max-height: none;
        border-radius: 16px;
    }
    
    .login-branding {
        flex: 0 0 auto;
        min-height: 350px;
        padding: 2rem 1.5rem;
    }
    
    .branding-content {
        height: auto;
        padding: 0;
    }
    
    .brand-logo-large {
        margin-bottom: 1.5rem;
    }
    
    .brand-logo-large h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .branding-image {
        min-height: 150px;
        margin: 1.5rem 0;
    }
    
    .branding-illustration {
        font-size: 4rem;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .login-form-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .form-wrapper {
        height: auto;
    }
    
    .login-form-container {
        justify-content: flex-start;
    }
    
    .user-type-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-button {
        width: 100%;
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .login-main {
        padding: 1.5rem 1rem;
    }
    
    .login-branding {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }
    
    .login-form-section {
        padding: 1.5rem 1rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
    
    .brand-logo-large h1 {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .branding-image {
        height: 150px;
    }
    
    .branding-illustration {
        font-size: 3rem;
    }
    
    .branding-quote p {
        font-size: 0.95rem;
    }
    
    .branding-quote small {
        font-size: 0.75rem;
    }
}

/* ============================================
   SELECTOR DE TIPO DE USUARIO (LEGACY - para compatibilidad)
   ============================================ */

.user-type-selector {
    text-align: center;
    margin-bottom: 2rem;
}

.user-type-selector h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.user-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-type-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-magenta));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.user-type-card:hover::before {
    transform: scaleX(1);
}

.user-type-card[data-user-type="cliente"]:hover {
    border-color: var(--primary-green);
}

.user-type-card[data-user-type="admin"]:hover {
    border-color: var(--primary-magenta);
}

.user-type-card[data-user-type="superadmin"]:hover {
    border-color: #9B59B6;
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.user-type-card[data-user-type="admin"] .card-icon {
    background: linear-gradient(135deg, var(--primary-magenta), #C0392B);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.user-type-card[data-user-type="superadmin"] .card-icon {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.user-type-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.user-type-card[data-user-type="admin"]:hover .card-icon {
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.user-type-card[data-user-type="superadmin"]:hover .card-icon {
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

.user-type-card h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.user-type-card:hover h3 {
    color: var(--primary-green);
}

.user-type-card[data-user-type="admin"]:hover h3 {
    color: var(--primary-magenta);
}

.user-type-card[data-user-type="superadmin"]:hover h3 {
    color: #9B59B6;
}

.user-type-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Botón Volver */
.btn-back {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background: var(--gray);
    color: var(--white);
    border-color: var(--gray);
    transform: translateX(-5px);
}

.btn-back i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .user-type-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .user-type-card {
        padding: 2rem 1.5rem;
    }
    
    .user-type-selector h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* ============================================
   AUTENTICACIÓN - LOGIN Y REGISTRO
   ============================================ */

.auth-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
}

.auth-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.auth-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.auth-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.auth-container {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-green);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: #229954;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light);
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.register-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link:hover {
    color: #229954;
    text-decoration: underline;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.3s ease-out;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--primary-green);
    color: #1e8449;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #c0392b;
}

.alert i {
    font-size: 1.25rem;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pago */
.pago-stripe-pendiente {
    padding: 2rem;
}

.info-box {
    text-align: center;
}

/* ============================================
   STRIPE PAYMENT STYLES
   ============================================ */

.stripe-payment-container {
    padding: 1.5rem 0;
}

.stripe-form {
    max-width: 600px;
    margin: 0 auto;
}

.stripe-card-section {
    margin-bottom: 2rem;
}

.stripe-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.stripe-card-element {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    transition: border-color var(--transition);
}

.stripe-card-element:focus-within {
    border-color: var(--primary-green);
    outline: none;
}

.stripe-errors {
    color: var(--primary-magenta);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.stripe-errors[style*="block"] {
    display: block !important;
}

.stripe-pay-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background var(--transition);
    margin-top: 1.5rem;
}

.stripe-pay-button:hover:not(:disabled) {
    background: #229954;
}

.stripe-pay-button:disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
}

.stripe-pay-button.processing {
    background: var(--gray);
}

.stripe-test-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.stripe-test-info p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stripe-test-info strong {
    color: var(--dark);
}

.stripe-test-info code {
    background: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-green);
    border: 1px solid #e0e0e0;
}

.pago-stripe-error {
    padding: 2rem;
}

.pago-stripe-error .alert {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-magenta);
}

.pago-stripe-error .alert-danger {
    background: #fff5f5;
    color: var(--primary-magenta);
}

.pago-stripe-error h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.pago-stripe-error i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}

.info-box i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.info-box h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.info-box p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Footer del modal */
.modal-carrito-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: var(--light);
}

.modal-carrito-footer .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .modal-carrito-overlay {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .modal-carrito {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px;
        margin: 0;
    }
    
    .modal-carrito-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-carrito-header h2 {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .modal-close {
        font-size: 1.25rem;
        padding: 0.25rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .modal-carrito-body {
        padding: 1rem;
        max-height: calc(95vh - 200px);
    }
    
    .paso-contenido h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .producto-carrito-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .producto-carrito-imagen img {
        width: 60px;
        height: 60px;
    }
    
    .producto-carrito-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .producto-carrito-info .producto-marca {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .producto-carrito-info .producto-precio {
        font-size: 0.85rem;
    }
    
    .producto-carrito-cantidad {
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .btn-cantidad {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        min-width: 28px;
    }
    
    .input-cantidad {
        width: 40px;
        font-size: 0.9rem;
        padding: 0.25rem;
        text-align: center;
    }
    
    .producto-carrito-subtotal {
        font-size: 1rem;
        margin-top: 0.25rem;
    }
    
    .btn-eliminar {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        min-height: 32px;
        margin-top: 0.25rem;
    }
    
    .producto-carrito-cantidad,
    .producto-carrito-subtotal,
    .btn-eliminar {
        grid-column: 2;
    }
    
    .modal-carrito-footer {
        padding: 1rem 1.25rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .modal-carrito-footer .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        flex: 1;
        min-width: 120px;
    }
    
    .modal-carrito-footer .btn-primary {
        flex: 1.5;
    }
    
    .pasos-indicador {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .paso-label {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .paso-numero {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    /* Ajustes para formularios en el carrito */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .radio-option {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    
    /* Resumen del pedido */
    .resumen-pedido {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .resumen-item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .resumen-total {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }
}

/* ============================================
   PEDIDOS DEL CLIENTE - SEGUIMIENTO
   ============================================ */

.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pedido-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.pedido-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
    gap: 1rem;
}

.pedido-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.pedido-fecha {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.pedido-estado {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.estado-badge,
.pago-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pedido-seguimiento {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
}

.pedido-seguimiento h4 {
    margin: 0 0 1.5rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item.completado .timeline-marker {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.timeline-item.activo .timeline-marker {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    animation: pulse-ring 2s ease-out infinite;
}

.timeline-item.completado ~ .timeline-item .timeline-marker {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: var(--text-secondary);
}

.timeline-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.125rem;
}

.timeline-item.completado .timeline-content h5,
.timeline-item.activo .timeline-content h5 {
    color: var(--primary-green);
}

.timeline-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timeline-content small {
    color: var(--gray);
    font-size: 0.75rem;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.pedido-detalles {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
}

.pedido-detalle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pedido-detalle-item:last-child {
    border-bottom: none;
}

.pedido-detalle-item strong {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pedido-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--dark);
    text-align: right;
    font-size: 1.25rem;
    color: var(--dark);
}

.pedido-productos {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light);
}

.pedido-productos h4 {
    margin: 0 0 1.5rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.productos-lista {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.producto-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--light);
    border-radius: 8px;
}

/* Imágenes de productos en la vista de pedidos (más específico) */
.pedido-productos .producto-item .producto-imagen {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.pedido-productos .producto-item .producto-imagen-placeholder {
    width: 60px;
    height: 60px;
    background: var(--gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.producto-info {
    flex: 1;
}

.producto-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark);
    font-size: 1rem;
}

.producto-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.producto-subtotal {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.125rem;
}

.pedido-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.estado-descripcion {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.875rem;
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--primary-magenta);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: var(--primary-magenta);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .pedidos-lista {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .pedido-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    .pedido-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .pedido-info h3 {
        font-size: 1.25rem;
    }

    .pedido-fecha {
        font-size: 0.8rem;
    }

    .pedido-estado {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .estado-badge,
    .pago-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .pedido-seguimiento {
        margin: 1.25rem 0;
        padding: 1rem;
    }

    .pedido-seguimiento h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.25rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .timeline-content h5 {
        font-size: 0.95rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-content small {
        font-size: 0.7rem;
    }

    .pedido-detalles {
        margin: 1.25rem 0;
        padding: 1rem;
    }

    .pedido-detalle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.65rem 0;
    }

    .pedido-detalle-item strong {
        font-size: 0.85rem;
    }

    .pedido-detalle-item span {
        font-size: 0.85rem;
        word-break: break-word;
        text-align: left;
    }

    .pedido-total {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        font-size: 1.1rem;
        text-align: left;
    }

    .pedido-productos {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .pedido-productos h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .productos-lista {
        gap: 0.75rem;
    }

    .producto-item {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .pedido-productos .producto-item .producto-imagen,
    .pedido-productos .producto-item .producto-imagen-placeholder {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .producto-info {
        min-width: 0;
        flex: 1;
    }

    .producto-info h5 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        word-break: break-word;
    }

    .producto-info p {
        font-size: 0.8rem;
    }

    .producto-subtotal {
        font-size: 1rem;
        flex-shrink: 0;
        text-align: right;
        min-width: 60px;
    }

    .pedido-footer {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .estado-descripcion {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pedidos-lista {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .pedido-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .pedido-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .pedido-info h3 {
        font-size: 1.1rem;
    }

    .pedido-fecha {
        font-size: 0.75rem;
    }

    .estado-badge,
    .pago-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }

    .pedido-seguimiento {
        margin: 1rem 0;
        padding: 0.75rem;
    }

    .pedido-seguimiento h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .timeline {
        padding-left: 1.25rem;
    }

    .timeline-item {
        margin-bottom: 1.25rem;
        padding-left: 1.25rem;
    }

    .timeline-marker {
        left: -1rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .timeline-content h5 {
        font-size: 0.9rem;
    }

    .timeline-content p {
        font-size: 0.75rem;
    }

    .pedido-detalles {
        margin: 1rem 0;
        padding: 0.75rem;
    }

    .pedido-detalle-item {
        padding: 0.5rem 0;
    }

    .pedido-detalle-item strong {
        font-size: 0.8rem;
    }

    .pedido-detalle-item span {
        font-size: 0.8rem;
    }

    .pedido-total {
        font-size: 1rem;
    }

    .pedido-productos {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .pedido-productos h4 {
        font-size: 0.95rem;
    }

    .producto-item {
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .pedido-productos .producto-item .producto-imagen,
    .pedido-productos .producto-item .producto-imagen-placeholder {
        width: 45px;
        height: 45px;
    }

    .producto-info h5 {
        font-size: 0.85rem;
    }

    .producto-info p {
        font-size: 0.75rem;
    }

    .producto-subtotal {
        font-size: 0.95rem;
        min-width: 55px;
    }
}

/* ============================================
   CONTROLES DEL CARRITO
   ============================================ */

.carrito-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.carrito-controls .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cantidad-carrito {
    font-weight: 600;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
    color: var(--dark);
}

/* ============================================
   NOTIFICACIONES
   ============================================ */

.notificacion {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    min-width: 250px;
    max-width: 400px;
}

.notificacion.show {
    opacity: 1;
    transform: translateX(0);
}

.notificacion i {
    font-size: 1.25rem;
}

.notificacion-success {
    border-left: 4px solid var(--primary-green);
}

.notificacion-success i {
    color: var(--primary-green);
}

.notificacion-info {
    border-left: 4px solid #3498DB;
}

.notificacion-info i {
    color: #3498DB;
}

.notificacion-warning {
    border-left: 4px solid #F39C12;
}

.notificacion-warning i {
    color: #F39C12;
}

.notificacion-error {
    border-left: 4px solid #E74C3C;
}

.notificacion-error i {
    color: #E74C3C;
}

.notificacion span {
    color: var(--dark);
    font-weight: 500;
}
