/* Estilos de componentes personalizados */

/* ─── Display font (Cal Sans) — premium feel tipo Linear/Vercel ──────── */
@font-face {
    font-family: 'Cal Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/CalSans-Regular.woff2') format('woff2');
}

.font-display,
h1.font-display,
h2.font-display {
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Service hero system */
.service-hero {
    --hero-accent: #4f46e5;
    background: #f8fafc;
    padding-top: 6.6rem;
    padding-bottom: 3rem;
}

.service-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--hero-accent) 28%, white);
    background: rgba(255, 255, 255, 0.92);
    color: var(--hero-accent);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-hero-title {
    margin-top: 1.05rem;
    max-width: 13.5ch;
    font-size: clamp(2.75rem, 4.8vw, 4.75rem);
    line-height: 1;
    color: #020617;
}

.service-hero-copy {
    margin-top: 1.1rem;
    max-width: 38rem;
    color: #475569;
    font-size: clamp(1.08rem, 1.55vw, 1.35rem);
    line-height: 1.45;
}

.service-hero-actions {
    margin-top: 1.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-hero-primary,
.service-hero-secondary {
    min-height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-hero-primary {
    background: #020617;
    color: white;
}

.service-hero-secondary {
    background: white;
    color: #1e293b;
    border: 1px solid #dbe3ee;
}

.service-hero-primary:hover,
.service-hero-secondary:hover {
    transform: translateY(-1px);
}

.service-hero-media {
    min-height: 405px;
    border-radius: 1rem;
    overflow: hidden;
    background-position: var(--hero-image-position, center);
    background-size: cover;
    position: relative;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.service-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.04), rgba(15, 23, 42, 0.34)),
        linear-gradient(135deg, color-mix(in srgb, var(--hero-accent) 9%, transparent), transparent 48%);
}

.service-hero-panel {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    max-width: min(28rem, 80%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.62) 52%, rgba(255, 255, 255, 0.74) 100%),
        color-mix(in srgb, var(--hero-accent) 8%, white);
    backdrop-filter: blur(11px) saturate(132%);
    -webkit-backdrop-filter: blur(11px) saturate(132%);
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.15),
        inset 1px 1px 0 rgba(255, 255, 255, 0.98),
        inset -1px -1px 0 rgba(15, 23, 42, 0.08);
    padding: 1.35rem;
    color: #0f172a;
}

.service-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0.5px;
    border-radius: calc(1rem - 1px);
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), transparent 42%, rgba(255, 255, 255, 0.2));
    opacity: 0.9;
}

.service-hero-panel > * {
    position: relative;
    z-index: 1;
}

.service-hero-panel-meta {
    color: color-mix(in srgb, var(--hero-accent) 78%, #0f172a);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-hero-panel-title {
    margin-top: 0.75rem;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    line-height: 1.15;
}

.service-hero-panel-text {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.95rem;
}

.service-depth-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.service-depth-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

.service-depth-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.service-depth-kicker {
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-depth-heading h2 {
    margin-top: 0.7rem;
    color: #020617;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.04;
}

.service-depth-heading p {
    margin-top: 1rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.55;
}

.service-depth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-depth-card {
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 1.35rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.service-depth-card h3 {
    color: #020617;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.18;
}

.service-depth-card p,
.service-depth-card li {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.5;
}

.service-depth-card p {
    margin-top: 0.65rem;
}

.service-depth-card ul {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.45rem;
}

.service-depth-card li {
    position: relative;
    padding-left: 1rem;
}

.service-depth-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #4f46e5;
}

/* Service page visual normalization */
.service-page {
    background: #f8fafc;
}

.service-page main {
    background: #f8fafc;
}

.service-page main > .container,
.service-page main > section,
.service-page .service-depth-section {
    position: relative;
}

.service-page main > .container {
    padding-bottom: 4.75rem;
}

.service-page .glass-effect,
.service-page main :is(div, article, li, details, a)[class*="bg-white"],
.service-page main :is(div, article, li, details, a)[class*="dark:bg-card-dark"],
.service-page main [class*="bg-gradient-to-br"] {
    border-color: rgba(203, 213, 225, 0.78) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.service-page .service-hero-media,
.service-page .home-premium-visual,
.service-page .home-premium-panel {
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08) !important;
}

.service-page main .rounded-2xl,
.service-page main .rounded-3xl {
    border-radius: 1.25rem !important;
}

.service-page main .shadow-lg,
.service-page main .shadow-xl,
.service-page main .shadow-2xl,
.service-page main [class*="shadow-["] {
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06) !important;
}

.service-page main [class*="bg-gradient-to-br"].text-white,
.service-page main [class*="bg-gradient-to-br"][class*="text-white"] {
    color: #0f172a !important;
}

.service-page main [class*="bg-gradient-to-br"].text-white p,
.service-page main [class*="bg-gradient-to-br"].text-white span,
.service-page main [class*="bg-gradient-to-br"].text-white h3,
.service-page main [class*="bg-gradient-to-br"][class*="text-white"] p,
.service-page main [class*="bg-gradient-to-br"][class*="text-white"] span,
.service-page main [class*="bg-gradient-to-br"][class*="text-white"] h3 {
    color: #475569 !important;
}

.service-page #cta-final,
.service-page section[id*="cta-final"],
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"],
.service-page main > .container > section[class*="from-primary"][class*="to-secondary"] {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: #050a1a !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

.service-page #cta-final h2,
.service-page #cta-final p,
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"] h2,
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"] p,
.service-page section[id*="cta-final"] h2,
.service-page section[id*="cta-final"] p {
    color: inherit !important;
}

.service-page #cta-final p,
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"] p,
.service-page section[id*="cta-final"] p {
    color: #cbd5e1 !important;
}

.service-page #cta-final a,
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"] a,
.service-page section[id*="cta-final"] a {
    background: #ffffff !important;
    color: #050a1a !important;
    box-shadow: none !important;
    transform: none !important;
}

.service-page #cta-final a:hover,
.service-page main div[class*="bg-gradient-to-r"][class*="text-white"] a:hover,
.service-page section[id*="cta-final"] a:hover {
    background: #f8fafc !important;
}

.service-page #beneficios[class*="bg-gradient-to-r"] {
    border: 1px solid rgba(203, 213, 225, 0.78);
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.service-page #beneficios[class*="bg-gradient-to-r"] p,
.service-page #beneficios[class*="bg-gradient-to-r"] li,
.service-page #beneficios[class*="bg-gradient-to-r"] span {
    color: #475569 !important;
}

.service-page #acceso-clientes a,
.service-page .service-related-link {
    background: #050a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12) !important;
    transform: none !important;
}

.service-page #acceso-clientes a:hover,
.service-page .service-related-link:hover {
    background: #111827 !important;
}

@media (prefers-color-scheme: dark) {
    .service-page,
    .service-page main {
        background: #0f172a;
    }

    .service-page .glass-effect,
    .service-page main :is(div, article, li, details, a)[class*="bg-white"],
    .service-page main :is(div, article, li, details, a)[class*="dark:bg-card-dark"],
    .service-page main [class*="bg-gradient-to-br"] {
        border-color: rgba(51, 65, 85, 0.9) !important;
        background: rgba(15, 23, 42, 0.94) !important;
    }

    .service-page #beneficios[class*="bg-gradient-to-r"] {
        border-color: rgba(51, 65, 85, 0.9);
        background: rgba(15, 23, 42, 0.94) !important;
        color: #ffffff !important;
    }
}

