/* --- Variables --- */
:root {
    --primario: #004D40;
    --texto-principal: #1f2937;
    --texto-claro: #6b7280;
    --fondo: #fcfcfc;
}

/* --- Clases Utilitarias --- */
.ancho {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.centrar {
    text-align: center;
}

.margen {
    padding: 15px;
}

.negritas {
    font-weight: bold;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--fondo);
    color: var(--texto-principal);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* --- Navegacion --- */
header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.barra-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logotipo {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: var(--primario);
}

.enlaces {
    display: flex;
    gap: 30px;
}

.btn-menu-movil {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primario);
    cursor: pointer;
}

.btn-contacto-movil {
    display: none;
}

.btn-primario {
    background-color: var(--primario);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primario:hover {
    background-color: #00897B;
}

/* --- Seccion Principal --- */
.seccion-principal {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.contenedor-principal {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.contenido-principal {
    width: 50%;
}

.botones {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contenido-principal h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.contenido-principal h1 span {
    color: var(--primario);
}

.contenido-principal p {
    font-size: 19px;
    color: var(--texto-claro);
    margin-bottom: 30px;
}

.imagen-principal {
    width: 45%;
    display: flex;
    justify-content: center;
}

/* Imagen Hero */
.imagen-hero {
    max-width: 100%;
    width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: flotar 4s ease-in-out infinite;
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Secciones Generales --- */
.seccion {
    padding: 80px 0;
}

.seccion-gris {
    background-color: #f3f4f6;
}

/* "Nuestros Productos" y "Marcas" tienen el mismo fondo: no duplicar el espacio entre ellas */
#catalogo + #marcas {
    padding-top: 0;
}

.titulo-seccion {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primario);
}

.texto-centro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--texto-claro);
}

/* --- Hero Gradiente (reemplaza video de fondo) --- */
.hero-gradiente {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #012c24 0%, #024034 40%, #013a2e 70%, #01201a 100%);
}

/* Patrón de puntos decorativo */
.hero-puntos {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
    pointer-events: none;
}

/* Orbes de luz de fondo */
.hero-orbe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-orbe-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 150, 110, 0.35) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    animation: pulsarOrbe 7s ease-in-out infinite alternate;
}

.hero-orbe-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 77, 64, 0.4) 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    animation: pulsarOrbe 9s ease-in-out infinite alternate-reverse;
}

@keyframes pulsarOrbe {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.15) translate(20px, -20px);
    }
}

/* Acento del hero span */
.hero-span-acento {
    color: #4ade80;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

/* Párrafo del hero con mejor contraste */
.hero-parrafo {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Botón secundario hero (outline) */
.btn-secundario-hero {
    background: transparent;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
}

.btn-secundario-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
}

.texto-blanco {
    color: white !important;
}

/* --- Nosotros (Video y Texto) --- */
.contenedor-nosotros {
    display: flex;
    align-items: center;
    gap: 40px;
}

.texto-nosotros {
    flex: 1;
    font-size: 19px;
    color: var(--texto-claro);
}

.texto-nosotros p {
    margin-bottom: 20px;
}

.video-nosotros {
    flex: 1;
    display: flex;
    justify-content: center;
}

.video-promo {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
}

/* --- Botón de Volumen del Video --- */
.contenedor-video-volumen {
    position: relative;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
}

.btn-volumen {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.2s ease;
    z-index: 10;
}

.btn-volumen:hover {
    background: rgba(0, 77, 64, 0.85);
    transform: scale(1.1);
}

.btn-volumen.activo {
    background: var(--primario);
}

/* --- Marcas --- */
.grid-marcas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    align-items: center;
}

.marca-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
}

/* --- Sucursales --- */
.grid-sucursales {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.tarjeta-sucursal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.tarjeta-sucursal h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.horario {
    margin: 15px 0;
    font-weight: 500;
    color: var(--primario);
}

.mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

/* --- Footer --- */
.pie-pagina {
    background-color: #111827;
    color: white;
    padding: 60px 0 20px;
}

.contenedor-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.info-footer h3,
.contacto-footer h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primario);
}

