.perfil-tienda {
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
}

/* === HEADER DE LA TIENDA === */

.perfil-header {
    position: relative;
    margin-bottom: 2rem;
}

/* Portada */
.portada-tienda {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.portada-tienda img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Información sobre portada */
.perfil-info-superior {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    position: absolute;
    top: 120px;
    left: 2rem;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    width: calc(100% - 4rem);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    flex-wrap: wrap;
}

/* Logo flotante */
.logo-tienda-flotante img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--color-acento-primario);
    box-shadow: 0 0 15px var(--color-acento-primario);
}

/* Información textual */
.datos-tienda {
    flex: 1;
    color: var(--color-texto-principal);
    min-width: 250px;
}

.nombre-tienda {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-acento-primario);
}

.usuario-tienda {
    color: var(--color-texto-secundario);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.descripcion {
    font-size: 0.95rem;
    color: var(--color-texto-terciario);
    margin: 0.8rem 0;
}

/* Botones de acción */
.acciones-tienda {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-seguir,
.btn-contactar {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-seguir {
    background: var(--color-boton-primario);
    color: #000;
}

.btn-seguir:hover {
    background: var(--color-boton-hover);
    box-shadow: 0 0 12px var(--color-boton-hover);
}

.btn-contactar {
    background: var(--color-texto-principal);
    color: #000;
}

.btn-contactar:hover {
    background: var(--color-success);
    color: #000;
}

/* Stats */
.stats-tienda {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    flex-wrap: wrap;
}

/* === PRODUCTOS === */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 11rem;
    z-index: 1;
    position: relative;
}

.producto-card {
    background-color: var(--color-fondo-tarjeta);
    border: 1px solid var(--color-borde-tarjeta);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.producto-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.producto-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-texto-principal);
}

.producto-card p {
    font-size: 0.95rem;
    color: var(--color-success);
}

.btn-producto {
    margin-top: 1rem;
    background-color: var(--color-acento-primario);
    color: #000;
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-producto:hover {
    background-color: var(--color-boton-hover);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* === Fin de catálogo === */
.fin-cat {
    text-align: center;
    margin-top: 3rem;
    color: var(--color-texto-terciario);
}

/* Acciones De Reaccion */
.acciones-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.acciones-producto button {
    background-color: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--color-acento-primario);
    color: var(--color-texto-secundario);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
    flex: 1;
    min-width: 80px;
}

.acciones-producto button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
    color: var(--color-acento-primario);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* Siguiendo */
.btn-seguir.siguiendo {
    background-color: #00ffaa;
    color: #000;
    font-weight: bold;
    border: 1px solid #00ffaa;
    transition: all 0.3s ease;
}

/* 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 === */

/* Tablets grandes */
@media (max-width: 1024px) {
    .perfil-tienda {
        padding: 1.5rem;
    }

    .productos-grid {
        margin-top: 11rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }

    .stats-tienda {
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .perfil-tienda {
        padding: 1rem;
    }

    .portada-tienda {
        height: 160px;
    }

    .perfil-info-superior {
        flex-direction: column;
        align-items: center;
        top: 100px;
        left: 1rem;
        width: calc(100% - 2rem);
        padding: 1.5rem;
        text-align: center;
    }

    .logo-tienda-flotante img {
        width: 80px;
        height: 80px;
    }

    .datos-tienda {
        min-width: auto;
        width: 100%;
    }

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

    .usuario-tienda {
        font-size: 0.9rem;
    }

    .acciones-tienda {
        width: 100%;
        justify-content: center;
    }

    .btn-seguir,
    .btn-contactar {
        flex: 1;
        max-width: 150px;
    }

    .stats-tienda {
        justify-content: center;
        gap: 1rem;
    }

    .productos-grid {
        margin-top: 20rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .perfil-tienda {
        padding: 0.5rem;
    }

    .portada-tienda {
        height: 140px;
        border-radius: 8px;
    }

    .perfil-info-superior {
        top: 80px;
        left: 0.5rem;
        width: calc(100% - 1rem);
        padding: 1rem;
        border-radius: 12px;
    }

    .logo-tienda-flotante img {
        width: 70px;
        height: 70px;
    }

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

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

    .descripcion {
        font-size: 0.9rem;
    }

    .acciones-tienda {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-seguir,
    .btn-contactar {
        width: 100%;
        max-width: none;
        padding: 0.7rem;
    }

    .stats-tienda {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .productos-grid {
        margin-top: 24rem;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.8rem;
    }

    .producto-card {
        padding: 0.8rem;
    }

    .producto-card img {
        height: 120px;
    }

    .producto-card h3 {
        font-size: 0.9rem;
    }

    .producto-card p {
        font-size: 0.85rem;
    }

    .btn-producto {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .acciones-producto {
        flex-direction: column;
        gap: 0.3rem;
    }

    .acciones-producto button {
        width: 100%;
        min-width: auto;
    }

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

/* Móviles muy pequeños */
@media (max-width: 320px) {
    .perfil-info-superior {
        padding: 0.8rem;
    }

    .logo-tienda-flotante img {
        width: 60px;
        height: 60px;
    }

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

    .productos-grid {
        grid-template-columns: 1fr;
        margin-top: 24rem;
    }

    .producto-card img {
        height: 100px;
    }
}