@media (max-width: 900px) {
    .service-depth-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .service-hero-grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

@media (max-width: 767px) {
    .service-hero {
        padding-top: 6.5rem;
        padding-bottom: 3.25rem;
    }

    .service-hero-title {
        max-width: 11ch;
        font-size: clamp(2.65rem, 12vw, 3.85rem);
        line-height: 1.02;
    }

    .service-hero-copy {
        font-size: clamp(1.12rem, 5vw, 1.35rem);
    }

    .service-hero-actions {
        display: grid;
    }

    .service-hero-primary,
    .service-hero-secondary {
        width: 100%;
    }

    .service-hero-media {
        min-height: 330px;
    }
}

/* Home premium hero */
.home-premium-hero {
    background: #f8fafc;
    padding-top: 6.6rem;
    padding-bottom: 3.25rem;
}

.home-premium-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.home-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(14, 116, 144, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #0e7490;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-premium-title {
    margin-top: 1.05rem;
    max-width: 13ch;
    font-size: clamp(2.8rem, 4.9vw, 4.9rem);
    line-height: 1;
    color: #020617;
}

.home-premium-copy {
    margin-top: 1.1rem;
    max-width: 42rem;
    color: #475569;
    font-size: clamp(1.08rem, 1.55vw, 1.35rem);
    line-height: 1.45;
}

.home-premium-actions {
    margin-top: 1.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-premium-primary,
.home-premium-secondary {
    min-height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-premium-primary {
    background: #020617;
    color: white;
}

.home-premium-secondary {
    background: white;
    color: #1e293b;
    border: 1px solid #dbe3ee;
}

.home-premium-primary:hover,
.home-premium-secondary:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.home-premium-visual {
    position: relative;
    min-height: 420px;
    border-radius: 1rem;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72)),
        url("/assets/home-premium-visual-760.jpg?v=1");
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.home-premium-panel {
    position: absolute;
    left: 0;
    top: 0;
    max-width: min(30rem, 82%);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom-right-radius: 1rem;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    color: white;
}

.home-premium-panel-meta {
    color: #cffafe;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-premium-panel-title {
    margin-top: 0.75rem;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    line-height: 1.15;
}

.home-premium-panel-text {
    margin-top: 0.45rem;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.home-premium-dashboard {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(22rem, calc(100% - 3rem));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.home-premium-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f172a;
    font-weight: 800;
}

.home-premium-dashboard-top strong {
    color: #047857;
    font-size: 0.8rem;
}

.home-premium-kpis {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.home-premium-kpis div {
    border-radius: 0.85rem;
    background: #f8fafc;
    padding: 0.75rem;
}

.home-premium-kpis strong,
.home-premium-kpis span {
    display: block;
}

.home-premium-kpis strong {
    color: #020617;
    font-size: 1.35rem;
}

.home-premium-kpis span {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
}

.home-premium-bars {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.home-premium-bars span {
    display: block;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #0f766e);
}

@media (min-width: 1024px) {
    .home-premium-hero-grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

@media (max-width: 767px) {
    .home-premium-hero {
        padding-top: 6.5rem;
        padding-bottom: 3.25rem;
    }

    .home-premium-title {
        max-width: 11ch;
        font-size: clamp(2.7rem, 12vw, 3.9rem);
        line-height: 1.02;
    }

    .home-premium-copy {
        font-size: clamp(1.12rem, 5vw, 1.35rem);
    }

    .home-premium-actions {
        display: grid;
    }

    .home-premium-primary,
    .home-premium-secondary {
        width: 100%;
    }

    .home-premium-visual {
        min-height: 430px;
    }

    .home-premium-panel {
        max-width: 100%;
    }
}

/* Home proof metrics */
.home-proof-section {
    background: #f8fafc;
    padding: 0 0 4.75rem;
}

.home-proof-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.65fr);
    gap: 1.5rem;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.home-proof-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    border-radius: 22px;
    background: #050a1a;
    color: #ffffff;
    padding: 1.75rem;
    overflow: hidden;
    position: relative;
}

.home-proof-intro::after {
    content: '';
    position: absolute;
    inset: auto -16% -48% 24%;
    height: 160px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.36), transparent 66%);
    pointer-events: none;
}

.home-proof-eyebrow {
    color: #9ee7ef;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.home-proof-title {
    color: #ffffff;
    font-size: clamp(1.35rem, 1.65vw, 1.95rem);
    font-weight: 900;
    line-height: 1.08;
    margin-top: 2.5rem;
    max-width: 13.5em;
    position: relative;
    z-index: 1;
    text-wrap: balance;
}

.home-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-proof-card {
    min-height: 190px;
    border-radius: 22px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    background: rgba(255, 255, 255, 0.84);
    padding: 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-proof-card::before {
    content: '';
    display: block;
    width: 2.15rem;
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #0f766e);
    margin-bottom: auto;
}

.home-proof-number {
    display: block;
    color: #050a1a;
    font-size: clamp(2.15rem, 3vw, 3.55rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.home-proof-card p {
    color: #475569;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.28;
    margin-top: 0.85rem;
}

@media (max-width: 1023px) {
    .home-proof-shell {
        grid-template-columns: 1fr;
    }

    .home-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-proof-intro,
    .home-proof-card {
        min-height: 155px;
    }
}

@media (max-width: 639px) {
    .home-proof-section {
        padding-bottom: 3.5rem;
    }

    .home-proof-shell {
        border-radius: 22px;
        padding: 0.8rem;
    }

    .home-proof-intro {
        border-radius: 18px;
        padding: 1.35rem;
    }

    .home-proof-title {
        margin-top: 2rem;
    }

    .home-proof-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .home-proof-card {
        min-height: 132px;
        border-radius: 18px;
        padding: 1.2rem;
    }
}

/* Efecto Glass/Cristal */
.glass-effect {
    background: rgba(248, 250, 252, 0.8); /* bg-slate-50 with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tarjeta de Servicio */
.service-card {
    background-color: #ffffff; /* bg-white */
    border-radius: 1.125rem;
    padding: 2rem; /* p-8 */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); /* hover:shadow-2xl */
    transform: translateY(-0.75rem) scale(1.02); /* hover:-translate-y-3 hover:scale-105 */
    border-color: #06b6d4; /* hover:border-primary */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005f73, #0a9396, #ee9b00);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Tarjeta destacada - Pruebas Psicométricas */
.service-card.featured {
    background: #ffffff;
    border: 2px solid #fed7aa; /* orange-200 */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15); /* orange-500 shadow */
}

.service-card.featured::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.03) 0%, transparent 70%); /* orange-500 */
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.service-card.featured:hover {
    transform: translateY(-1rem) scale(1.05);
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.25); /* orange-500 shadow */
    border-color: #fdba74; /* orange-300 */
}

/* Tarjeta de Blog */
.blog-card {
    display: block;
    background-color: white;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    transition: all 0.3s;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); /* hover:shadow-2xl */
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
}

.home-blog-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
}

.home-blog-card:hover {
    border-color: color-mix(in srgb, var(--accent, #0e7490) 28%, rgba(226, 232, 240, 0.9));
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
}

.home-blog-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.home-blog-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.3)),
        linear-gradient(135deg, color-mix(in srgb, var(--accent, #0e7490) 16%, transparent), rgba(15, 23, 42, 0.1) 55%, rgba(2, 6, 23, 0.18));
    pointer-events: none;
}

.home-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.05);
    transition: transform 0.35s ease;
}

.home-blog-card:hover .home-blog-media img {
    transform: scale(1.035);
}

.home-blog-body {
    padding: 1.25rem 1.25rem 1.4rem;
}

.home-blog-body h3 {
    margin-top: 0.8rem;
    line-height: 1.2;
}

.home-blog-body p {
    margin-top: 0.75rem;
    line-height: 1.55;
}

/* Home icon system */
:root {
    --home-icon-ink: #0f172a;
    --home-icon-brand: #0f766e;
    --home-icon-border: rgba(15, 23, 42, 0.1);
    --home-icon-surface: linear-gradient(180deg, #ffffff, #f8fafc);
    --home-icon-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 14px 28px rgba(15, 23, 42, 0.08);
    --icon-size-sm: 16px;
    --icon-size-md: 21px;
    --icon-size-lg: 25px;
    --icon-radius-sm: 13px;
    --icon-radius-md: 16px;
    --icon-radius-lg: 18px;
}

i[class^="ph-"],
i[class*=" ph-"],
i.ph {
    font-weight: 400;
    line-height: 1;
    speak: never;
}

main svg[stroke="currentColor"] path[stroke-width="2"],
main svg[stroke="currentColor"] circle[stroke-width="2"],
main svg[stroke="currentColor"] line[stroke-width="2"],
main svg[stroke="currentColor"] polyline[stroke-width="2"] {
    stroke-width: 1.65;
}

svg[stroke="currentColor"] {
    stroke-width: 1.65;
}

.service-card svg,
.blog-card svg,
.feature-card svg,
.process-card svg,
.contact-card svg {
    stroke-width: 1.65;
}

.service-card,
.blog-card,
.home-pillar-card,
.card-animate {
    border-radius: 1.125rem !important;
}

.service-card:hover,
.blog-card:hover,
.card-animate:hover {
    transform: translateY(-0.35rem);
}

.home-pillars-section {
    background: #ffffff;
    padding: 4.25rem 0 4.75rem;
}

.home-pillars-heading {
    display: block;
    max-width: 58rem;
    margin-bottom: 2rem;
}

.home-pillars-eyebrow {
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-pillars-title {
    color: #050a1a;
    font-size: clamp(2.25rem, 3.4vw, 3.75rem);
    font-weight: 900;
    line-height: 1.02;
    margin-top: 0.75rem;
    max-width: 11.5em;
}

.home-pillars-heading p {
    margin-top: 1rem;
    color: #475569;
    font-size: clamp(1.02rem, 1.3vw, 1.16rem);
    line-height: 1.45;
    max-width: 46rem;
}

.home-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-pillar-card {
    min-height: 320px;
    border-radius: 22px !important;
    border: 1px solid rgba(203, 213, 225, 0.86);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.94)),
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.12), transparent 34%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.45rem;
    position: relative;
    overflow: hidden;
}

