/* ============================================================================
   Section: Hero
   ========================================================================= */

.hero-modern-2025 {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero-image-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    animation: hero-image-zoom 20s ease-in-out infinite;
    filter: brightness(0.7) contrast(1.05);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.hero-highlight-block.hero-intro-active ~ .hero-image-background .hero-featured-image,
.hero-modern-2025:has(.hero-intro-active) .hero-featured-image {
    opacity: 0.85;
    filter: brightness(1.1) contrast(1.05);
}

@keyframes hero-image-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 20, 25, 0.6) 0%,
        rgba(26, 31, 58, 0.5) 50%,
        rgba(15, 20, 25, 0.65) 100%
    );
    transition: opacity 0.6s ease;
}

.hero-modern-2025:has(.hero-intro-active) .hero-image-overlay {
    opacity: 0.5;
}

.hero-mesh-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--gradient-mesh);
    animation: mesh-breathe 20s ease-in-out infinite;
    opacity: 0.25;
    mix-blend-mode: soft-light;
}

@keyframes mesh-breathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.8;
    }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float-orb 15s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-brand-primary), transparent);
    top: 10%;
    left: 10%;
}

.hero-orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-brand-purple), transparent);
    bottom: 20%;
    right: 15%;
    animation-delay: -5s;
}

.hero-orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-brand-pink), transparent);
    top: 60%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-25px, 25px) scale(0.95);
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(var(--color-border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-intro-layer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chat-sequence {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 900px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    box-shadow:
        0 25px 45px rgba(15, 23, 42, 0.45),
        0 10px 25px rgba(79, 70, 229, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% + 20px)) scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s step-end;
    backdrop-filter: blur(18px);
    z-index: 2;
    pointer-events: none;
}

.hero-chat-sequence.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-chat-sequence.is-fading-out {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 20px)) scale(0.96);
}

.hero-chat-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow:
        0 18px 35px rgba(59, 130, 246, 0.3),
        0 8px 18px rgba(79, 70, 229, 0.25);
    overflow: hidden;
}

.hero-chat-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-chat-bubble {
    flex: 1;
    color: rgba(226, 232, 240, 0.95);
    font-size: 1.35rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    position: relative;
    padding-right: 0.5rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.hero-chat-text {
    display: block;
    width: 100%;
    white-space: pre-wrap;
    transition: opacity 0.3s ease;
}

.hero-chat-typing-indicator {
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-chat-typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.85);
    animation: hero-chat-pulse 1s ease-in-out infinite;
}

.hero-chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-chat-typing-indicator.is-active {
    opacity: 1;
    transform: translateY(0);
}

.hero-chat-typing-indicator.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
}

@keyframes hero-chat-pulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content-modern {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0;
}

.hero-highlight-block {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.98);
}

.hero-highlight-block.hero-intro-active .hero-main-content {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(14px);
    pointer-events: none;
}

.hero-intro-layer,
.hero-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-content {
    transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
    position: relative;
    z-index: 1;
}

.hero-highlight-block p {
    margin: 0;
}


@keyframes hero-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title-main {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.02em;
    display: block;
    line-height: 1.3;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 50%, #60A5FA 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    text-align: center;
}

.hero-cta-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem auto 0;
    width: 100%;
    max-width: 640px;
    align-items: stretch;
}

.hero-cta-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 153, 51, 0.6);
    color: rgba(255, 183, 107, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.9), rgba(255, 107, 53, 0.9));
    border-color: rgba(255, 153, 51, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(255, 153, 51, 0.35);
}

.hero-cta-primary i {
    width: 16px;
    height: 16px;
}

.hero-cta-primary,
.hero-cta-secondary,
.hero-cta-dropdown-toggle {
    width: 100%;
    min-height: 3.15rem;
    justify-content: center;
}

.hero-cta-secondary {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: rgba(147, 197, 253, 0.95);
}

.hero-cta-secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    border-color: rgba(59, 130, 246, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
}

