@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');

:root {
    --mc-primary: #1e40af;
    --mc-primary-dark: #1e3a8a;
    --mc-primary-light: #3b82f6;
    --mc-accent: #f59e0b;
    --mc-featured: #f59e0b;
    --mc-text-main: #0f172a;
    --mc-text-muted: #64748b;
    --mc-bg-card: #ffffff;
    --mc-radius: 1.25rem;
    --mc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --mc-shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --mc-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* EFECTO DE CARGA INTELIGENTE (FLASH-PLACEHOLDER) */
.lazy-load-premium {
    filter: blur(10px) grayscale(30%);
    opacity: 0.6;
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lazy-load-premium.img-loaded {
    filter: blur(0) grayscale(0);
    opacity: 1;
}

/* FIX LOGO STICKY (ONLY VISIBLE ON SCROLL) */
.mic-sticky-logo {
    display: none !important; /* hidden by default */
}

/* El selector anterior era incorrecto ya que .aa-header-bottom-area no está dentro de #menu */
#menu.aa-sticky .menu-area {
    min-height: 60px !important;
    height: auto !important;
}

#menu.aa-sticky .mic-sticky-logo {
    display: flex !important;
    align-items: center;
    background-color: #ffffff !important; /* fondo blanco solicitado */
    padding: 2px 14px !important; 
    border-radius: 8px !important;
    margin-right: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    height: 48px !important;
    align-self: center;
}

#menu.aa-sticky .mic-sticky-logo img {
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* MOBILE-ONLY HEADER & TOGGLE */
@media (max-width: 991px) {
    .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        padding: 8px 0; /* Espaciado para evitar que quede 'cargado arriba' */
    }

    .mic-hamburger,
    .navbar-toggle {
        display: flex !important;
        align-items: center;
        gap: 12px;
        background-color: var(--mc-primary) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 8px 15px !important;
        border-radius: 8px !important;
        margin: 0 !important; /* Reset margin to rely on flex alignment */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        height: 42px; /* Altura fija para centrado consistente */
    }
    
    .navbar-toggle.mic-hamburger:hover {
        background-color: var(--mc-primary-dark) !important;
    }

    /* Logo en móvil (no sticky) */
    .mic-sticky-logo {
        margin: 0 !important;
        height: 42px !important;
    }
}

.mic-menu-label {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mic-hamburger-box {
    width: 22px;
    height: 18px;
    position: relative;
    display: block;
}

.mic-hamburger .icon-bar {
    position: absolute !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
}

/* initial positions (3 bars) - CLOSED */
.navbar-toggle.mic-hamburger .icon-bar {
    position: absolute !important;
    margin-top: 0 !important;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
}

.navbar-toggle.mic-hamburger .icon-bar:nth-child(1) { top: 0; transform: rotate(0); opacity: 1; }
.navbar-toggle.mic-hamburger .icon-bar:nth-child(2) { top: 8px; transform: scale(1); opacity: 1; }
.navbar-toggle.mic-hamburger .icon-bar:nth-child(3) { top: 16px; transform: rotate(0); opacity: 1; }

/* Active state (X) - OPEN */
.navbar-toggle.mic-hamburger:not(.collapsed) .icon-bar:nth-child(1),
.navbar-toggle.mic-hamburger[aria-expanded="true"] .icon-bar:nth-child(1) {
    top: 8px !important;
    transform: rotate(45deg) !important;
}
.navbar-toggle.mic-hamburger:not(.collapsed) .icon-bar:nth-child(2),
.navbar-toggle.mic-hamburger[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0 !important;
}
.navbar-toggle.mic-hamburger:not(.collapsed) .icon-bar:nth-child(3),
.navbar-toggle.mic-hamburger[aria-expanded="true"] .icon-bar:nth-child(3) {
    top: 8px !important;
    transform: rotate(-45deg) !important;
}

/* UNBREAKABLE STICKY BAR - Refined for subtle & smooth bidirectional transition */
#menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    z-index: 99999;
    transform: translateY(0);
}

#menu.aa-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background-color: rgba(30, 41, 59, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 60px;
    padding: 0 !important;
    /* Un pequeño desplazamiento inicial para que la entrada sea más "orgánica" */
    animation: micMenuFadeIn 0.3s ease-out;
}

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