.home-pillar-card::after {
    content: '';
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.75), rgba(15, 118, 110, 0.12));
}

.home-pillar-index {
    margin-top: 1.15rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.home-icon-token {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border-radius: 18px;
    border: 1px solid var(--home-icon-border);
    background: var(--home-icon-surface);
    color: var(--home-icon-brand);
    box-shadow: var(--home-icon-shadow);
}

.home-icon-token i {
    font-size: var(--icon-size-lg);
    line-height: 1;
}

.home-pillar-card h3 {
    color: #050a1a;
    font-size: clamp(1.55rem, 1.8vw, 2rem);
    font-weight: 900;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0.2rem !important;
}

.home-pillar-card p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 29rem;
}

.dark .home-icon-token {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.9));
    color: #5eead4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1023px) {
    .home-pillars-grid {
        grid-template-columns: 1fr;
    }

    .home-pillar-card {
        min-height: 0;
    }
}

@media (max-width: 639px) {
    .home-pillars-section {
        padding: 4rem 0;
    }

    .home-pillars-heading {
        gap: 1rem;
        margin-bottom: 1.6rem;
    }

    .home-pillar-card {
        min-height: 0;
        border-radius: 20px !important;
        padding: 1.2rem;
    }

    .home-pillar-card::after {
        left: 1.2rem;
        right: 1.2rem;
        bottom: 1.2rem;
    }
}

#talentdeck .card-animate > .flex.items-center.gap-4.mb-4 > div:first-child {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid var(--home-icon-border) !important;
    background: var(--home-icon-surface) !important;
    color: var(--home-icon-brand) !important;
    box-shadow: var(--home-icon-shadow) !important;
    transform: none !important;
}

.service-card > div[class*="bg-gradient-to-r"][class*="from-primary"][class*="to-secondary"] {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid var(--home-icon-border) !important;
    background: var(--home-icon-surface) !important;
    color: var(--home-icon-brand) !important;
    box-shadow: var(--home-icon-shadow) !important;
}

.service-card > div[class*="bg-gradient-to-r"][class*="from-primary"][class*="to-secondary"] svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 1.9 !important;
    color: var(--home-icon-brand) !important;
}

.service-card > div[class*="bg-gradient-to-r"][class*="from-primary"][class*="to-secondary"] i {
    font-size: var(--icon-size-md);
    line-height: 1;
    color: var(--home-icon-brand) !important;
}

.contact-icon-token {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--icon-radius-sm);
    border: 1px solid var(--home-icon-border);
    background: var(--home-icon-surface);
    color: var(--home-icon-brand);
    box-shadow: var(--home-icon-shadow);
}

