#pricing {
    padding-top: 0 !important;
    margin-top: -2px;
    /* Close any possible sub-pixel gap */
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #010103;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide WordPress Theme Header/Footer to ensure TAL CUAL design */
header,
footer:not(.site-footer-premium),
.site-header,
.site-footer,
#masthead,
#colophon {
    display: none !important;
}

#kari-landing {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
}

/* Global Background - Official Version */
.bg-tech-main {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../img/hero-bg-official.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Specific Hero Box Container */
.hero-glass-box {
    border: none;
    padding: 30px;
    position: relative;
    max-width: 900px;
    width: 100%;
    margin-right: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(2px);
}

@media (min-width: 1024px) {
    .hero-glass-box {
        padding: 60px;
        margin-right: -100px;
        /* To let logo overlap */
    }
}


/* Typography - Fluid approach - Re-balanced */
h1,
.title-main {
    font-size: clamp(2rem, 10vw, 5rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    text-transform: uppercase;
    font-weight: 900;
}

h2,
.section-title {
    font-size: clamp(1.5rem, 8vw, 3.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.hero-description {
    max-width: 600px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* THE ULTIMATE METALLIC CARD REPLICA */
.metallic-card {
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05), transparent 50%),
        radial-gradient(circle at center, #1e293b, #020617);
    padding: 30px;
    position: relative;
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
    border: none;
    transition: transform 0.3s ease;
}

/* The thick metallic border effect */
.metallic-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 8px;
    /* Thickness of the frame */
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 20%, #1e293b 50%, #94a3b8 80%, #f8fafc 100%);
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Variation: Silver (Default) */
.frame-silver::before {
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 20%, #1e293b 50%, #94a3b8 80%, #f8fafc 100%);
}

.frame-silver .plan-name-bar {
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 45%, #1e293b 50%, #475569 55%, #ffffff 100%);
}

/* Variation: Bronze */
.frame-bronze::before {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 20%, #451a03 50%, #b45309 80%, #fbbf24 100%);
}

.frame-bronze .plan-name-bar {
    background: linear-gradient(180deg, #fcd34d 0%, #b45309 45%, #451a03 50%, #78350f 55%, #fcd34d 100%);
}

/* Variation: Gold */
.frame-gold::before {
    background: linear-gradient(135deg, #fefce8 0%, #eab308 20%, #422006 50%, #eab308 80%, #fefce8 100%);
}

.frame-gold .plan-name-bar {
    background: linear-gradient(180deg, #fef9c3 0%, #eab308 45%, #422006 50%, #713f12 55%, #fef9c3 100%);
}

/* Internal Inner-Shadow for depth */
.metallic-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: transparent;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 1);
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
    pointer-events: none;
    z-index: 1;
}

/* Light Glints */
.glint {
    position: absolute;
    width: 60px;
    height: 2px;
    background: white;
    box-shadow: 0 0 15px 2px white;
    filter: blur(2px);
    opacity: 0.6;
    z-index: 5;
    transform: rotate(-45deg);
}

.glint-top {
    top: 10px;
    right: 20px;
}

.glint-bottom {
    bottom: 10px;
    left: 20px;
}

/* Metallic Content Elements */
.price-display {
    font-size: 50px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 0.85;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -3px;
}

@media (min-width: 768px) {
    .price-display {
        font-size: 80px;
    }
}

.plan-name-bar {
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 45%, #1e293b 50%, #475569 55%, #ffffff 100%);
    color: #020617;
    padding: 15px 10px;
    font-weight: 950;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 -30px 20px;
    position: relative;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    border-top: 1px solid #ffffff;
    border-bottom: 3px solid #000000;
    z-index: 10;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .plan-name-bar {
        font-size: 26px;
    }
}

.plan-name-bar::after {
    content: "";
    position: absolute;
    top: 48%;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(2px);
    pointer-events: none;
    z-index: 11;
}

.plan-sub-bar {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    max-width: 250px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

/* Bronze/Elite Frame */
.frame-bronze {
    border: 1px solid rgba(180, 83, 9, 0.3);
    box-shadow:
        inset 0 0 20px rgba(180, 83, 9, 0.1),
        0 0 40px rgba(180, 83, 9, 0.1);
}

.frame-bronze::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, #d97706 0%, transparent 50%, #78350f 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Refined Section Separators - Ultra-Premium Minimalism */
.pricing-header-bar {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 60px auto 40px;
    padding: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: clamp(0.65rem, 3vw, 0.85rem);
    color: #fbbf24;
    letter-spacing: 0.2em;
    position: relative;
    display: block;
    word-break: break-word;
}

@media (min-width: 768px) {
    .pricing-header-bar {
        font-size: 13px;
        letter-spacing: 0.8em;
        padding: 15px 0;
    }
}

.pricing-header-bar::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #fbbf24;
    box-shadow: 0 0 15px #fbbf24;
}

.pricing-header-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.4);
    filter: blur(1px);
    opacity: 0.8;
}

/* The Embossed Metallic Button */
.btn-metallic {
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 45%, #64748b 55%, #1e293b 100%);
    color: #0f172a;
    font-weight: 900;
    padding: 15px 20px;
    border: 2px solid #f8fafc;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 16px;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-metallic:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-metallic:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.btn-metallic-gold {
    background: linear-gradient(180deg, #fde047 0%, #ca8a04 100%);
}

.btn-metallic-gold:hover {
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
}

/* Linear Navigation */
.nav-linear-item {
    font-weight: 400;
    /* Sleek and light */
    text-transform: uppercase;
    letter-spacing: 0.25em;
    /* Elegant spacing */
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-linear-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Nav Buttons */
.btn-nav-glass {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-nav-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-nav-metallic {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #94a3b8 100%);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-nav-metallic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Floating Bottom Informational Bar - Modern Dock Look */
.hero-floating-bar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 1000px;
    justify-content: space-around;
    z-index: 30;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
    .hero-floating-bar {
        padding: 20px 40px;
        gap: 40px;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        border-radius: 20px 20px 0 0;
    }
}

.hero-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-bottom-item i {
    color: #fbbf24;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.hero-bottom-item span {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

/* Social Icons Pure White */
.hero-socials-row {
    margin-top: 50px;
    display: flex;
    gap: 25px;
}

.hero-socials-row i {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-socials-row i:hover {
    transform: scale(1.2);
}

.title-main {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 60px);
    line-height: 1;
    font-weight: 400;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* Pricing Card Header Lighting */
.pricing-card-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.05), transparent);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li::before {
    content: "•";
    color: #818cf8;
    font-weight: bold;
}

/* Specialized Courses Section */
.courses-banner {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Gold Frame Refinement */
.frame-gold {
    border: 1px solid rgba(234, 179, 8, 0.4);
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}

.frame-gold::before {
    background: linear-gradient(135deg, #facc15 0%, #a16207 50%, #fde047 100%);
}

.frame-gold::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    pointer-events: none;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* AI Assistant & Robot Sections */
* Base Resets for Responsive Stability */ html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

#kari-landing {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

.robot-feature-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.robot-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.robot-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
}

.robot-card img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
    margin-bottom: 30px;
}

/* Ultra-Premium Footer Redesign */
.site-footer-premium {
    background: linear-gradient(to bottom, #010409, #000000);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Light streak separator on top of footer */
.site-footer-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-nav-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.footer-nav-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.footer-link-item {
    color: rgba(148, 163, 184, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-link-item:hover {
    color: #fff;
    transform: translateX(8px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.footer-bottom-bar {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* High-end Social Icons */
.social-glass-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.4s ease;
}

.social-glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.footer-glass-newsletter {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Blog specific tweaks */
#blog {
    padding-top: 0 !important;
}

article.metallic-card:hover h3 {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* --- RESPONSIVE PATCHES --- */
@media (max-width: 640px) {

    /* Prevent title clipping */
    .title-main {
        font-size: clamp(1.8rem, 12vw, 2.5rem) !important;
        letter-spacing: -0.03em !important;
    }

    .section-title {
        font-size: clamp(1.4rem, 10vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }

    /* Fix Hero Floating Bar (Dock) */
    .hero-floating-bar {
        padding: 5px 10px !important;
        gap: 5px !important;
        justify-content: center !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        width: calc(100% - 20px) !important;
        position: relative !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .hero-tab-item {
        padding: 6px 8px !important;
        flex: 1 1 auto;
        min-width: 60px;
        justify-content: center;
    }

    .hero-tab-item i {
        font-size: 14px;
    }

    .hero-tab-item span {
        font-size: 9px !important;
    }

    /* Fix specialized section clipping */
    .spec-title-large {
        font-size: clamp(2.5rem, 15vw, 4rem) !important;
    }

    /* Pricing header bar fix - CENTRADO Y TAMAÑO */
    .pricing-header-bar {
        font-size: 18px !important;
        /* Un poco más grande para que sea legible */
        letter-spacing: 0.2em !important;
        /* Espaciado ajustado para que no se salga */
        margin: 40px auto 20px !important;
        /* Centrado con auto */
        width: 100% !important;
        /* Ocupa todo el ancho para poder centrar */
        display: flex !important;
        justify-content: center !important;
        /* Forzar centrado de contenido */
        align-items: center !important;
        text-align: center !important;
    }

    .pricing-header-bar::after {
        width: 140px !important;
        /* Línea decorativa más equilibrada */
    }
}

/* Extra small screens fix */
@media (max-width: 380px) {
    .title-main {
        font-size: 1.6rem !important;
    }

    .hero-tab-item span {
        display: none;
        /* Icon only on very small screens to avoid mess */
    }

    .hero-tab-item {
        min-width: 35px;
    }
}