/*
Theme Name: Talk to the Mano Premium
Theme URI: https://talktothemano.com
Author: Antigravity
Description: Tema premium minimalista con glassmorphism y catálogo de WhatsApp.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: talkttm by tikatec
*/

:root {
    --bg-color: #0a0a0b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 40px 20px;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    opacity: 0.1;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: var(--accent-secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

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

    to {
        transform: translate(10%, 10%) scale(1.2);
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.inner-container {
    max-width: 600px;
    margin: 0 auto;
}

.catalog-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 15px;
    /* Reduced for mobile */
}

@media (min-width: 768px) {
    .catalog-container {
        padding: 0 40px;
        /* Restored for desktop */
    }
}

/* Header */
.site-header {
    margin-bottom: 40px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 94%;
    height: 94%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-color);
    padding: 5px;
}

/* Links */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
}

.glass-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-link:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Catalog */
.section-title {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-primary);
    padding-left: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 15px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
    line-clamp: 2;
}

.price-tag {
    margin-bottom: 15px;
}

.product-price-reg {
    color: #6b7280;
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 12px;
}

.product-price-sale {
    color: #10b981;
    /* A more vibrant green for the sale price */
    font-weight: 800;
    font-size: 1.6rem;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.wsp-buy {
    background: #25d366;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Game Section Styles */
.game-section {
    margin-top: 80px;
    padding: 0 15px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.game-header {
    margin-bottom: 20px;
}

.game-hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 20px;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 250px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--accent-primary);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.game-overlay.active {
    display: flex;
}

.overlay-content {
    text-align: center;
    color: white;
}

.game-over-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

.final-score-container {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

#final-score {
    color: #10b981;
    font-size: 1.8rem;
    font-weight: 800;
}

.overlay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.start-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    animation: bounce 2s infinite;
}

.start-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes bounce {

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

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

.restart-btn,
.share-btn {
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.restart-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.share-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.restart-btn:hover,
.share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}


#score-display {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    z-index: 5;
}

@media (max-width: 600px) {
    #game-container {
        height: 200px;
    }

    .game-over-text {
        font-size: 1.8rem;
    }
}