.contact-icon-token--lg {
    width: 52px;
    height: 52px;
    border-radius: var(--icon-radius-md);
}

.contact-icon-token i {
    font-size: var(--icon-size-md);
}

.contact-icon-token--lg i {
    font-size: var(--icon-size-lg);
}

#contacto .button-text i,
#contacto h4 i,
#contacto li i {
    font-size: var(--icon-size-sm);
}

#contacto .bg-white\/50,
#contacto .dark\:bg-slate-800\/50 {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

#contacto a[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dark .contact-icon-token {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.9));
    color: #5eead4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.service-card:hover > div[class*="bg-gradient-to-r"][class*="from-primary"][class*="to-secondary"] {
    transform: translateY(-1px) !important;
}

.dark .service-card > div[class*="bg-gradient-to-r"][class*="from-primary"][class*="to-secondary"] {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.9)) !important;
    color: #5eead4 !important;
}

#talentdeck .card-animate > .flex.items-center.gap-4.mb-4 > div:first-child svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 1.9 !important;
    color: var(--home-icon-brand) !important;
}

#talentdeck .card-animate:hover > .flex.items-center.gap-4.mb-4 > div:first-child {
    transform: translateY(-1px) !important;
}

#talentdeck .card-animate {
    border-radius: 20px !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06) !important;
}

#talentdeck .card-animate:hover {
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1) !important;
}

.home-td-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

#talentdeck .home-td-module-card {
    min-height: 300px;
    border-radius: 22px !important;
    border: 1px solid rgba(203, 213, 225, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055) !important;
    display: flex;
    flex-direction: column;
    padding: 1.35rem !important;
    position: relative;
    overflow: hidden;
}

#talentdeck .home-td-module-card::before {
    content: '';
    position: absolute;
    left: 1.35rem;
    right: 1.35rem;
    top: auto;
    bottom: 1.1rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.76), rgba(15, 118, 110, 0.12));
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

#talentdeck .home-td-module-card:hover {
    transform: translateY(-0.22rem) !important;
    border-color: rgba(15, 118, 110, 0.22) !important;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08) !important;
}

#talentdeck .home-td-module-card:hover::before {
    opacity: 1;
}

#talentdeck .home-td-module-card > .flex:first-child {
    align-items: flex-start;
    gap: 1rem !important;
    margin-bottom: 1.35rem !important;
}

#talentdeck .home-td-module-card > .flex:first-child > div:first-child {
    width: 3.55rem !important;
    height: 3.55rem !important;
    border-radius: 18px !important;
    color: #0f766e !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86), 0 14px 28px rgba(15, 23, 42, 0.08) !important;
    transform: none !important;
}

#talentdeck .home-td-module-card h3 {
    color: #050a1a !important;
    font-size: clamp(1.22rem, 1.25vw, 1.48rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: 0;
}

#talentdeck .home-td-module-card h3 + span {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08) !important;
    color: #0f766e !important;
    padding: 0.28rem 0.58rem !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    line-height: 1;
}

#talentdeck .home-td-module-card > p {
    color: #475569 !important;
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.3rem !important;
}

#talentdeck .home-td-module-card > .flex:last-child {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(203, 213, 225, 0.58);
}

#talentdeck .home-td-module-card > .flex:last-child span {
    color: #64748b !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
}

#talentdeck .home-td-module-card > .flex:last-child a {
    color: #0f766e !important;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

#talentdeck .home-td-module-card.is-required {
    border-color: rgba(203, 213, 225, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)) !important;
}

#talentdeck .home-td-module-card.is-required::before {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.55), rgba(15, 118, 110, 0.1));
    opacity: 0.45;
}

#talentdeck .home-td-module-card.is-required > .flex:last-child a {
    color: #0f766e !important;
}

@media (max-width: 1279px) {
    .home-td-modules-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .home-td-modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .home-td-modules-grid {
        grid-template-columns: 1fr;
    }

    #talentdeck .home-td-module-card {
        min-height: 250px;
        border-radius: 20px !important;
    }
}

.home-talentdeck-cta-wrap {
    margin-top: 2.65rem;
    display: flex;
    justify-content: center;
}

.home-talentdeck-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.45rem;
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    color: #050a1a;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-talentdeck-cta::after {
    content: none;
}