@media (max-width: 1024px) {
    .hero-modern-2025 {
        height: 100vh;
        max-height: 100vh;
    }

    .hero-highlight-block {
        padding: 0;
    }

    .hero-chat-sequence .hero-chat-bubble {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-featured-image {
        object-fit: cover;
        object-position: center center;
    }

    .hero-mesh-background {
        animation: mesh-breathe-stable 20s ease-in-out infinite;
    }

    .hero-content-modern {
        min-height: 100vh;
        padding: 0 1rem;
        align-items: center;
        justify-content: center;
    }

    .hero-highlight-block {
        padding: 0;
        margin: 0 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: none;
    }

    .hero-title-main {
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.02em;
        max-width: 100%;
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }

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

    .hero-cta-primary,
    .hero-cta-secondary,
    .hero-cta-dropdown-toggle {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 3rem;
    }

    .hero-chat-sequence {
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .hero-chat-sequence .hero-chat-bubble {
        font-size: 1.1rem;
    }

    .hero-chat-avatar {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .hero-modern-2025 {
        height: 100vh;
        max-height: 100vh;
    }

    .hero-content-modern {
        padding: 0 0.5rem;
        width: 100%;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
    }

    .hero-highlight-block {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .hero-title-main {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.02em;
        max-width: 100%;
        width: 100%;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .hero-cta-group {
        gap: 0.65rem;
        margin-top: 0;
        grid-template-columns: 1fr;
    }

    .hero-cta-primary,
    .hero-cta-secondary,
    .hero-cta-dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.65rem 0.9rem;
        min-height: 2.9rem;
    }

    .hero-cta-primary i,
    .hero-cta-secondary i {
        width: 14px;
        height: 14px;
    }

    .hero-chat-sequence {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .hero-chat-sequence .hero-chat-bubble {
        font-size: 1rem;
        position: relative;
    }

    .hero-chat-sequence .hero-chat-typing-indicator {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 0.5rem;
    }

    .hero-chat-avatar {
        display: flex;
        justify-content: flex-start;
        width: 52px;
        height: 52px;
    }
}

/* ================================================
   CTA DROPDOWN WITH ICON BUTTONS
   ================================================ */
.hero-cta-dropdown {
    position: relative;
    display: flex;
    width: 100%;
}

.hero-cta-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 153, 51, 0.6);
    color: rgba(255, 183, 107, 0.95);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-dropdown-toggle i {
    width: 16px;
    height: 16px;
}

.hero-cta-dropdown-toggle:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.9), rgba(255, 107, 53, 0.9));
    border-color: rgba(255, 153, 51, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(255, 153, 51, 0.35);
}

.hero-cta-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.hero-cta-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    rotate: 45deg;
}

.hero-cta-dropdown.active .hero-cta-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hero-cta-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(26, 31, 58, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-cta-icon-btn i {
    width: 20px;
    height: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-cta-icon-btn svg {
    position: relative;
    z-index: 2;
}

.hero-cta-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero-cta-icon-btn--calendar {
    border-color: rgba(59, 130, 246, 0.4);
}

.hero-cta-icon-btn--calendar::before {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-purple));
}

.hero-cta-icon-btn--calendar:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.hero-cta-icon-btn--whatsapp {
    border-color: rgba(16, 185, 129, 0.4);
}

.hero-cta-icon-btn--whatsapp::before {
    background: linear-gradient(135deg, #10B981, #059669);
}

.hero-cta-icon-btn--whatsapp:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.hero-cta-icon-btn--email {
    border-color: rgba(168, 85, 247, 0.4);
}

.hero-cta-icon-btn--email::before {
    background: linear-gradient(135deg, var(--color-brand-purple), var(--color-brand-pink));
}

.hero-cta-icon-btn--email:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.hero-cta-icon-btn:hover::before {
    opacity: 1;
}

.hero-cta-icon-btn:hover i {
    transform: scale(1.1);
}

.hero-cta-icon-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-cta-dropdown .hero-cta-dropdown-toggle {
        padding: 0.75rem 1.1rem;
        font-size: 0.85rem;
    }

    .hero-cta-dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .hero-cta-dropdown.active .hero-cta-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .hero-cta-dropdown-menu::before {
        left: 50%;
    }

    .hero-cta-icon-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    .hero-cta-dropdown-menu {
        top: auto;
        bottom: calc(100% + 0.75rem);
        transform: translateX(-50%) translateY(12px);
    }

    .hero-cta-dropdown.active .hero-cta-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .hero-cta-dropdown-menu::before {
        top: auto;
        bottom: -6px;
        border-left: 0;
        border-top: 0;
        border-right: 1px solid rgba(148, 163, 184, 0.2);
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-cta-dropdown .hero-cta-dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.65rem 0.9rem;
    }

    .hero-cta-dropdown-toggle i {
        width: 14px;
        height: 14px;
    }
}
