/* ===== MALPRECIO LANDING PAGE ===== */

/* Hero Section */
.landing-hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(227, 6, 19, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(227, 6, 19, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 5%) scale(1.1); }
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.landing-hero h1 span {
    color: #E30613;
}

.landing-hero-subtitle {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Hero Search */
.landing-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    background: #1a1a1a;
    border-radius: 50px;
    border: 1px solid #333;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.landing-search-form:focus-within {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.landing-search-form input {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.landing-search-form input::placeholder {
    color: #666;
}

.landing-search-form button {
    padding: 16px 28px;
    background: #E30613;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.landing-search-form button:hover {
    background: #c40510;
}

/* Stats Strip */
.landing-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.landing-stat {
    text-align: center;
}

.landing-stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #E30613;
    display: block;
    line-height: 1;
}

.landing-stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* Section Headers */
.landing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.landing-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.landing-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white, #eee);
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-section-title i {
    color: #E30613;
}

.landing-section-link {
    color: #E30613;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.landing-section-link:hover {
    opacity: 0.8;
}

/* Top Deals Grid (3 column hero cards) */
.landing-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-top-card {
    background: var(--bg-card, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-top-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(227, 6, 19, 0.15);
    border-color: #E30613;
}

.landing-top-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: #E30613;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
}

.landing-top-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff9800;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.landing-top-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-top-card-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s;
}

.landing-top-card:hover .landing-top-card-img img {
    transform: scale(1.05);
}

.landing-top-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.landing-top-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white, #eee);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-top-card-title a {
    color: inherit;
    text-decoration: none;
}

.landing-top-card-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.landing-top-card-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #E30613;
}

.landing-top-card-original {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
}

.landing-top-card-discount {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: auto;
}

.landing-top-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.landing-top-card-temp {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.landing-top-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #E30613, #ff4d4d);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.landing-top-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
    color: white;
}

/* Categories Grid */
.landing-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-category-card {
    background: var(--bg-card, #1a1a1a);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-white, #eee);
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.landing-category-card:hover {
    transform: translateY(-4px);
    border-color: #E30613;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.12);
    color: white;
}

.landing-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(227, 6, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #E30613;
    transition: background 0.3s, transform 0.3s;
}

.landing-category-card:hover .landing-category-icon {
    background: #E30613;
    color: white;
    transform: scale(1.1);
}

.landing-category-name {
    font-weight: 700;
    font-size: 1rem;
}

.landing-category-count {
    font-size: 0.8rem;
    color: #888;
}

/* Shorts Banner */
.landing-shorts-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-shorts-inner {
    background: linear-gradient(135deg, #1a0a0a, #0a0a1a);
    border-radius: 20px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    position: relative;
}

.landing-shorts-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.landing-shorts-text {
    z-index: 2;
}

.landing-shorts-text h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-shorts-text h2 .new-tag {
    background: white;
    color: #E30613;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.5em;
    vertical-align: middle;
}

.landing-shorts-text p {
    color: #999;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
}

.landing-shorts-cta {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #E30613;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.landing-shorts-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.3);
    color: white;
}

/* Newsletter / Email Capture */
.landing-newsletter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.landing-newsletter-inner {
    background: var(--bg-card, #1a1a1a);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.landing-newsletter-inner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white, #eee);
    margin-bottom: 12px;
}

.landing-newsletter-inner p {
    color: #888;
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.landing-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto 16px;
    gap: 0;
}

.landing-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: #111;
    border: 1px solid #333;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.landing-newsletter-form input:focus {
    border-color: #E30613;
}

.landing-newsletter-form input::placeholder {
    color: #666;
}

.landing-newsletter-form button {
    padding: 14px 24px;
    background: #E30613;
    border: 1px solid #E30613;
    border-radius: 0 10px 10px 0;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.landing-newsletter-form button:hover {
    background: #c40510;
}

.landing-newsletter-hint {
    color: #555;
    font-size: 0.8rem;
}

.landing-newsletter-success {
    color: #4caf50;
    font-weight: 600;
    display: none;
    margin-top: 12px;
}

.landing-telegram-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.landing-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0088cc;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    color: white;
}

/* Latest Deals — el chollos-grid es ya un grid propio, este wrapper solo aporta margen */
.landing-latest-grid {
    display: block;
}

.landing-latest-grid .chollos-grid {
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 50px 16px 40px;
    }
    .landing-hero h1 {
        font-size: 2.2rem;
    }
    .landing-hero-subtitle {
        font-size: 1.05rem;
    }
    .landing-stats {
        gap: 24px;
    }
    .landing-stat-number {
        font-size: 1.5rem;
    }
    .landing-section {
        padding: 35px 16px;
    }
    .landing-section-title {
        font-size: 1.4rem;
    }
    .landing-top-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .landing-top-card-img {
        height: 180px;
    }
    .landing-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .landing-category-card {
        padding: 20px 14px;
    }
    .landing-shorts-inner {
        flex-direction: column;
        text-align: center;
        padding: 35px 24px;
        gap: 24px;
    }
    .landing-shorts-text h2 {
        font-size: 1.5rem;
        justify-content: center;
    }
    .landing-shorts-text p {
        font-size: 0.95rem;
    }
    .landing-newsletter-inner {
        padding: 35px 20px;
    }
    .landing-newsletter-inner h2 {
        font-size: 1.4rem;
    }
    .landing-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .landing-newsletter-form input {
        border-right: 1px solid #333;
        border-radius: 10px;
    }
    .landing-newsletter-form button {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .landing-hero h1 {
        font-size: 1.8rem;
    }
    .landing-stats {
        gap: 16px;
    }
    .landing-stat-number {
        font-size: 1.3rem;
    }
    .landing-stat-label {
        font-size: 0.75rem;
    }
    .landing-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