.home-talentdeck-cta:hover {
    color: #050a1a;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.home-talentdeck-cta-arrow,
.home-talentdeck-cta-copy {
    position: relative;
    z-index: 1;
}

.home-talentdeck-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.home-talentdeck-cta-copy {
    display: block;
    min-width: 0;
    text-align: left;
}

.home-talentdeck-cta-copy strong {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.home-talentdeck-cta-arrow {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.home-talentdeck-cta-arrow {
    font-size: 0.9rem;
}

@media (max-width: 639px) {
    .home-talentdeck-cta-wrap {
        margin-top: 2.4rem;
    }

    .home-talentdeck-cta {
        width: 100%;
        justify-content: space-between;
        border-radius: 1.4rem;
    }
}

#talentdeck a.inline-flex svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
}

.dark #talentdeck .card-animate > .flex.items-center.gap-4.mb-4 > div:first-child {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.9)) !important;
    color: #5eead4 !important;
}

/* Estilos de Botones */
.btn-primary-light {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    touch-action: manipulation;
    min-height: 44px; /* Accessibility minimum touch target */
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .btn-primary-light {
        padding: 14px 24px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.btn-primary-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
    text-decoration: none;
    color: white;
}

.btn-secondary-light {
    background-color: transparent;
    color: #1e293b; /* text-dark */
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid #cbd5e1; /* slate-300 */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    touch-action: manipulation;
    min-height: 44px; /* Accessibility minimum touch target */
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .btn-secondary-light {
        padding: 14px 24px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.btn-secondary-light:hover {
    background-color: #f1f5f9; /* slate-100 */
    border-color: #94a3b8; /* slate-400 */
    transform: translateY(-2px);
    text-decoration: none;
    color: #1e293b;
}

/* Estilos para modo oscuro */
.dark .service-card {
    background-color: rgba(15, 23, 42, 0.5); /* dark:bg-slate-800/50 */
}

.dark .blog-card {
    background-color: #0f172a; /* dark:bg-card-dark */
}

.dark .btn-secondary-light {
    color: #e2e8f0; /* text-light */
    border-color: #475569; /* slate-600 */
}

.dark .btn-secondary-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #64748b; /* slate-500 */
    color: #e2e8f0;
}

/* Iconos premium homologados para el dropdown de Servicios */
.service-menu-icon {
    --service-icon-accent: #0f766e;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98)),
        color-mix(in srgb, var(--service-icon-accent) 4%, white);
    border: 1px solid color-mix(in srgb, var(--service-icon-accent) 14%, #dbe6ef);
    box-shadow:
        0 12px 24px -20px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-menu-icon i {
    font-size: 1.05rem;
    line-height: 1;
    color: color-mix(in srgb, var(--service-icon-accent) 68%, #0f172a);
    transition: transform 220ms ease, color 220ms ease;
}

.service-menu-icon--cyan,
.service-menu-icon--emerald,
.service-menu-icon--sky,
.service-menu-icon--blue,
.service-menu-icon--rose,
.service-menu-icon--indigo,
.service-menu-icon--violet,
.service-menu-icon--amber,
.service-menu-icon--slate {
    --service-icon-accent: #0f766e;
}

.dark .service-menu-icon {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92)),
        color-mix(in srgb, var(--service-icon-accent) 10%, #0f172a);
    border-color: color-mix(in srgb, var(--service-icon-accent) 18%, #334155);
    box-shadow:
        0 14px 26px -18px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark .service-menu-icon i {
    color: color-mix(in srgb, var(--service-icon-accent) 62%, #e2e8f0);
}

.group a:hover .service-menu-icon,
.service-menu-icon:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--service-icon-accent) 26%, #cbd5e1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.98)),
        color-mix(in srgb, var(--service-icon-accent) 6%, white);
    box-shadow:
        0 16px 30px -22px rgba(15, 23, 42, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.group a:hover .service-menu-icon i {
    transform: scale(1.045);
}

.td-module-thumb {
    --td-accent: #06b6d4;
    --td-soft: #ecfeff;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.95), transparent 24%),
        linear-gradient(135deg, var(--td-soft), rgba(255, 255, 255, 0.9));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--td-accent) 16%, transparent);
}

.td-module-thumb::before,
.td-module-thumb::after,
.td-module-thumb > span {
    content: '';
    position: absolute;
    display: block;
}

.td-module-psych {
    --td-accent: #9333ea;
    --td-soft: #f5edff;
}

.td-module-psych::before {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid var(--td-accent);
    border-radius: 999px;
    box-shadow: 0 0 0 0.35rem rgba(147, 51, 234, 0.08);
    animation: td-pulse-dot 1.9s ease-in-out infinite;
}

.td-module-psych::after {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--td-accent);
    transform-origin: 0.95rem 0.95rem;
    animation: td-orbit 2.8s linear infinite;
}

.td-module-performance {
    --td-accent: #2563eb;
    --td-soft: #eff6ff;
}

.td-module-performance::before {
    inset: 0.85rem 0.7rem 0.65rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.35);
    background:
        linear-gradient(var(--td-accent), var(--td-accent)) 0 100% / 0.34rem 45% no-repeat,
        linear-gradient(var(--td-accent), var(--td-accent)) 50% 100% / 0.34rem 72% no-repeat,
        linear-gradient(var(--td-accent), var(--td-accent)) 100% 100% / 0.34rem 58% no-repeat;
    animation: td-bars 1.8s ease-in-out infinite;
}

.td-module-360 {
    --td-accent: #7c3aed;
    --td-soft: #f3efff;
}

.td-module-360::before {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px dashed rgba(124, 58, 237, 0.5);
    border-radius: 999px;
    animation: td-spin 4s linear infinite;
}

.td-module-360::after,
.td-module-360 > span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--td-accent);
    box-shadow: -0.8rem 0.85rem 0 rgba(124, 58, 237, 0.6), 0.8rem 0.85rem 0 rgba(124, 58, 237, 0.35);
}

.td-module-nom {
    --td-accent: #ef4444;
    --td-soft: #fff1f2;
}

.td-module-nom::before {
    width: 1.35rem;
    height: 1.5rem;
    background: var(--td-accent);
    clip-path: polygon(50% 0, 88% 14%, 82% 66%, 50% 100%, 18% 66%, 12% 14%);
    animation: td-shield 2s ease-in-out infinite;
}

.td-module-nom::after {
    width: 0.65rem;
    height: 0.36rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(0.05rem);
}

.td-module-climate {
    --td-accent: #0891b2;
    --td-soft: #ecfeff;
}

.td-module-climate::before {
    width: 1.7rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 2px solid var(--td-accent);
    background: rgba(255, 255, 255, 0.7);
    animation: td-float 2.4s ease-in-out infinite;
}

.td-module-climate::after {
    width: 1.8rem;
    height: 0.5rem;
    bottom: 0.55rem;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.35), transparent);
    border-radius: 999px;
    animation: td-scan 2.2s ease-in-out infinite;
}

.td-module-people {
    --td-accent: #059669;
    --td-soft: #ecfdf5;
}

.td-module-people::before {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: var(--td-accent);
    box-shadow: -0.75rem 0.55rem 0 rgba(5, 150, 105, 0.55), 0.75rem 0.55rem 0 rgba(5, 150, 105, 0.55);
    animation: td-people 1.9s ease-in-out infinite;
}

.td-module-people::after {
    width: 1.8rem;
    height: 0.7rem;
    bottom: 0.55rem;
    border: 2px solid rgba(5, 150, 105, 0.35);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
}

.td-module-ats {
    --td-accent: #d97706;
    --td-soft: #fffbeb;
}

.td-module-ats::before,
.td-module-ats::after,
.td-module-ats > span {
    width: 1.9rem;
    height: 0.62rem;
    border-radius: 0.45rem;
    background: rgba(217, 119, 6, 0.18);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.22);
}

.td-module-ats::before { transform: translateY(-0.62rem); }
.td-module-ats > span { transform: translateY(0); background: rgba(217, 119, 6, 0.32); }
.td-module-ats::after { transform: translateY(0.62rem); animation: td-card-slide 2s ease-in-out infinite; }

.td-module-check {
    --td-accent: #0284c7;
    --td-soft: #f0f9ff;
}

.td-module-check::before {
    inset: 0.72rem;
    border: 2px solid var(--td-accent);
    border-radius: 0.75rem;
}

.td-module-check::after {
    inset: 0.45rem;
    background: linear-gradient(180deg, transparent, rgba(2, 132, 199, 0.28), transparent);
    animation: td-scan-vertical 1.8s ease-in-out infinite;
}

.td-module-check > span {
    width: 0.72rem;
    height: 0.4rem;
    border-left: 2px solid var(--td-accent);
    border-bottom: 2px solid var(--td-accent);
    transform: rotate(-45deg) translateY(0.1rem);
}

.td-module-time {
    --td-accent: #059669;
    --td-soft: #ecfdf5;
}

.td-module-time::before {
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid var(--td-accent);
    border-radius: 999px;
}

.td-module-time::after {
    width: 0.12rem;
    height: 0.6rem;
    background: var(--td-accent);
    border-radius: 999px;
    transform-origin: 50% 100%;
    animation: td-clock 2.4s linear infinite;
}