/* Compensación de salto de contenido con transición suave */
body {
    transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.mic-sticky-active {
    padding-top: 60px; /* Altura estándar desktop */
}

/* Ajuste específico para móvil para evitar el salto "horrible" */
@media (max-width: 991px) {
    body.mic-sticky-active {
        padding-top: 58px; /* Altura exacta del menú móvil */
    }
}

/* Suavizar cambio de tamaño de botones */
.aa-browse-btn, 
.aa-browse-btn-secundario {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Desktop Horizontal Layout when Sticky */
@media (min-width: 992px) {
    #menu.aa-sticky .menu-area {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #menu.aa-sticky .navbar-header {
        float: left !important;
        display: flex !important;
        align-items: center !important;
        padding: 5px 0 !important;
    }
    
    #menu.aa-sticky .navbar-collapse {
        display: block !important;
        float: right !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        width: auto !important;
    }

    #menu.aa-sticky .navbar-nav {
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important; /* Permite 2 líneas si no hay espacio */
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
        min-height: 60px !important;
    }
    
    #menu.aa-sticky .navbar-nav > li {
        float: none !important;
        display: block !important;
        padding: 2px 0 !important;
    }
    
    #menu.aa-sticky .navbar-nav > li > a {
        white-space: nowrap !important;
    }

    /* Solo achicamos los botones cuando está en modo STICKY */
    #menu.aa-sticky .aa-browse-btn,
    #menu.aa-sticky .aa-browse-btn-secundario {
        padding: 5px 10px !important;
        font-size: 12px !important;
        margin: 2px !important;
        border-radius: 6px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }
}

/* RESET MAIN LOGO TO ORIGINAL AS REQUESTED */
.aa-logo { display: block !important; width: auto !important; float: left !important; }
.aa-logo a { background: transparent !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; max-height: none !important; }
.aa-logo img { max-height: 80px !important; width: auto !important; }

.aa-logo img { max-height: 80px !important; width: auto !important; }


.aa-header-top {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 8px 0;
}

.aa-header-bottom {
    background: #ffffff !important;
    padding: 20px 0;
}

/* Grilla Moderna */
.mic-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Tarjeta Premium */
.mic-card {
    background: var(--mc-bg-card);
    border-radius: var(--mc-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--mc-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.mic-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--mc-shadow-premium);
    border-color: rgba(30, 64, 175, 0.1);
}

.mic-card-featured {
    border: 2px solid var(--mc-featured);
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

.mic-card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--mc-radius);
    box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.05);
    pointer-events: none;
}

/* Imagen y Badges */
.mic-card-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.mic-card-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.mic-card-img, 
.logo-container img, 
.pet-card img, 
.transport-card img,
.aa-related-item-slider img,
.td-logo img,
#imgPrincipal {
    max-width: 88%; /* Zona segura para que respire */
    max-height: 88%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    background: #ffffff;
    border-radius: 15px !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: block !important;
    margin: auto !important; /* CENTRADO HORIZONTAL Y VERTICAL ABSOLUTO */
}

.mic-card-img-wrapper, .logo-container, .td-logo, .qr-frame, #galeriaProducto > div:first-child, #galeriaServicio > div:first-child {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 24px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    border: 1px solid #f1f5f9;
    margin-bottom: 10px;
    padding: 0 !important; /* Aseguramos que no haya rellenos que muevan la imagen */
}

/* Contenedor especial para Imagen Principal (Detalles) - ÚNICAMENTE el primer div */
#galeriaProducto > div:first-child, 
#galeriaServicio > div:first-child {
    width: 380px !important;
    height: 380px !important; /* Estabilidad total para la imagen que se visualiza */
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Etiquetas redondeadas */
.it-featured-tag, .aa-badge, .mic-badge-featured, .it-cat-mini, .it-label-glass span {
    border-radius: 50px !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Miniaturas Optimización */
.miniatura {
    flex-shrink: 0; /* Evitar que se compriman */
}

.miniatura img {
    height: 60px !important;
    width: 60px !important;
    object-fit: contain !important; /* Para que no se deformen */
    background: #fff;
    padding: 3px !important;
    border-radius: 10px !important;
    border: 2px solid #eee;
    transition: all 0.3s;
    margin-right: 8px;
}

.miniatura.selected img {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

#miniaturasGaleria {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 8px 0 !important; /* Margen inferior para separar la barra de las fotos */
    margin-top: 8px !important;
    width: 380px;
    max-width: 100%;
    height: auto !important; /* Adaptación natural al alto de las imágenes */
    margin-left: auto;
    margin-right: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f5f9;
    align-items: center; /* Centrar imágenes verticalmente en el pequeño espacio */
}

#miniaturasGaleria::-webkit-scrollbar {
    height: 4px;
    display: block; /* Mostrar en Chrome/Safari */
}

