/* ==========================================================================
   HERO SECTION - CSS COMPLETO E OTIMIZADO
   Específico para Hero com mobile-first approach
   ========================================================================== */

/* ==========================================================================
   HERO - ESTRUTURA BASE
   ========================================================================== */

.hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

/* Container e Grid */
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* ==========================================================================
   HERO - ELEMENTOS
   ========================================================================== */

/* Barra de Urgência */
.hero-urgent-bar {
    background: linear-gradient(135deg, rgba(217,102,71,0.05) 0%, rgba(242,176,59,0.05) 100%);
    border: 1px solid rgba(217,102,71,0.15);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideDown 0.5s ease;
}

.hero-urgent-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* Títulos */
.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.salary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--dark);
    font-weight: 700;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.trust-badge:nth-child(1) { 
    border-color: var(--primary); 
    color: var(--primary); 
}

.trust-badge:nth-child(2) { 
    border-color: var(--success); 
    color: var(--success); 
}

.trust-badge:nth-child(3) { 
    border-color: var(--accent); 
    color: var(--accent); 
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* CTA Principal */
.cta-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #ff3b30 100%);
    color: var(--white);
    border: none;
    padding: 22px 48px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(217,102,71,0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    text-align: center;
    min-height: 56px;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateY(-50%);
    transition: left 0.6s ease;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(217,102,71,0.4);
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-discount {
    display: block;
    font-size: 15px;
    font-weight: 400;
    margin-top: 5px;
    text-transform: none;
    opacity: 0.95;
    letter-spacing: 0;
}

/* Prova Social */
.social-proof-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.avatar-stack {
    display: flex;
    position: relative;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: -10px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.avatar:first-child { 
    margin-left: 0; 
    background: var(--primary); 
    z-index: 4;
}

.social-proof-text {
    line-height: 1.3;
}

.social-proof-text strong {
    color: var(--dark);
    font-size: 15px;
}

/* Hero Media */
.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.hero-image-wrapper img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Badge MAPA */
.mapa-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: help;
    transition: transform 0.3s ease;
    z-index: 2;
}

.mapa-badge:hover {
    transform: scale(1.05);
}

.info-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Tooltip */
.tooltip-container {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: max-content;
}

.tooltip-content {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4058 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 280px;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a4058;
}

.mapa-badge[data-tooltip="active"]:hover .tooltip-container {
    opacity: 1;
    bottom: calc(100% + 20px);
}

/* Animações de entrada */
.hero-text > * {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }
.hero-text > *:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   MOBILE RESPONSIVE - Mobile First
   ========================================================================== */

@media (max-width: 767px) {
    /* Estrutura */
    .hero {
        padding: 30px 0 50px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    /* Barra de urgência */
    .hero-urgent-bar {
        font-size: 16px;
        padding: 8px 16px;
        margin-bottom: 20px;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    /* Títulos Mobile */
    .hero-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Trust Badges Mobile */
    .trust-badges {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .trust-badge {
        font-size: 16px;
        padding: 8px 14px;
    }
    
    /* CTA Mobile */
    .cta-primary {
        width: 100%;
        max-width: none;
        font-size: 16px;
        padding: 8px 24px;
        min-height: 56px;
    }
    
    /* Social Proof Mobile */
    .social-proof-bar {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .rating-score{ --rating-size: 18px; gap: 6px; font-size:16px; }
    
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .social-proof-text {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .social-proof-text strong {
    color: var(--dark);
    font-size: 16px;
}
    
    /* Hero Media Mobile */
    .hero-image-wrapper {
        border-radius: 12px;
    }
    
    .mapa-badge {
        top: 20px;
        right: 10px;
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .mapa-badge img {
        height: 35px;
        width: 35px;
    }
    
    /* Tooltip Mobile */
    .tooltip-container {
        display: none; /* Simplifica no mobile */
    }
    
    .mapa-badge[data-tooltip="active"].tooltip-active .tooltip-container {
        display: block;
        opacity: 1;
        bottom: calc(100% + 20px);
    }
    .hero-image-wrapper img {
    aspect-ratio: 16/9;
}
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding: 50px 0 70px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .cta-primary {
        width: auto;
        max-width: 400px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
    
    .hero-urgent-bar {
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .cta-primary {
        padding: 24px 56px;
        font-size: 20px;
        max-width: 600px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 56px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 20px 0 30px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        margin-bottom: 15px;
    }
    
    .cta-primary {
        padding: 14px 24px;
        min-height: 48px;
    }
}

/* High Resolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-wrapper {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print */
@media print {
    .hero-urgent-bar,
    .cta-primary,
    .social-proof-bar {
        display: none;
    }
}

/* CORREÇÃO 1: Avatares Coloridos */
.avatar-stack .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: -10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    color: #ffffff;
}

.avatar-stack .avatar:first-child { 
    margin-left: 0; 
    background: #2A5B7F !important; /* Azul */
    z-index: 4;
}

.avatar-stack .avatar:nth-child(2) { 
    background: #667C4D !important; /* Verde */
    z-index: 3;
}

.avatar-stack .avatar:nth-child(3) { 
    background: #D96647 !important; /* Laranja */
    z-index: 2;
}

.avatar-stack .avatar:nth-child(4) { 
    background: #F2B03B !important; /* Amarelo */
    z-index: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .avatar-stack .avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}