@keyframes td-pulse-dot {
    0%, 100% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes td-orbit {
    from { transform: rotate(0deg) translateX(0.9rem) rotate(0deg); }
    to { transform: rotate(360deg) translateX(0.9rem) rotate(-360deg); }
}

@keyframes td-bars {
    0%, 100% { filter: saturate(0.85); transform: scaleY(0.92); }
    50% { filter: saturate(1.2); transform: scaleY(1.06); }
}

@keyframes td-spin {
    to { transform: rotate(360deg); }
}

@keyframes td-shield {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-0.08rem) scale(1.06); }
}

@keyframes td-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.18rem); }
}

@keyframes td-scan {
    0%, 100% { opacity: 0.25; transform: translateX(-0.25rem); }
    50% { opacity: 0.9; transform: translateX(0.25rem); }
}

@keyframes td-people {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.12rem); }
}

@keyframes td-card-slide {
    0%, 100% { transform: translate(0, 0.62rem); opacity: 0.55; }
    50% { transform: translate(0.18rem, 0.62rem); opacity: 1; }
}

@keyframes td-scan-vertical {
    0%, 100% { transform: translateY(-0.5rem); opacity: 0.15; }
    50% { transform: translateY(0.5rem); opacity: 0.8; }
}

@keyframes td-clock {
    from { transform: translateY(-0.3rem) rotate(0deg); }
    to { transform: translateY(-0.3rem) rotate(360deg); }
}

/* Premium TalentDeck dropdown glyphs.
   Overrides the earlier decorative CSS drawings with a quieter icon system. */
.td-module-thumb.td-module-glyph {
    width: 2.35rem;
    height: 2.35rem;
    flex-basis: 2.35rem;
    border-radius: 0.9rem;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        color-mix(in srgb, var(--td-accent) 7%, white);
    border: 1px solid color-mix(in srgb, var(--td-accent) 20%, #dbe6ef);
    box-shadow:
        0 12px 24px -18px color-mix(in srgb, var(--td-accent) 45%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.td-module-thumb.td-module-glyph::before,
.td-module-thumb.td-module-glyph::after,
.td-module-thumb.td-module-glyph > span {
    content: none;
    display: none;
}

.td-module-thumb.td-module-glyph i {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    color: color-mix(in srgb, var(--td-accent) 88%, #0f172a);
    line-height: 1;
    transform: translateZ(0);
    transition: transform 220ms ease, color 220ms ease;
}

.group a:hover .td-module-thumb.td-module-glyph,
.td-module-thumb.td-module-glyph:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--td-accent) 34%, #cbd5e1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.98)),
        color-mix(in srgb, var(--td-accent) 10%, white);
    box-shadow:
        0 16px 30px -20px color-mix(in srgb, var(--td-accent) 62%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.group a:hover .td-module-thumb.td-module-glyph i {
    transform: scale(1.045);
}

.dark .td-module-thumb.td-module-glyph {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92)),
        color-mix(in srgb, var(--td-accent) 10%, #0f172a);
    border-color: color-mix(in srgb, var(--td-accent) 22%, #334155);
    box-shadow:
        0 14px 26px -18px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark .td-module-thumb.td-module-glyph i {
    color: color-mix(in srgb, var(--td-accent) 78%, #e2e8f0);
}

@media (prefers-reduced-motion: reduce) {
    .td-module-thumb.td-module-glyph,
    .td-module-thumb.td-module-glyph i {
        transition: none;
    }
}

/* Premium main navigation */
.site-header-premium {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom-color: rgba(226, 232, 240, 0.72) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.site-header-premium.shadow-md {
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07) !important;
}

.header-shell-premium {
    gap: clamp(0.8rem, 1.5vw, 1.4rem);
}

.brand-lockup {
    max-width: 9.25rem;
    padding: 0;
    border-radius: 0;
    gap: 0.55rem !important;
}

.brand-mark {
    width: 2.05rem !important;
    height: 2.05rem !important;
    border-radius: 0.72rem !important;
}

.brand-name {
    max-width: 5.85rem;
    line-height: 1;
    gap: 0.04rem;
    letter-spacing: 0;
}

.brand-name__primary {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 0.95;
}

.brand-name__secondary {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 1;
    color: #64748b;
    text-transform: uppercase;
}

.dark .brand-name__secondary {
    color: #94a3b8;
}

.main-nav-premium {
    margin-left: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: clamp(0.2rem, 0.55vw, 0.55rem);
}

.main-nav-premium .nav-link {
    min-height: 2.55rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 0.8rem !important;
    padding: 0.52rem 0.62rem !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.002em;
    position: relative;
}

.main-nav-premium .nav-link:hover,
.main-nav-premium .group:hover > .nav-link {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.035) !important;
    box-shadow: none;
}

.main-nav-premium .nav-link--product {
    color: #0f766e !important;
    background: transparent !important;
    font-weight: 600 !important;
}

.main-nav-premium .nav-link--product:hover,
.main-nav-premium .group:hover > .nav-link--product {
    background: rgba(6, 182, 212, 0.075) !important;
    color: #0e7490 !important;
    box-shadow: none;
}

.main-nav-premium .nav-link--product::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.22rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0e7490, #67e8f9);
}

.main-nav-premium .nav-link--jobs {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav-premium.desktop-menus-ready [data-desktop-panel] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.main-nav-premium.desktop-menus-ready [data-desktop-menu].is-open > [data-desktop-panel] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.main-nav-premium.desktop-menus-ready [data-desktop-menu].is-open > .nav-link {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.035) !important;
}

.main-nav-premium.desktop-menus-ready [data-desktop-menu].is-open > .nav-link--product {
    color: #0e7490 !important;
    background: rgba(6, 182, 212, 0.075) !important;
}

.main-nav-premium .group > div > div {
    border-radius: 1.05rem !important;
    border-color: rgba(226, 232, 240, 0.88) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

.header-actions-premium {
    flex-shrink: 0;
    margin-left: 0.55rem;
}

.header-icon-button {
    width: 2.42rem !important;
    height: 2.42rem !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.95rem !important;
    background: rgba(255, 255, 255, 0.76);
    color: #64748b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.header-icon-button:hover {
    color: #0f766e !important;
    background: #ffffff !important;
    border-color: rgba(15, 118, 110, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.header-separator {
    height: 1.9rem !important;
    background: rgba(203, 213, 225, 0.8) !important;
}

.header-access-button {
    min-height: 2.58rem;
    border-radius: 0.95rem !important;
    background: #0f172a !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.17) !important;
    padding-inline: 1.12rem !important;
    font-weight: 650 !important;
}

.header-access-button:hover {
    background: #1e293b !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2) !important;
}

.header-access-button i {
    font-size: 1rem;
}

.dark .site-header-premium {
    background: rgba(15, 23, 42, 0.84) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .main-nav-premium {
    background: transparent;
    box-shadow: none;
}

.dark .main-nav-premium .nav-link {
    color: #cbd5e1 !important;
}

.dark .main-nav-premium .nav-link:hover,
.dark .main-nav-premium .group:hover > .nav-link {
    color: #67e8f9 !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.dark .main-nav-premium .nav-link--product {
    color: #67e8f9 !important;
    background: rgba(6, 182, 212, 0.12) !important;
}

.dark .header-icon-button {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1 !important;
}

.dark .header-icon-button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #67e8f9 !important;
}

.dark .header-access-button {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 1180px) {
    .brand-name {
        max-width: 6.4rem;
    }

    .main-nav-premium .nav-link {
        padding-inline: 0.58rem !important;
        font-size: 0.86rem !important;
    }

    .header-access-button {
        padding-inline: 0.95rem !important;
    }
}

@media (max-width: 420px) {
    .brand-name {
        display: none !important;
    }
}

/* ==========================================================================
   reCAPTCHA v3 badge oculto.
   Google permite ocultarlo siempre que se muestre el disclaimer de
   "This site is protected by reCAPTCHA..." cerca del formulario donde aplica.
   El disclaimer está en la sección de contacto, después del botón de envío.
   Ref: https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge
   ========================================================================== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Blog editorial index
   ========================================================================== */
.blog-index {
    background: #f8fafc;
    color: #0f172a;
}

.blog-index-hero {
    position: relative;
    overflow: hidden;
    padding: 8.5rem 0 5.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98)),
        linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(15, 118, 110, 0.06));
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.blog-index-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #0e7490;
    font-size: 0.82rem;
    font-weight: 650;
}

.blog-index-eyebrow i {
    font-size: 1rem;
}

.blog-index-title {
    max-width: 54rem;
    margin-top: 1.35rem;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.65rem, 5vw, 5.15rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: 0;
}

.blog-index-lede {
    max-width: 42rem;
    margin-top: 1.35rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.75;
}

.blog-index-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.blog-index-stat {
    min-height: 3.1rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.blog-index-stat strong,
.blog-index-stat span {
    display: block;
}

.blog-index-stat strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 750;
}

.blog-index-stat span {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 550;
}

.blog-filter-bar {
    position: sticky;
    top: 72px;
    z-index: 30;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.blog-filter-list {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.85rem 0;
    scrollbar-width: none;
}

.blog-filter-list::-webkit-scrollbar {
    display: none;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    flex: 0 0 auto;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 650;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    border-color: rgba(14, 116, 144, 0.22);
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.blog-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 0.72rem;
}

.blog-filter-btn.active .blog-filter-count,
.blog-filter-btn:hover .blog-filter-count {
    background: rgba(255, 255, 255, 0.16);
}

.blog-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.55rem;
}

.blog-section-heading h2 {
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: 0;
}

.blog-section-heading p {
    max-width: 34rem;
    color: #64748b;
    line-height: 1.65;
}

.blog-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-feature-card:hover {
    transform: translateY(-0.2rem);
    border-color: rgba(14, 116, 144, 0.16);
    box-shadow: 0 28px 78px rgba(15, 23, 42, 0.11);
}

.blog-feature-panel {
    display: flex;
    min-height: 21rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background: #0f172a;
    color: #ffffff;
}

.blog-feature-panel.blog-feature-panel--image {
    position: relative;
    min-height: 24rem;
    padding: 0;
    background: #0f172a;
}

.blog-feature-panel--image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
}

.blog-feature-panel--image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.42)),
        linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.08) 45%, rgba(2, 6, 23, 0.26));
    pointer-events: none;
}

