/* Expert CTA (PC a medida) — Impreza-child */

@keyframes home-expert-cta-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes home-expert-cta-blob-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(24px, -18px) scale(1.05); }
    66%      { transform: translate(-16px, 12px) scale(0.97); }
}

.home-expert-cta {
    --expert-cta-primary: #00e4e6;
    --expert-cta-glow: rgba(0, 255, 235, 0.55);
    --expert-cta-section-bg: color-mix(in srgb, var(--expert-cta-primary) 12%, #ffffff 88%);
    --expert-cta-card-bg: #ffffff;
    --expert-cta-badge-bg: var(--expert-cta-primary);
    --expert-cta-accent: var(--expert-cta-primary);
    --expert-cta-title: color-mix(in srgb, var(--expert-cta-primary) 10%, #1a1a2e 90%);
    --expert-cta-subtitle: color-mix(in srgb, var(--expert-cta-primary) 18%, #666666 82%);
    --expert-cta-btn-bg: var(--expert-cta-primary);
    --expert-cta-btn-hover: color-mix(in srgb, var(--expert-cta-primary) 85%, #000000 15%);

    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 88px) 0;
    box-sizing: border-box;
}

.home-expert-cta[data-themed="1"] {
    --expert-cta-btn-bg: var(--expert-cta-primary);
    --expert-cta-btn-hover: color-mix(in srgb, var(--expert-cta-primary) 85%, #000000 15%);
}

.home-expert-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -45deg,
        var(--expert-cta-section-bg),
        color-mix(in srgb, var(--expert-cta-section-bg) 85%, #ffffff 15%),
        color-mix(in srgb, var(--expert-cta-section-bg) 92%, #ffffff 8%),
        color-mix(in srgb, var(--expert-cta-section-bg) 85%, #ffffff 15%),
        var(--expert-cta-section-bg)
    );
    background-size: 400% 400%;
    animation: home-expert-cta-gradient-shift 12s ease infinite;
}

.home-expert-cta__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    animation: home-expert-cta-blob-move 18s ease-in-out infinite;
}

.home-expert-cta__glow--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -18%;
    left: -8%;
    background: var(--expert-cta-glow);
    opacity: 1;
}

.home-expert-cta__glow--2 {
    width: min(360px, 48vw);
    height: min(360px, 48vw);
    bottom: -22%;
    right: -6%;
    background: var(--expert-cta-glow);
    opacity: 0.75;
    animation-delay: -9s;
}

.home-expert-cta__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--expert-cta-accent) 12%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--expert-cta-accent) 10%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.22;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

.home-expert-cta__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    box-sizing: border-box;
}

.home-expert-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(28px, 5vw, 44px);
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--expert-cta-accent) 20%, transparent);
    background: var(--expert-cta-card-bg);
    box-shadow:
        0 20px 50px color-mix(in srgb, var(--expert-cta-accent) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-expert-cta__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--expert-cta-badge-bg);
    border: 1px solid color-mix(in srgb, var(--expert-cta-badge-bg) 80%, #000000 20%);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--expert-cta-badge-bg) 35%, transparent);
}

.home-expert-cta__title {
    margin: 0 0 16px;
    font-size: clamp(1.65rem, 3.8vw, 2.65rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--expert-cta-title);
}

.home-expert-cta__subtitle {
    margin: 0 auto 24px;
    max-width: 56ch;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    color: var(--expert-cta-subtitle);
}

.home-expert-cta__actions {
    display: flex;
    justify-content: center;
}

.home-expert-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: min(100%, 320px);
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    background: var(--expert-cta-btn-bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--expert-cta-btn-bg) 35%, transparent);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-expert-cta__btn:hover,
.home-expert-cta__btn:focus {
    background: var(--expert-cta-btn-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--expert-cta-btn-bg) 30%, transparent);
}

.home-expert-cta__btn svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .home-expert-cta__inner {
        padding: 24px 20px;
    }

    .home-expert-cta__btn {
        width: 100%;
    }
}