#miniaturasGaleria::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* Hover effect general - Zoom Suave Estilo Banner */
.mic-card-img-wrapper:hover .mic-card-img,
.logo-container:hover img,
.td-card:hover .td-logo img,
#galeriaProducto > div:hover #imgPrincipal,
#galeriaServicio > div:hover #imgPrincipal {
    transform: scale(1.1); /* Zoom puro y estable */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Logo Principal en Tienda Profile (tienda.php) */
.store-logo-main {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s;
    margin-right: 20px !important;
    display: inline-block !important;
}

.store-logo-main:hover {
    transform: scale(1.05);
}

.mic-card:hover .mic-card-img {
    transform: scale(1.08);
}

.mic-card-img-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none !important;
}

.mic-badge-float {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(30, 64, 175, 0.85);
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mic-badge-offer {
    background: rgba(245, 158, 11, 0.9);
}

.mic-badge-featured {
    background: rgba(245, 158, 11, 0.9);
}

/* Cuerpo de la Tarjeta */
.mic-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mic-card-store {
    order: 2;
    /* Move store info below the title */
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mc-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none !important;
}

.mic-card-store:hover {
    color: var(--mc-primary-light);
}

.mic-card-title {
    order: 1;
    /* Move title to the top */
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mc-text-main);
    line-height: 1.1;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4rem;
    cursor: pointer;
}

.mic-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.mic-card-title:hover {
    color: var(--mc-primary);
}

/* Precios */
.mic-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.mic-price-current {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mc-primary);
}

.mic-price-old {
    font-size: 1rem;
    color: var(--mc-text-muted);
    text-decoration: line-through;
}

/* Specs (Servicios) */
.mic-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
    font-size: 1.1rem;
    color: var(--mc-text-muted);
}

