/* ==========================================
   HOMEPAGE CSS - DISEÑO MODERNO Y VIBRANTE
   ========================================== */

/* ===== HERO MEJORADO ===== */
.hero {
    background: linear-gradient(135deg, #0052CC 0%, #00D4FF 50%, #FF6B35 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===== CONTADOR MEJORADO ===== */
.counter-box {
    background: white;
    color: var(--text);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem auto;
    max-width: 350px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.25);
    border-color: var(--secondary);
}

.counter-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* ===== SECCIÓN TÍTULOS ===== */
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== GRID DE NEGOCIOS ===== */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 3rem 0;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.business-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #00D4FF 100%);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}

.business-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.business-card-body {
    padding: 2rem;
}

.business-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.business-category {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.business-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.business-contact {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ===== GRID DE BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin: 3rem 0;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.blog-card-body {
    padding: 2rem;
}

.blog-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.blog-date {
    font-size: 12px;
    color: #999;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* ===== BOTONES ===== */
.btn-cta {
    background: linear-gradient(135deg, var(--secondary), #FF8C42);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.4);
}

.btn-cta:active {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover {
    background: #003DA3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .businesses-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}