.blog-feature-label {
    position: absolute;
    left: 1.35rem;
    bottom: 1.35rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-feature-panel i {
    font-size: 2.15rem;
    color: #67e8f9;
}

.blog-feature-panel span {
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 650;
}

.blog-feature-body {
    padding: 2.15rem;
}

.blog-feature-kicker,
.blog-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--accent, #0e7490);
    font-size: 0.76rem;
    font-weight: 750;
    text-transform: uppercase;
}

.blog-card-kicker i,
.blog-feature-kicker i {
    font-size: 0.95rem;
}

.blog-feature-title {
    margin-top: 0.95rem;
    color: #0f172a;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: 0;
}

.blog-feature-summary {
    margin-top: 1rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 550;
}

.blog-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-top: 1.6rem;
    color: #0e7490;
    font-weight: 750;
}

.blog-read-link i {
    transition: transform 0.2s ease;
}

.blog-feature-card:hover .blog-read-link i,
.blog-article-card:hover .blog-read-link i {
    transform: translateX(0.18rem);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-article-card {
    display: flex;
    min-height: 18.5rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.045);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-article-card[hidden] {
    display: none;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.blog-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.28)),
        linear-gradient(135deg, color-mix(in srgb, var(--accent, #0e7490) 18%, transparent), rgba(15, 23, 42, 0.08) 50%, rgba(2, 6, 23, 0.18));
    pointer-events: none;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.05);
    transition: transform 0.35s ease;
}

.blog-article-card:hover .blog-card-media img {
    transform: scale(1.035);
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.blog-article-card:hover {
    transform: translateY(-0.18rem);
    border-color: rgba(14, 116, 144, 0.18);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.blog-article-card h3 {
    margin-top: 0.85rem;
    color: #0f172a;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0;
}

.blog-article-card p {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.62;
}

.blog-article-card .blog-meta-row {
    margin-top: auto;
    padding-top: 1.1rem;
    font-size: 0.78rem;
}

.blog-article-card .blog-read-link {
    margin-top: 0.95rem;
    font-size: 0.9rem;
}

.blog-article-page {
    background: #f8fafc !important;
    color: #0f172a;
}

.blog-article-page .blog-post-hero {
    position: relative;
    overflow: hidden;
    padding: 14rem 0 3.5rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #0f172a !important;
}

.blog-article-page header.blog-post-hero {
    padding-top: 7.5rem !important;
}

.blog-article-page .blog-post-hero [class*="text-white"],
.blog-article-page .blog-post-hero [class*="text-slate-600"],
.blog-article-page .blog-post-hero [class*="text-slate-800"] {
    color: #475569 !important;
}

.blog-article-page .blog-post-hero h1,
.blog-article-page .blog-post-hero h1 * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.blog-article-page main .blog-post-hero h1 {
    margin-top: 5rem !important;
}

.blog-article-page .blog-post-hero a {
    color: #0e7490 !important;
    font-weight: 700;
}

.blog-article-page .blog-post-hero span[class*="rounded-full"] {
    border: 1px solid rgba(14, 116, 144, 0.14) !important;
    background: #ffffff !important;
    color: #0e7490 !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.blog-article-page .blog-post-hero span[class*="animate-pulse"] {
    animation: none !important;
}

.blog-article-page .blog-post-cover {
    width: min(100%, 58rem);
    margin: 1.8rem auto 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1rem;
    background: #0f172a;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.075);
}

.blog-article-page .blog-post-cover img {
    display: block;
    width: 100%;
    max-height: 26rem;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.blog-article-page main.py-12,
.blog-article-page main[id="main-content"].py-12,
.blog-article-page main > section.py-20 {
    padding-top: 3.25rem !important;
    padding-bottom: 4.25rem !important;
}

.blog-article-page article,
.blog-article-page .prose {
    color: #334155;
}

.blog-article-page article {
    font-size: 1.03rem;
    line-height: 1.78;
}

.blog-article-page article > * + * {
    margin-top: 1.05rem;
}

.blog-article-page article.bg-white,
.blog-article-page article[class*="shadow-xl"] {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.25rem !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055) !important;
}

.blog-article-page .prose h2,
.blog-article-page .prose h3,
.blog-article-page article h2,
.blog-article-page article h3 {
    color: #0f172a;
    letter-spacing: 0;
}

.blog-article-page article h2,
.blog-article-page .prose h2 {
    margin-top: 2.6rem;
    margin-bottom: 0.8rem;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 700;
    line-height: 1.16;
}

.blog-article-page article h3,
.blog-article-page .prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    font-size: clamp(1.18rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.blog-article-page article p,
.blog-article-page .prose p {
    margin-top: 0.85rem;
    color: #334155;
}

.blog-article-page article ul,
.blog-article-page article ol,
.blog-article-page .prose ul,
.blog-article-page .prose ol {
    margin: 1rem 0 1.35rem;
    padding-left: 1.3rem;
    color: #334155;
}

.blog-article-page article ul,
.blog-article-page .prose ul {
    list-style: disc;
}

.blog-article-page article ol,
.blog-article-page .prose ol {
    list-style: decimal;
}

.blog-article-page article li,
.blog-article-page .prose li {
    margin-top: 0.45rem;
    padding-left: 0.2rem;
}

.blog-article-page article strong,
.blog-article-page .prose strong {
    color: #0f172a;
    font-weight: 800;
}

.blog-article-page article a:not([class]),
.blog-article-page .prose a:not([class]) {
    color: #0e7490;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.blog-article-page article > p:first-child[class*="border-l"],
.blog-article-page .prose > p:first-child[class*="border-l"] {
    margin-top: 0;
    border-radius: 0 1rem 1rem 0;
    background: #f8fafc;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    padding-right: 1.2rem;
}

.blog-article-page .text-gradient {
    background: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.blog-article-page .prose [class*="bg-gradient-to-r"],
.blog-article-page article [class*="bg-gradient-to-r"],
.blog-article-page .prose [class*="bg-gradient-to-br"],
.blog-article-page article [class*="bg-gradient-to-br"] {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #ffffff !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.045) !important;
}

.blog-article-page main > div > div[class*="bg-gradient-to-"][class*="text-center"],
.blog-article-page main > section > div > div[class*="bg-gradient-to-"][class*="text-center"],
.blog-article-page main .container > div[class*="bg-gradient-to-"][class*="text-center"],
.blog-article-page main div[class*="bg-gradient-to-"][class*="text-center"][class*="text-white"] {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-align: left !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055) !important;
}

.blog-article-page main > div > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main > section > div > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main .container > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main div[class*="bg-gradient-to-"][class*="text-center"][class*="text-white"] h3,
.blog-article-page main > div > div[class*="bg-gradient-to-"][class*="text-center"] p,
.blog-article-page main > section > div > div[class*="bg-gradient-to-"][class*="text-center"] p,
.blog-article-page main .container > div[class*="bg-gradient-to-"][class*="text-center"] p,
.blog-article-page main div[class*="bg-gradient-to-"][class*="text-center"][class*="text-white"] p {
    color: #334155 !important;
}

.blog-article-page main > div > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main > section > div > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main .container > div[class*="bg-gradient-to-"][class*="text-center"] h3,
.blog-article-page main div[class*="bg-gradient-to-"][class*="text-center"][class*="text-white"] h3 {
    color: #0f172a !important;
}

.blog-article-page main > div > div[class*="bg-gradient-to-"][class*="text-center"] a,
.blog-article-page main > section > div > div[class*="bg-gradient-to-"][class*="text-center"] a,
.blog-article-page main .container > div[class*="bg-gradient-to-"][class*="text-center"] a,
.blog-article-page main div[class*="bg-gradient-to-"][class*="text-center"][class*="text-white"] a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #0f172a !important;
    border-radius: 0.95rem !important;
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
    transform: none !important;
}

.blog-article-page .prose div[class*="-50"],
.blog-article-page article div[class*="-50"] {
    background: #ffffff !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.blog-article-page .info-box,
.blog-article-page .warning-box,
.blog-article-page .success-box,
.blog-article-page .danger-box {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-left: 4px solid #94a3b8 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.blog-article-page .info-box h4,
.blog-article-page .warning-box h4,
.blog-article-page .success-box h4,
.blog-article-page .danger-box h4 {
    color: #0f172a !important;
}

.blog-article-page .prose div[class*="shadow-"],
.blog-article-page article div[class*="shadow-"],
.blog-article-page .prose a[class*="shadow-"],
.blog-article-page article a[class*="shadow-"] {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.blog-article-page .prose table tr[class*="bg-"][class*="text-white"],
.blog-article-page article table tr[class*="bg-"][class*="text-white"] {
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc !important;
    color: #0f172a !important;
}

.blog-article-page .prose table tr[class*="bg-"][class*="text-white"] th,
.blog-article-page article table tr[class*="bg-"][class*="text-white"] th {
    color: #0f172a !important;
}

.blog-empty-state {
    display: none;
    padding: 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 1rem;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.blog-empty-state.is-visible {
    display: block;
}

.blog-cta-band {
    padding: 4.75rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.blog-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.25rem;
    background: #f8fafc;
}

.blog-cta-inner h2 {
    color: #0f172a;
    font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
}

.blog-cta-inner p {
    max-width: 42rem;
    margin-top: 0.7rem;
    color: #64748b;
    line-height: 1.7;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.78rem 1.15rem;
    border-radius: 0.95rem;
    background: #0f172a;
    color: #ffffff;
    font-weight: 750;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.blog-cta-button:hover {
    background: #1e293b;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

@media (max-width: 900px) {
    .blog-index-hero {
        padding-top: 7.5rem;
    }

    .blog-feature-card,
    .blog-cta-inner {
        grid-template-columns: 1fr;
    }

    .blog-feature-panel {
        min-height: 13rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-index-title {
        font-size: 2.7rem;
    }

    .blog-article-page .blog-post-cover {
        width: 100%;
        border-radius: 0.9rem;
    }

    .blog-article-page .blog-post-cover img {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta-inner,
    .blog-feature-body,
    .blog-feature-panel {
        padding: 1.35rem;
    }
}