.mic-spec-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Footer de la Tarjeta */
.mic-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.mic-btn-wa {
    flex: 1;
    background: #25d366;
    color: white !important;
    text-align: center;
    padding: 0.8rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.mic-btn-wa:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.mic-btn-view {
    flex: 1;
    background: var(--mc-primary);
    color: white !important;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.mic-btn-view:hover {
    background: var(--mc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.mic-btn-secondary {
    flex: 1;
    background: #f3f4f6;
    color: var(--mc-text-main) !important;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.mic-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}
.mic-view-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 600;
    color: var(--mc-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle-btn.active {
    background: var(--mc-primary);
    color: white;
    border-color: var(--mc-primary);
}

.view-toggle-btn:hover:not(.active) {
    background: #f9fafb;
}

/* Cargar más Button Refined */
.mic-load-more-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #0f172a;
    color: #ffffff !important;
    border: none;
    padding: 1rem 3rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.mic-load-more-btn:hover {
    background: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
}

.mic-load-more-btn:active {
    transform: translateY(0);
}

.mic-load-more-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.classic-view .mic-card-title {
    font-size: 2rem;
}

/* Icons */
.mic-card-store i {
    color: var(--mc-primary);
}

/* Estilos Sistema de Mascotas */
.pet-badge-lost {
    background: #ef4444 !important;
}

/* Rojo */
.pet-badge-found {
    background: #10b981 !important;
}

/* Esmeralda */
.pet-badge-reward {
    background: #f59e0b !important;
}

/* Ámbar */
.pet-badge-adoption {
    background: #6366f1 !important;
}

/* Indigo */

/* Barra de Filtros Moderna */
.pet-filters-bar {
    display: flex;
    justify-content: flex-start; /* Evita que se corte el inicio en móviles con scroll */
    gap: 15px;
    padding: 15px 20px; /* Padding lateral para que no peguen al borde */
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 992px) {
    .pet-filters-bar {
        justify-content: center; /* Centrar solo si hay espacio (Desktop) */
    }
}

.pet-filters-bar::-webkit-scrollbar {
    display: none;
}

.pet-filter-pill {
    background: white;
    padding: 12px 24px;
    border-radius: 4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pet-filter-pill i {
    font-size: 1.2rem;
}

.pet-filter-pill:hover {
    border-color: var(--mc-primary);
    color: var(--mc-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.pet-filter-pill.active {
    background: var(--mc-primary);
    color: white;
    border-color: var(--mc-primary);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.2);
}

.pet-card-resolved {
    filter: grayscale(0.5);
    opacity: 0.9;
}

.pet-resolved-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pet-resolved-text {
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 800;
    font-size: 1.5rem;
    transform: rotate(-15deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.pet-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--mc-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pet-location {
    font-size: 1rem;
    color: var(--mc-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.pet-reward-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f59e0b;
    margin-top: auto;
}

.pet-card .mic-card-title {
    margin-bottom: 0.75rem;
    min-height: 3rem;
}

/* Fix for Slick Buttons positioned between title and products */
.aa-related-item-slider {
    position: relative;
    padding-top: 10px;
    margin-bottom: 40px;
    display: block !important;
}

/* Limpieza de los ítems de lista para que Slick controle el ancho */
.aa-related-item-slider li {
    list-style: none !important;
    padding: 10px !important;
    margin: 0 !important;
    outline: none !important;
    float: left; /* Ayuda a Slick en el cálculo inicial */
}

/* Ajuste de Escala para Tarjetas en Carrusel (Más compactas) */
.aa-related-item-slider .mic-card {
    width: 100% !important;
    min-height: 0 !important; /* Permitir altura natural */
}

.aa-related-item-slider .mic-card-body {
    padding: 1rem !important;
}

.aa-related-item-slider .mic-card-title {
    font-size: 1.3rem !important;
    min-height: 2.8rem !important;
    margin-bottom: 0.5rem !important;
}

.aa-related-item-slider .mic-card-store {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
}

.aa-related-item-slider .mic-card-footer {
    padding: 0 1rem 1.2rem !important;
    gap: 0.5rem !important;
}

.aa-related-item-slider .mic-btn-wa, 
.aa-related-item-slider .mic-btn-view,
.aa-related-item-slider .mic-btn-secondary {
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
    border-radius: 0.75rem !important;
}

/* Títulos de sección más destacados */
.aa-related-item-slider-title, 
#men h1.text-center {
    font-size: 2.8rem !important; /* Recuperando tamaño premium en escritorio */
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

.slick-prev, .slick-next {
    top: -30px !important; /* Ajustado ligeramente hacia abajo para no tapar títulos */
    transform: none !important;
    z-index: 10 !important;
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee !important;
}

.slick-prev { left: auto !important; right: 55px !important; }
.slick-next { right: 5px !important; }

.slick-prev:before, .slick-next:before {
    color: var(--mc-primary) !important;
    font-size: 1.2rem !important;
    opacity: 1 !important;
}

/* Fix for Slick [Intervention] touchmove error */
.slick-slider, .slick-list, .slick-track {
    touch-action: pan-y !important;
}

/* MOBILE ADJUSTMENTS FOR RELATED CAROUSELS */
@media (max-width: 767px) {
    .aa-related-item-slider-title, 
    #men h1.text-center {
        font-size: 2.2rem !important; /* Más grande en móvil como pidió el usuario */
        margin-bottom: 60px !important; /* Más espacio para las flechas */
    }

    .aa-related-item-slider {
        padding-top: 0px !important;
    }

    .slick-prev, .slick-next {
        top: -45px !important; /* Posicionadas en el espacio extra creado por el margin-bottom */
    }
    
    .slick-prev { right: 50px !important; }
    .slick-next { right: 0px !important; }
}

/* --- BARRA DE FILTROS PREMIUM --- */
.mic-filter-section {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.mic-filter-section h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--mc-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mic-filter-group {
    margin-bottom: 1.25rem;
}

.mic-filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.mic-filter-select {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mc-text-main);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.mic-filter-select:focus {
    background: #fff;
    border-color: var(--mc-primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.mic-filter-select:hover {
    background: #f1f5f9;
}

.mic-filter-clean {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.mic-filter-clean:hover {
    background: #e2e8f0;
    color: var(--mc-text-main);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .mic-filter-section {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }
}

/* Botón Volver Atrás Premium */
.back-btn-premium {
    border-radius: 50px !important;
    padding: 8px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    text-decoration: none !important;
}

.back-btn-premium:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.back-btn-premium i {
    font-size: 14px;
}

/* Botón Ver Tienda Premium */
.btn-ver-tienda-premium {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    background: #475569 !important; /* Color elegante pizarra */
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2) !important;
}

.btn-ver-tienda-premium:hover {
    background: #334155 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(71, 85, 105, 0.3) !important;
    color: #fff !important;
}

.btn-ver-tienda-premium i {
    font-size: 16px;
}