/* ================================================================= */
/* SEMIDYNAMICS CAREERS — Combined styles                            */
/* ================================================================= */

/* ── Hero CSS — all scoped under #sd-hero-root ───────────────────── */
#sd-hero-root {
    --sd-bg: hsl(260 87% 3%);
    --sd-fg: hsl(40 6% 95%);
    --sd-fg-sub: hsl(40 6% 82%);
}

#sd-hero-root, #sd-hero-root * {
    box-sizing: border-box;
}

/* Outer wrapper — clip the absolute video */
#sd-hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-color: var(--sd-bg);
}

/* Background video — own GPU compositor layer */
#sd-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.5s ease;
    transform: translateZ(0); /* promotes to its own compositor layer */
}

/* Section shell — flex column so marquee sticks to bottom */
#sd-hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    isolation: isolate; /* new stacking context — fixed bg blurs stay behind */
}

/* Dark radial vignette behind headline — replaces filter:blur(82px).
   CSS gradient is resolved once at paint time, not every video frame.    */
#sd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 900px 540px at 50% 48%,
        rgba(3, 7, 18, 0.93) 0%,
        rgba(3, 7, 18, 0.70) 45%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Content area — vertically centered, above the ::before gradient */
.sd-hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.sd-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* ── Headline ───────────────────────────────────────────────────── */
#sd-hero-root h1.sd-headline {
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(50px, 10vw, 90px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.024em;
    color: var(--sd-fg);
    margin: 0;
    user-select: none;
}

.sd-headline-gradient {
    background-image: linear-gradient(to left, #6366f1, #a855f7, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subtitle ───────────────────────────────────────────────────── */
#sd-hero-root p.sd-subtitle {
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 2;
    max-width: 28rem;
    margin: 9px auto 0;
    color: var(--sd-fg-sub);
    opacity: 0.8;
}

/* ── CTA button ─────────────────────────────────────────────────── */
.sd-cta-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 24px 29px;
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sd-fg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sd-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--sd-fg);
    text-decoration: none;
}

/* ── Logo Marquee ───────────────────────────────────────────────── */
.sd-marquee-section {
    position: relative;
    z-index: 10;
    padding-bottom: 2.5rem;
}

.sd-marquee-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sd-marquee-label {
    flex-shrink: 0;
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
    color: rgba(245, 241, 232, 0.5);
}

.sd-marquee-track-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.sd-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: sd-marquee-scroll 20s linear infinite;
}

@keyframes sd-marquee-scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.sd-logo-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* Liquid-glass icon square */
.sd-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--sd-fg);
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sd-logo-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sd-logo-name {
    font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sd-fg);
}

/* ── Content Styles ──────────────────────────────────────────────── */

/* ── Tipografia y Fondo Base ────────────────────────────── */
.font-title {
    font-family: var(--satoshi-font, 'Satoshi', sans-serif);
}

.font-inter {
    font-family: var(--inter-font, 'Inter', sans-serif);
}

/* ── Override p global de main.css (scoped a esta pagina) ── */
main p {
    font-size: 1rem; /* 16px — equivalente a text-base */
    line-height: 1.6;
}

main p.text-xs {
    font-size: 0.75rem;
}

/* 12px */
main p.text-sm {
    font-size: 0.875rem;
}

/* 14px */
main p.text-base {
    font-size: 1rem;
}

/* 16px */
main p.text-lg {
    font-size: 1.125rem;
}

/* 18px */
main p.text-xl {
    font-size: 1.25rem;
}

/* 20px */

.bg-brand-black {
    background-color: #060608;
}

/* ── Tarjetas Spotlight Simplificadas ───────────────────── */
.spotlight-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.15s ease;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(224, 231, 255, 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.spotlight-card > * {
    position: relative;
    z-index: 2;
}

/* ── Texto con Gradiente Animado ───────────────────────── */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.animated-gradient-text {
    background: linear-gradient(to right, #bae6fd, #e9d5ff, #fbcfe8, #bae6fd);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* ── Auras Pastel de Fondo ────────────────────────────── */
/* background-color removed from keyframes — it forces a paint call on
   every animation frame. Static color + transform-only = compositor-only. */
.animate-pastel-cycle-1 {
    animation: pastelShift1 16s ease-in-out infinite alternate;
    background-color: rgba(192, 132, 252, 0.06);
    will-change: transform;
}

.animate-pastel-cycle-2 {
    animation: pastelShift2 20s ease-in-out infinite alternate;
    background-color: rgba(52, 211, 153, 0.05);
    will-change: transform;
}

@keyframes pastelShift1 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
    100% {
        transform: translate(-30px, 20px) scale(0.95);
    }
}

@keyframes pastelShift2 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(-40px, 30px) scale(1.05);
    }
    100% {
        transform: translate(30px, -20px) scale(0.95);
    }
}

/* ── Full-bleed: rompe el max-w del contenedor padre ───── */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

/* ── Open Offers Hero Container ────────────────────────── */
.open-offers-card {
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    box-shadow: 0 0 50px rgba(146, 253, 245, 0.08), 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ── Teamtailor Widget Layout ───────────────────────────── */
.teamtailor-jobs__job-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teamtailor-jobs__job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border:  2px solid white;
    border-radius: 0.875rem;
    /*background: rgb(152 154 163 / 56%);*/
    background: rgb(218 221 234 / 0.76);
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.9px;
    line-height: normal;
    align-items: center;
    /*justify-content: center;*/
}

.teamtailor-jobs__job:hover {
    background-color: whitesmoke;
    border-color: rgb(130 93 252 / 0.9);
    transform: translateY(-2px);
    /*--tw-shadow: 0 0 80px -15px var(--tw-shadow-color, #a855f74d);*/
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.teamtailor-jobs__job-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.04512375rem;
    font-weight: 700;
    /*color: #f4f4f5;*/
    color: #191919;
    text-decoration: none;
}

.teamtailor-jobs__job-info {
    font-size: 0.8rem;
    color: #414141;
    font-weight: 600;
}

@media (min-width: 768px) {
    .teamtailor-jobs__job-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .teamtailor-jobs__job {
        flex-direction: column;
        align-items: flex-start;
        min-height: 130px;
    }
}

@media (min-width: 1024px) {
    .teamtailor-jobs__job-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.teamtailor-jobs__select{
    padding: .75rem;
}
.teamtailor-jobs__select option{
    color: #1c1c1c
}

/* ── Teamtailor Pagination ────────────────────────────────── */
.teamtailor-jobs__pagination {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
    align-content: center;

}

.teamtailor-jobs__pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.025em;
}

.teamtailor-jobs__pagination a:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.3);
    text-decoration: none;
}

.teamtailor-jobs__pagination a:active {
    transform: translateY(0);
}