.info-footer p {
    color: #9ca3af;
    max-width: 300px;
    line-height: 1.6;
}

.redes-sociales {
    display: flex;
    gap: 15px;
}

.icono-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: background-color 0.2s, transform 0.2s;
}

.icono-social:hover {
    background-color: var(--primario);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 14px;
}

/* --- Categorias --- */
.grid-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Esto es la magia para centrar la tarjeta sobrante */
    gap: 20px;
    margin-top: 35px;
}

.tarjeta-categoria {
    background-color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.tarjeta-categoria {
    /* En escritorio: Forzamos 5 tarjetas por fila (100% / 5 = 20%, menos el gap) */
    width: calc(20% - 16px);
    min-width: 200px;
    /* Evita que se aplasten demasiado en pantallas medianas */
    /* Deja aquí los otros estilos que ya tenías como background, border-radius, padding, etc. */
}

.tarjeta-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tarjeta-categoria i {
    font-size: 40px;
    color: var(--primario);
    margin-bottom: 20px;
}

.tarjeta-categoria h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tarjeta-categoria p {
    color: var(--texto-claro);
    font-size: 15px;
}

/* --- FAQ --- */
.contenedor-faq {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-faq {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.item-faq button {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--texto-principal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-faq button i {
    transition: transform 0.3s ease;
    color: var(--primario);
}

.item-faq.abierto button i {
    transform: rotate(180deg);
}

.respuesta-faq {
    padding: 0 20px 20px;
    color: var(--texto-claro);
    border-top: 1px solid #f3f4f6;
    margin-top: -5px;
    padding-top: 15px;
}

/* --- Boton Flotante WhatsApp --- */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    color: white;
}

/* --- Catalogo --- */
.hero-catalogo {
    background: linear-gradient(135deg, var(--primario) 0%, #00897B 100%);
    padding: 80px 0 60px;
    color: white;
}

.hero-catalogo-contenido h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-catalogo-contenido p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
}

.seccion-filtros {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.filtros {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--texto-principal);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-btn:hover {
    border-color: var(--primario);
    color: var(--primario);
}

.filtro-btn.activo {
    background-color: var(--primario);
    border-color: var(--primario);
    color: white;
}

.catalogo-productos {
    padding: 60px 0;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tarjeta-producto {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.producto-icono {
    background: linear-gradient(135deg, var(--primario), #00897B);
    padding: 30px;
    text-align: center;
    font-size: 48px;
    color: white;
}

.producto-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.producto-etiqueta {
    display: inline-block;
    background-color: #f0fdf4;
    color: var(--primario);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    width: fit-content;
}

.producto-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: var(--texto-principal);
}

.producto-info p {
    color: var(--texto-claro);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.producto-marcas-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.producto-marcas-tag span {
    background: #f3f4f6;
    color: var(--texto-claro);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 50px;
}

.cta-visita {
    text-align: center;
}

.cta-contenido {
    max-width: 700px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Adaptacion a Celulares --- */
@media (max-width: 768px) {
    /* Menos espacio vertical entre secciones en celular */
    .seccion {
        padding: 50px 0;
    }

    .contenedor-principal {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contenido-principal,
    .imagen-principal {
        width: 100%;
    }

    .botones {
        justify-content: center;
    }

    .btn-menu-movil {
        display: block;
    }

    .btn-contacto-desktop {
        display: none;
    }

    .btn-contacto-movil {
        display: inline-block;
        margin-top: 10px;
    }

    .enlaces {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        gap: 20px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .enlaces.abierto {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .contenido-principal h1 {
        font-size: 40px;
    }

    .imagen-principal {
        margin-top: 0;
    }

    .contenedor-nosotros {
        flex-direction: column;
        text-align: center;
    }

    .texto-nosotros h2 {
        text-align: center !important;
    }

    .grid-categorias {
        grid-template-columns: 1fr;
    }

    .grid-sucursales {
        flex-direction: column;
    }

    .tarjeta-sucursal {
        width: 100%;
    }

    .contenedor-footer {
        flex-direction: column;
        text-align: center;
    }

    .redes-sociales {
        justify-content: center;
    }

    .info-footer p {
        margin: 0 auto;
    }

    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    /* Catalogo responsive */
    .grid-productos {
        grid-template-columns: 1fr;
    }

    .filtros {
        justify-content: center;
    }

    .hero-catalogo-contenido h1 {
        font-size: 32px;
    }

    /* Productos responsive */
    .grid-imagenes-productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-productos-contenido {
        flex-direction: column;
        text-align: center;
    }

    .grid-nav-sub {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Pagina de Productos --- */
.breadcrumb-bar {
    background: #f9fafb;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--texto-claro);
}

.breadcrumb a {
    color: var(--primario);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
    color: #9ca3af;
}

.hero-productos {
    background: linear-gradient(135deg, var(--primario) 0%, #00897B 100%);
    padding: 60px 0;
    color: white;
}

.hero-productos-contenido {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-productos-icono {
    font-size: 70px;
    opacity: 0.9;
    flex-shrink: 0;
}

.hero-productos-contenido h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    margin: 8px 0;
}

.hero-productos-contenido p {
    font-size: 17px;
    opacity: 0.85;
    max-width: 600px;
}

.grid-imagenes-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tarjeta-imagen-producto {
    background: white;
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-imagen-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.imagen-producto-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9fafb;
}

.imagen-producto-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.imagen-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 36px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.imagen-placeholder span {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.imagen-producto-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.imagen-producto-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: var(--texto-principal);
}

.imagen-producto-info p {
    font-size: 13px;
    color: var(--texto-claro);
    line-height: 1.5;
}

.productos-vacio {
    text-align: center;
    padding: 80px 20px;
    color: var(--texto-claro);
}

.productos-vacio i {
    font-size: 64px;
    color: #d1d5db;
    display: block;
    margin-bottom: 20px;
}

.productos-vacio h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    color: var(--texto-principal);
    margin-bottom: 10px;
}

.ver-productos-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primario);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: gap 0.2s ease;
}

.tarjeta-producto:hover .ver-productos-link {
    gap: 10px;
}

/* Navegacion entre subcategorias */
.nav-subcategorias {
    padding: 40px 0;
}

.grid-nav-sub {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
}

.nav-sub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    font-size: 12px;
    color: var(--texto-claro);
    text-align: center;
    transition: all 0.2s ease;
}

.nav-sub-card i {
    font-size: 22px;
    color: var(--primario);
}

.nav-sub-card:hover {
    border-color: var(--primario);
    color: var(--primario);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.1);
}

/* =========================================
   VISTA DE PRODUCTOS DINÁMICOS
   ========================================= */

/* 1. Grid de Productos (Las tarjetas) */
.grid-imagenes-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tarjeta-imagen-producto {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.tarjeta-imagen-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 2. Contenedor de la imagen y Placeholder */
.imagen-producto-wrap {
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.imagen-producto-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Evita que la imagen se deforme o recorte */
    padding: 20px;
    transition: transform 0.3s ease;
}

.tarjeta-imagen-producto:hover .imagen-producto-wrap img {
    transform: scale(1.05);
    /* Efecto de zoom suave al pasar el mouse */
}

.imagen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    gap: 10px;
}

.imagen-placeholder i {
    font-size: 3rem;
    color: #dee2e6;
}

/* 3. Textos e Información de la tarjeta */
.imagen-producto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.imagen-producto-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.imagen-producto-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.producto-etiqueta {
    display: inline-block;
    background: var(--primario);
    /* Asegúrate de que esta variable exista en tu CSS principal */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* =========================================
   ESTADO VACÍO ("Próximamente")
   ========================================= */
.productos-vacio {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin-top: 40px;
}

.productos-vacio i {
    font-size: 4rem;
    color: var(--primario);
    margin-bottom: 20px;
    opacity: 0.5;
}

.productos-vacio h2 {
    font-family: 'Outfit', sans-serif;
    color: #333;
    margin-bottom: 10px;
}

.productos-vacio p {
    color: #666;
}

/* =========================================
   NAVEGACIÓN OTRAS CATEGORÍAS (Abajo)
   ========================================= */
.grid-nav-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Espacio entre las tarjetas */
    margin: 0 auto;
}

/* Opcional: Para asegurar que las tarjetas no se hagan gigantes ni muy pequeñas */
.nav-sub-card {
    /* Mantenemos el diseño que ya tienes, pero le damos un ancho fijo o base */
    min-width: 160px;
    /* ... el resto de estilos que ya tenías en esta clase ... */
}

.nav-sub-card i {
    font-size: 1.5rem;
    color: var(--primario);
}

.nav-sub-card:hover {
    background: var(--primario);
    color: white;
    transform: translateY(-3px);
}

.nav-sub-card:hover i {
    color: white;
}

/* =========================================
   PANEL DE ADMINISTRACIÓN
   ========================================= */
.bg-gris {
    background-color: #f8f9fa;
}

.contenedor-admin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.tarjeta-admin {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    border: 1px solid #eee;
}

.titulo-admin {
    font-family: 'Outfit', sans-serif;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.formulario-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grupo-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-form label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.input-form {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-form:focus {
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    /* Cambia el color si tu --primario es muy claro */
    outline: none;
}

.input-file {
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 14px;
}

.link-volver {
    text-align: center;
    display: block;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.link-volver:hover {
    color: var(--primario);
    text-decoration: underline;
}

.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #c3e6cb;
    font-family: 'Inter', sans-serif;
}

.enlace-admin {
    color: var(--primario);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   RESPONSIVE: PANEL DE ADMINISTRACIÓN (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .contenedor-admin {
        padding: 20px 15px;
        /* Reducimos el espacio gris exterior */
        align-items: flex-start;
        /* Evita que la tarjeta se corte si la pantalla es muy bajita */
    }

    .tarjeta-admin {
        padding: 25px 20px;
        /* Reducimos el relleno interno blanco para darle espacio a los inputs */
        border-radius: 10px;
    }

    .titulo-admin {
        font-size: 1.4rem;
        /* Hacemos el título un poco más pequeño para que no ocupe 2 líneas */
        margin-bottom: 20px;
    }

    .grupo-form label {
        font-size: 0.9rem;
    }

    .input-form {
        padding: 10px 12px;
        /* Campos de texto más compactos */
        font-size: 0.95rem;
    }

    .btn-block {
        padding: 12px;
        font-size: 1rem;
    }

    .enlace-admin {
        justify-content: center;
        /* Esto es lo que faltaba para centrar el icono y texto */
        width: 100%;
        margin-top: 15px;
        /* Un poco de respiro respecto al botón Contáctanos */
    }

    .nav-sub-card {
        /* Forzamos que ocupen la mitad de la fila (restando la mitad del gap de 15px) */
        width: calc(50% - 8px);
        min-width: 0;
        /* Quitamos el ancho mínimo forzado que rompía las filas */
        padding: 15px 5px;
        /* Reducimos el relleno para darle espacio al texto */
    }

    .nav-sub-card span {
        /* Reducimos ligeramente la letra para que textos largos no se desborden */
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .tarjeta-categoria {
        /* Forzamos 2 por fila (50% menos la mitad del gap) */
        width: calc(50% - 10px);
        min-width: 0;
        padding: 15px;
        /* Opcional: reducir un poco el relleno en celular */
    }
}