/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #aaa;
    margin-bottom: 1.5rem;
}

/* === CATEGORÍAS === */
.categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.categorias button {
    background-color: #1c1f25;
    border: 1px solid #00f5ff;
    color: #00f5ff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.categorias button.activo,
.categorias button:hover {
    background-color: #00f5ff;
    color: #000;
    transform: translateY(-2px);
}

/* === GRID PARA TARJETAS === */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* === TARJETAS DE RED SOCIAL === */
.producto-card-social {
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.producto-card-social:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.3);
}

/* === HEADER DE LA TIENDA === */
.tienda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(0, 245, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

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

.tienda-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f5ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(0, 245, 255, 0.4);
    transition: all 0.3s ease;
}

.producto-card-social:hover .tienda-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.6);
}

.tienda-datos {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tienda-nombre {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.tienda-categoria {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.2;
}

.btn-seguir {
    background: none;
    border: 1px solid #00f5ff;
    color: #00f5ff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-seguir:hover {
    background-color: #00f5ff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.4);
}

.btn-seguir.siguiendo {
    background-color: #00f5ff;
    color: #000;
    border-color: #00f5ff;
}

.btn-seguir.siguiendo:hover {
    background-color: transparent;
    color: #00f5ff;
    transform: scale(1.05);
}

/* === IMAGEN DEL PRODUCTO === */
.producto-imagen-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.badge-precio {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.85);
    color: #00f5ff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 245, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === INFORMACIÓN DEL PRODUCTO === */
.producto-info-social {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.producto-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-descripcion {
    font-size: 0.8rem;
    color: #bbb;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === ACCIONES SOCIALES === */
.acciones-sociales {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
}

.acciones-izq {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accion-social {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    position: relative;
    z-index: 11;
}

.accion-social:hover {
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-2px);
}

.accion-social.activo {
    color: #ff4757;
}

.accion-social.activo:hover {
    color: #ff3742;
}

.accion-social .icono {
    font-size: 0.9rem;
}

.accion-social .contador {
    font-size: 0.7rem;
    font-weight: 600;
}

/* === BOTÓN VER PRODUCTO MEJORADO === */
.ver-producto {
    justify-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    padding: 1rem;
}

.btn-producto {
    background: linear-gradient(135deg, #00f5ff, #0099cc);
    border: none;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 15;
    min-height: 32px;
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.btn-producto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.5);
    background: linear-gradient(135deg, #00f5ff, #00c9ff);
}

.btn-producto:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.4);
}

/* Asegurar que no haya overlays interferiendo */
.btn-producto::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    pointer-events: none;
}

/* === LOADER ANIMADO === */
.loader-animado-contenedor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    text-align: center;
}

.loader-animado {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-acento-primario);
    font-family: 'Inter', sans-serif;
    animation: pulse 1.5s infinite;
}

.loader-animado span {
    display: inline-block;
}

.loader-animado .puntos::after {
    content: '';
    animation: puntosAnimados 1.5s infinite steps(4);
}

@keyframes puntosAnimados {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Pantallas grandes (1200px+) */
@media (min-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding: 1rem 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Pantallas medianas (768px - 1199px) */
@media (max-width: 1199px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

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

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .categorias {
        gap: 0.3rem;
    }

    .categorias button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .tienda-header {
        padding: 0.8rem;
    }

    .tienda-logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .tienda-nombre {
        font-size: 0.85rem;
    }

    .tienda-categoria {
        font-size: 0.7rem;
    }

    .btn-seguir {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }

    .producto-info-social {
        padding: 0.8rem;
    }

    .producto-titulo {
        font-size: 0.9rem;
    }

    .producto-descripcion {
        font-size: 0.75rem;
    }

    .acciones-sociales {
        padding: 0.6rem 0.8rem;
    }

    .acciones-izq {
        gap: 0.6rem;
    }

    .accion-social {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .btn-ver-producto {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        min-height: 28px;
    }

    .badge-precio {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Móviles (max 575px) */
@media (max-width: 575px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 1rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .categorias {
        flex-direction: column;
        align-items: center;
    }

    .categorias button {
        width: 100%;
        max-width: 200px;
    }

    .tienda-header {
        padding: 0.7rem;
    }

    .tienda-info {
        gap: 0.5rem;
    }

    .tienda-logo {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .tienda-nombre {
        font-size: 0.8rem;
    }

    .tienda-categoria {
        font-size: 0.65rem;
    }

    .btn-seguir {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .producto-info-social {
        padding: 0.7rem;
    }

    .producto-titulo {
        font-size: 0.85rem;
    }

    .producto-descripcion {
        font-size: 0.7rem;
    }

    .acciones-sociales {
        padding: 0.5rem 0.7rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .acciones-izq {
        width: 100%;
        justify-content: space-between;
    }

    .btn-ver-producto {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.7rem;
        min-height: 36px;
        border-radius: 12px;
    }

    .badge-precio {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 400px) {
    .productos-grid {
        padding: 0.5rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .loader-animado {
        font-size: 1.2rem;
    }

    .btn-ver-producto {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
        min-height: 34px;
    }
}