/* 
   Kibans v4.1 - Zen Strategy (Official Branding)
   Theme: Japanese Minimalist, Corporate.
   Font: Josefin Sans (300/400/600).
   Colors: #dca64b (Gold), #3e3e3e (Grey), #0f172a (Navy).
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

:root {
    /* Official Palette */
    --gold-main: #dca64b;
    --gold-light: #e8bc6f;
    --gold-dark: #c4923e;
    --grey-main: #3e3e3e;
    --grey-light: #6b6b6b;
    --grey-muted: #9b9b9b;
    /* Text & Accents */
    --navy-main: #0f172a;
    --navy-light: #1e293b;

    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FC;
    --bg-chat: #F5F5F7;
    --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8F9FC 50%, #F0F4F8 100%);
    --bg-hero-gradient: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);

    /* Layout */
    --container-width: 1100px;
    --section-padding: 140px 0;

    /* UI Elements */
    --radius-soft: 20px;
    --radius-card: 24px;
    --shadow-float: 0 20px 60px rgba(15, 23, 42, 0.05);
    --shadow-premium: 0 4px 6px rgba(15, 23, 42, 0.02),
        0 12px 24px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.06);
    --shadow-gold: 0 10px 40px rgba(220, 166, 75, 0.15);
    --shadow-hover: 0 20px 60px rgba(15, 23, 42, 0.08);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* z-index scale */
    --z-nav: 1000;
    --z-dropdown: 500;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-consent: 4000;
}

/* Base */
body {
    background-color: var(--bg-main);
    color: var(--grey-main);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-size: 16px;
}

/* Enforce Josefin Sans everywhere — no browser fallbacks */
*, *::before, *::after {
    font-family: inherit;
}

input, button, select, textarea {
    font-family: 'Josefin Sans', sans-serif;
}

h1,
h2,
h3 {
    font-weight: 400;
    color: var(--grey-main);
    margin-bottom: 30px;
}

h1 {
    font-size: 4.2rem;
    letter-spacing: -1.5px;
    line-height: 1.05;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    color: var(--grey-main);
    margin-bottom: 30px;
    font-weight: 400;
    text-wrap: pretty;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-img {
    height: 55px !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain;
    display: block;
}

footer .logo-img, .footer-brand .logo-img {
    height: 60px !important;
    max-height: 60px !important;
    max-width: 250px !important;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Utilities */
.text-gold {
    color: var(--gold-main);
}

.text-navy {
    color: var(--navy-main);
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand Icon: Kibans Premium */
.nodo-smile {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.nodo-smile.small {
    width: 40px;
    height: 40px;
    margin: 0 0 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    line-height: 1;
    height: 42px;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-main);
    color: #fff;
    box-shadow: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 166, 75, 0.28);
}

.btn:active {
    transform: scale(0.97) !important;
    transition-duration: 0.08s !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--grey-main);
    color: var(--grey-main);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--grey-main);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62, 62, 62, 0.18);
}

/* Header */
.header {
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 166, 75, 0.1);
    transition: all 0.3s ease;
}

.nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--navy-main);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    color: var(--navy-main);
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--gold-main);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    font-size: 1rem;
    color: var(--navy-main);
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--gold-main);
}

.nav-dropdown-toggle i {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
    border: 1px solid rgba(15,23,42,0.07);
    padding: 8px;
    min-width: 190px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 0.88rem !important;
    color: var(--navy-main) !important;
    font-weight: 400;
    transition: background 0.18s, color 0.18s;
    margin-bottom: 2px;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--gold-main) !important;
}

.nav-dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--gold-main);
    font-size: 0.85rem;
}

/* Mobile: dropdown inline */
@media (max-width: 991px) {
    .nav-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .nav-dropdown-toggle {
        width: 100%;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(15,23,42,0.04);
        font-size: 0.95rem;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        border-radius: 8px;
        padding: 4px 8px;
        margin: 4px 0 8px 8px;
        min-width: unset;
        width: calc(100% - 8px);
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown.open .nav-dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 2px;
    margin-left: 20px;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
    padding-left: 20px;
    align-items: center;
}

.lang-switch a {
    font-size: 0.85rem;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--grey-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    color: var(--gold-main);
}

.lang-switch a.active {
    background: transparent;
    color: var(--gold-main);
    font-weight: 700;
}

/* Hero */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Chat Component */
.chat-window {
    background: #FFF;
    border-radius: 24px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
    border: 1px solid #EAEAEA;
    max-width: 450px;
    margin: 0 auto;
}

.chat-header {
    background: #FAFAFA;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #EEE;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-main);
}

.avatar-info h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-main);
}

.avatar-info span {
    font-size: 0.8rem;
    color: #4CAF50;
    display: block;
}

.chat-body {
    height: 400px;
    padding: 20px;
    background: #FFF;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.msg-tess {
    background: #F2F2F2;
    color: var(--grey-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-user {
    background: var(--gold-main);
    color: #FFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator styling remains same, just ensuring colors match if needed */
.typing-indicator {
    padding: 10px;
    background: #F2F2F2;
    align-self: flex-start;
    border-radius: 20px;
    display: none;
}

.typing-dot {
    height: 6px;
    width: 6px;
    background: #BBB;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Cards */
.zen-card {
    padding: 50px;
    text-align: center;
    background: #FFF;
    border: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.zen-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-8px);
    border-left-color: var(--gold-main);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFDFB 100%);
}

.zen-icon {
    height: 120px;
    margin: 0 auto 30px auto;
    object-fit: contain;
}

/* Proceso Grid Refined v4.2 */
.proceso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.proceso-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03), 0 6px 24px rgba(15, 23, 42, 0.05);
}

.proceso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(220, 166, 75, 0.35);
}

.proceso-number {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-main);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.7;
}

.proceso-icon {
    font-size: 2rem;
    color: var(--gold-main);
    margin-bottom: 22px;
    transition: 0.3s;
}

.proceso-card:hover .proceso-icon {
    transform: scale(1.1);
}

.proceso-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 14px;
    line-height: 1.3;
}

.proceso-card p {
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--grey-main);
    margin: 0;
}

/* Material Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.blog-card {
    background: transparent;
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 220px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.blog-img img {
    max-height: 190px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.blog-content {
    padding: 30px;
}

.blog-cat {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold-main);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

/* Footer */
footer {
    padding: 80px 0 40px 0;
    margin-top: 100px;
    background-color: var(--navy-main);
    color: #FFFFFF;
}

footer.compact {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 1);
    line-height: 1.8;
    margin-top: 20px;
}

.footer-col h5 {
    color: var(--gold-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--gold-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 0;
}

.footer-bottom a {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--gold-main);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--gold-main);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .header {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 16px;
        gap: 0;
        box-shadow: 0 12px 32px rgba(15,23,42,0.10);
        border-top: 1px solid rgba(15,23,42,0.06);
        border-radius: 0 0 16px 16px;
        z-index: 1050;
        /* hidden state */
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
        /* override fixed/height */
        height: auto;
        width: 100%;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        right: 0;
    }

    .nav-links a {
        font-size: 0.95rem;
        width: 100%;
        text-align: left;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(15,23,42,0.04);
    }

    .nav-links a:last-of-type {
        border-bottom: none;
    }

    .nav-links .nav-btn-group {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links .nav-btn-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 10px;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 10px;
        padding-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 85%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-brand .footer-social {
        justify-content: center;
    }

    .phi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .phi-content {
        order: 1;
    }

    .phi-grid .text-center {
        order: 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    h1 {
        font-size: 2.2rem;
    }
}

/* ========== TESS LANDING PAGE STYLES ========== */

/* Hero Tess */
.tess-hero {
    min-height: 100vh;
    background: var(--bg-hero-gradient);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.tess-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Badge de producto */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.1) 0%, rgba(220, 166, 75, 0.05) 100%);
    border: 1px solid var(--gold-main);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-bottom: 30px;
}

.product-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--gold-main);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Feature Grid para Tess */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: #FFF;
    padding: 40px;
    border-radius: var(--radius-card);
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light));
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.1) 0%, rgba(220, 166, 75, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--grey-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold-main);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--grey-main);
    font-weight: 400;
}

/* Before/After Section */
.comparison-section {
    background: var(--bg-secondary);
    padding: 80px 0 60px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.comparison-card {
    background: #FFF;
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-premium);
}

.comparison-card.before {
    border-left: 4px solid var(--grey-main);
}

.comparison-card.after {
    border-left: 4px solid var(--gold-main);
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--gold-main);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy-main) 0%, var(--navy-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--navy-main);
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--grey-main);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* AI SCANNER SECTION - PREMIUM OVERHAUL */
.scanner-section {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
    color: #FFF;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(220, 166, 75, 0.1);
    border-bottom: 1px solid rgba(220, 166, 75, 0.1);
}

.scanner-section h2 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scanner-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 166, 75, 0.2);
    border-radius: 30px;
    padding: 50px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.scanner-form {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

/* Custom Select Styling */
.scanner-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 15px 45px 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(220, 166, 75, 0.3);
    background-color: rgba(15, 23, 42, 0.9);
    color: #FFF;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    min-width: 250px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23dca64b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 14px auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scanner-select:hover {
    border-color: var(--gold-main);
    box-shadow: 0 0 20px rgba(220, 166, 75, 0.2);
    transform: translateY(-2px);
}

.scanner-select:focus {
    outline: none;
    border-color: var(--gold-light);
    background-color: #0f172a;
}

.scan-results {
    margin-top: 40px;
    opacity: 0;
    transition: all 0.6s ease;
}

.scan-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Compact gap */
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.scan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 166, 75, 0.15);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.scan-card:hover {
    border-color: rgba(220, 166, 75, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.card-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(220, 166, 75, 0.02);
}

.card-header h5 {
    margin: 0;
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scan-icon {
    font-size: 1.2rem;
    color: var(--gold-main);
    margin-bottom: 0;
    width: 30px;
    text-align: center;
}

.scan-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.scan-card .card-body p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
}

.toggle-icon {
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.3s ease;
}

.scan-card.active .toggle-icon {
    transform: rotate(180deg);
}

.scan-card.active .card-header i {
    transform: rotate(180deg);
}

/* CHAT CARD V2 */
.chat-card-v2 {
    background: #FFF;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #EEE;
    color: var(--navy-main);
    font-size: 0.9rem;
}

.card-v2-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-v2-item:last-child {
    margin-bottom: 0;
}

.card-v2-item i {
    color: var(--gold-main);
    width: 16px;
    text-align: center;
}

.card-v2-label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CHAT ACTIONS & BUTTONS */
.chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gold-main);
    background: transparent;
    color: var(--gold-main);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.chat-btn:hover {
    background: var(--gold-main);
    color: #FFF;
}

.chat-btn.primary {
    background: var(--gold-main);
    color: #FFF;
}

/* ANIMATIONS */
@keyframes flyAway {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(150px, -150px) scale(0) rotate(15deg);
        opacity: 0;
    }
}

.fly-away {
    animation: flyAway 0.8s forwards ease-in;
}

.card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.95rem;
    color: #555;
    padding-left: 45px;
    /* Align with text */
}

.scan-card.active .card-body {
    max-height: 200px;
    /* Enough for description */
    opacity: 1;
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pulse-btn {
    animation: pulse-gold 2s infinite;
    padding: 12px 30px;
    border-radius: 50px;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 165, 114, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 165, 114, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 165, 114, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .comparison-arrow {
        transform: rotate(90deg);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}
/* PILARES SECTION */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background: #FFF;
    padding: 40px;
    border-radius: var(--radius-card);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #EEE;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--gold-main);
    margin-bottom: 20px;
}

.pillar-card h3 {
    color: var(--navy-main);
    margin-bottom: 15px;
}

/* Philosophy Section Redesign */
.philosophy-section {
    padding: 120px 0;
    background-color: var(--navy-main);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.philosophy-section h2 {
    color: #FFFFFF;
    margin-bottom: 60px;
}

.phi-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.phi-card-new {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 166, 75, 0.2);
    padding: 40px;
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.phi-card-new:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-main);
    transform: translateY(-5px);
}

.phi-card-new h4 {
    color: var(--gold-main);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.phi-card-new p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.phi-cta-box {
    grid-column: span 2;
    margin-top: 40px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.1) 0%, transparent 100%);
    border-radius: var(--radius-card);
    text-align: center;
    border: 1px dashed rgba(220, 166, 75, 0.3);
}

@media (max-width: 768px) {
    .phi-grid-new {
        grid-template-columns: 1fr;
    }
    .phi-cta-box {
        grid-column: span 1;
        padding: 40px 20px;
    }
}

/* FINAL ZEN POLISH v5 */
.header .logo-img {
    height: 48px !important;
    width: auto !important;
    min-height: 48px !important;
    max-width: 180px !important;
}

/* proceso-grid: 2 cols on desktop (intentional — 6 steps fit 3 rows × 2) */
.proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ─── HIRING SECTION ─── */
.hiring-section {
    padding: 120px 0;
    background: var(--bg-hero-gradient);
    margin-top: 150px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.hiring-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFF;
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.hiring-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light));
}

.hiring-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.hiring-form .full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFBFF;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--gold-main);
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(220, 166, 75, 0.1);
}

/* File Upload Look */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(15, 23, 42, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--gold-main);
    background: rgba(220, 166, 75, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-wrapper i {
    font-size: 1.5rem;
    color: var(--gold-main);
    margin-bottom: 10px;
}

.file-upload-wrapper span {
    display: block;
    font-size: 0.9rem;
    color: var(--grey-light);
}

@media (max-width: 600px) {
    .hiring-form {
        grid-template-columns: 1fr;
    }
    .hiring-form .full-width {
        grid-column: span 1;
    }
    .hiring-container {
        padding: 40px 20px;
    }
}

/* ========== PRICING SECTION ========== */

.pricing-section {
    padding: var(--section-padding);
    background: var(--bg-main);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pricing-card {
    background: #FFF;
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    border-color: rgba(220, 166, 75, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--gold-main);
    box-shadow: 0 20px 40px rgba(220, 166, 75, 0.1);
}

.pricing-card.featured::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-main);
    color: #FFF;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--navy-main);
    margin: 30px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--grey-light);
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
}

.pricing-features li {
    font-size: 1rem;
    color: var(--grey-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--gold-main);
    font-size: 0.9rem;
}

.pricing-card .btn {
    width: 100%;
    padding: 24px;
    height: auto;
    font-size: 1rem;
}


/* ==========================================================================
   Consent Banner — Kibans Zen Strategy
   ========================================================================== */
.kibans-consent-banner {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy-main, #0f172a);
    border-top: 1.5px solid rgba(220, 166, 75, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 48px;
    font-family: 'Josefin Sans', sans-serif;
    transition: bottom 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.kibans-consent-banner.show {
    bottom: 0;
}

.kibans-consent-banner p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 300;
}

.kibans-consent-banner strong {
    color: #dca64b;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline;
    margin-right: 8px;
}

.kibans-consent-btn {
    background: transparent;
    color: #dca64b;
    border: 1px solid rgba(220, 166, 75, 0.5);
    padding: 7px 22px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Josefin Sans', sans-serif;
    transition: all 0.2s ease;
}

.kibans-consent-btn:hover {
    background: #dca64b;
    color: #0f172a;
    border-color: #dca64b;
}

@media (max-width: 600px) {
    .kibans-consent-banner {
        padding: 12px 20px;
        gap: 12px;
    }
}

/* ─── NAV DROPDOWN ─────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

/* Trigger pill */
.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(220,166,75,0.3);
    color: var(--navy-main) !important;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.nav-dropdown > a:hover {
    background: rgba(220,166,75,0.08);
    border-color: var(--gold-main);
    color: var(--gold-main) !important;
}
.nav-dropdown > a .dd-chevron {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    margin-left: 2px;
}
.nav-dropdown:hover > a .dd-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    padding: 10px;
    min-width: 240px;
    box-shadow: 0 16px 48px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
    z-index: 500;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

/* Small arrow notch */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(15,23,42,0.08);
    border-top: 1px solid rgba(15,23,42,0.08);
    rotate: 45deg;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--navy-main);
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: rgba(220,166,75,0.08);
    color: var(--gold-main);
}

/* Icon wrapper */
.dd-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg,rgba(220,166,75,0.15),rgba(220,166,75,0.06));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--gold-main);
}

.dd-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dd-item-text span {
    display: block;
}
.dd-item-label {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--navy-main);
}
.dd-item-sub {
    font-size: 0.73rem;
    color: var(--grey-muted);
    font-weight: 400;
}

.nav-dropdown-menu .dd-divider {
    border-top: 1px solid rgba(15,23,42,0.06);
    margin: 6px 4px;
}
.nav-dropdown-menu .dd-coming {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}
.nav-dropdown-menu .dd-coming:hover {
    background: transparent;
    color: var(--navy-main);
}


/* ============================================================
   MINIMALIST EDITORIAL SYSTEM — v5 Zen
   Nuevas clases de diseño para en/index.html
   ============================================================ */

/* Skip link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    background: var(--navy-main);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: top 0.2s ease;
    border: 1px solid var(--gold-main);
}
.skip-link:focus { top: 16px; }

/* ── Hero Editorial ── */
.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.6rem;
    letter-spacing: -2px;
    line-height: 1.04;
    margin-bottom: 0;
}

.hero-rule {
    width: 36px;
    height: 2px;
    background: var(--gold-main);
    margin: 32px 0;
    border: none;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--grey-light);
    max-width: 54ch;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    font-size: 0.8rem;
    color: var(--grey-muted);
    letter-spacing: 0.3px;
    flex-wrap: wrap;
}

.hero-stats strong {
    color: var(--navy-main);
    font-weight: 700;
}

.hero-stat-sep {
    color: var(--gold-main);
    font-size: 0.7rem;
}

/* ── Profile Grid (Audience section) ── */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.profile-card {
    padding: 40px 34px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: background 0.2s ease;
}

.profile-card:last-child {
    border-right: none;
}

.profile-card:hover {
    background: rgba(220, 166, 75, 0.025);
}

.profile-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-main);
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.profile-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 14px;
    line-height: 1.45;
}

.profile-card p {
    font-size: 0.9rem;
    color: var(--grey-main);
    line-height: 1.75;
    margin-bottom: 28px;
    flex: 1;
    max-width: none;
    text-wrap: pretty;
}

.profile-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: var(--navy-main);
}

.profile-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.profile-link:hover .profile-arrow {
    transform: translateX(4px);
}

/* ── Process List ── */
.process-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.process-item {
    padding: 40px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.process-item:nth-child(odd) {
    padding-right: 64px;
}

.process-item:nth-child(even) {
    padding-left: 64px;
    border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.process-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-main);
    letter-spacing: 2.5px;
    flex-shrink: 0;
    padding-top: 5px;
    text-transform: uppercase;
}

.process-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 10px;
}

.process-body p {
    font-size: 0.88rem;
    color: var(--grey-light);
    line-height: 1.7;
    margin: 0;
    max-width: 38ch;
}

/* ── Service Featured Block ── */
.service-featured {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    padding: 52px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.service-featured-left h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 14px;
}

.service-featured-left p {
    font-size: 0.97rem;
    color: var(--grey-main);
    line-height: 1.8;
    max-width: 50ch;
    margin: 0;
}

.service-featured-stats {
    display: flex;
    gap: 52px;
    flex-shrink: 0;
}

.service-stat {
    text-align: center;
}

.service-stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.service-stat-num small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--grey-muted);
    letter-spacing: 0;
}

.service-stat-label {
    font-size: 0.65rem;
    color: var(--grey-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

/* ── Service List ── */
.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-item {
    padding: 36px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item:nth-child(odd) {
    padding-right: 64px;
}

.service-item:nth-child(even) {
    padding-left: 64px;
    border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.service-item-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-main);
    display: block;
}

.service-item p {
    font-size: 0.88rem;
    color: var(--grey-light);
    line-height: 1.7;
    margin: 0;
    max-width: 40ch;
}

/* ── Tess Stats Row ── */
.tess-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--grey-muted);
    flex-wrap: wrap;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Toast Notification ── */
.kibans-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--navy-main);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    z-index: var(--z-toast);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid var(--gold-main);
    max-width: 380px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}
.kibans-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.kibans-toast.toast-error  { border-left-color: #ef4444; }
.kibans-toast.toast-success { border-left-color: #22c55e; }

/* ── Responsive: Minimalist System ── */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 3.2rem; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-card {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
    .profile-card:last-child { border-bottom: none; }
    .process-list { grid-template-columns: 1fr; }
    .process-item:nth-child(odd),
    .process-item:nth-child(even) {
        padding: 28px 0;
        border-left: none;
    }
    .service-featured {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-featured-stats {
        justify-content: flex-start;
        gap: 40px;
    }
    .service-list { grid-template-columns: 1fr; }
    .service-item:nth-child(odd),
    .service-item:nth-child(even) {
        padding: 28px 0;
        border-left: none;
    }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.6rem; letter-spacing: -1px; }
    .service-featured-stats { gap: 28px; }
}

/* =====================================================
   KIBANS TYPOGRAPHY SYSTEM — Brand Standard
   =====================================================
   Todos los títulos de sección siguen el mismo tratamiento:
   - Línea 1 (kb-h-top):  TODO EN MAYÚSCULAS · peso 300 · navy · más pequeña
   - Línea 2 (kb-h-bot):  todo en minúsculas · peso 300 · gold · más grande · sin puntuación
   Todo el texto corrido (p, li, blockquote) usa peso 300.
   ===================================================== */

/* Línea 1: mayúscula · delgada · navy */
.kb-h-top {
    display: block;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--navy-main);
    letter-spacing: 2.5px;
    font-size: 1.35rem;
    line-height: 1.4;
    font-family: 'Josefin Sans', sans-serif;
}

/* Línea 1 sobre fondo oscuro: blanco */
.kb-h-top--white {
    display: block;
    text-transform: uppercase;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2.5px;
    font-size: 1.35rem;
    line-height: 1.4;
    font-family: 'Josefin Sans', sans-serif;
}

/* Línea 2: minúscula · delgada · gold */
.kb-h-bot {
    display: block;
    font-weight: 300;
    color: var(--gold-main);
    font-size: 3rem;
    text-transform: lowercase;
    line-height: 1.15;
    font-family: 'Josefin Sans', sans-serif;
}

/* Texto corrido: siempre delgado */
p, li, blockquote, .blog-content p, .faq-answer {
    font-weight: 300;
}

/* ── ¿En qué punto estás? + Video Integration (Diseño Vertical Alineado) ── */
.autom-block-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
}

.autom-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium, 0 20px 40px rgba(15, 23, 42, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    background: #000;
    margin-bottom: 40px;
}

.autom-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.autom-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.autom-grid-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.autom-grid-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.15), rgba(220, 166, 75, 0.05));
    border: 1px solid rgba(220, 166, 75, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.autom-grid-card-icon i {
    font-size: 1.25rem;
    color: var(--gold-main);
    transition: transform 0.3s ease;
}

.autom-grid-card-title {
    font-size: 0.88rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-main);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Josefin Sans', sans-serif;
    transition: color 0.3s ease;
}

.autom-grid-card-desc {
    font-size: 0.88rem;
    color: var(--grey-main);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
    flex-grow: 1;
}

.autom-grid-card-action {
    font-size: 0.82rem;
    color: var(--gold-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.autom-grid-card-action i {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.autom-grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 166, 75, 0.4);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    background: linear-gradient(to bottom right, #ffffff, rgba(220, 166, 75, 0.02));
}

.autom-grid-card:hover .autom-grid-card-icon {
    background: linear-gradient(135deg, rgba(220, 166, 75, 0.25), rgba(220, 166, 75, 0.1));
    transform: scale(1.05);
    border-color: rgba(220, 166, 75, 0.5);
}

.autom-grid-card:hover .autom-grid-card-icon i {
    transform: rotate(10deg);
}

.autom-grid-card:hover .autom-grid-card-title {
    color: var(--gold-main);
}

.autom-grid-card:hover .autom-grid-card-action i {
    transform: translateX(5px);
}

/* Active/Hover dimming for sibling cards (Dynamic micro-interaction) */
.autom-cards-grid:hover .autom-grid-card:not(:hover) {
    opacity: 0.6;
    transform: scale(0.98);
}

@media (max-width: 991px) {
    .autom-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Minimalist Line-based Form Inputs */
.line-input, .line-textarea {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 0 !important;
    padding: 16px 0 12px 0 !important;
    margin-top: 6px !important;
    margin-bottom: 36px !important;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--navy-main);
    outline: none;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.line-input:focus, .line-textarea:focus {
    border-bottom-color: var(--gold-main) !important;
    padding-left: 4px !important;
}

.line-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Style label */
.line-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-main);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ─── INTERACTIVE AGENTS SECTION ─── */
.agents-interactive-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 950px;
    margin: 0 auto 50px auto;
}

.agents-selector {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding-right: 30px;
    border-right: 1px solid rgba(220, 166, 75, 0.15);
}

.agent-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.agent-circle-trigger {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-circle-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.agent-circle-trigger.custom-empty {
    background: #fdfcfa;
    border: 2px dashed rgba(220, 166, 75, 0.5);
    color: var(--gold-main);
    font-size: 1.5rem;
}

.agent-circle-label {
    margin-top: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--grey-main);
    transition: all 0.3s ease;
    text-align: center;
}

/* Hover and active states */
.agent-circle-wrapper:hover .agent-circle-trigger {
    transform: translateY(-4px);
    border-color: rgba(220, 166, 75, 0.5);
    box-shadow: 0 8px 24px rgba(220, 166, 75, 0.15);
}

.agent-circle-wrapper:hover .agent-circle-trigger.custom-empty {
    border-color: var(--gold-main);
    background: rgba(220, 166, 75, 0.04);
}

.agent-circle-wrapper:hover .agent-circle-label {
    color: var(--gold-main);
}

.agent-circle-wrapper.active .agent-circle-trigger {
    border-color: var(--gold-main);
    box-shadow: 0 0 0 4px rgba(220, 166, 75, 0.15), 0 8px 25px rgba(220, 166, 75, 0.25);
    transform: scale(1.05);
}

.agent-circle-wrapper.active .agent-circle-trigger.custom-empty {
    border-color: var(--gold-main);
    background: rgba(220, 166, 75, 0.08);
}

.agent-circle-wrapper.active .agent-circle-label {
    color: var(--gold-main);
    font-weight: 700;
}

/* Chat Bubble */
.agent-chat-bubble {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(220, 166, 75, 0.2);
    border-radius: 24px;
    padding: 45px;
    box-shadow: var(--shadow-premium, 0 20px 40px rgba(15, 23, 42, 0.06));
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Arrow pointing left */
.agent-chat-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 60px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-left: 1px solid rgba(220, 166, 75, 0.2);
    border-bottom: 1px solid rgba(220, 166, 75, 0.2);
    transform: rotate(45deg);
    border-radius: 0 0 0 4px;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow positions based on active agent class on bubble container */
.agent-chat-bubble.bubble-arrow-tess::before {
    top: 60px;
}
.agent-chat-bubble.bubble-arrow-nico::before {
    top: 184px;
}
.agent-chat-bubble.bubble-arrow-custom::before {
    top: 308px;
}

/* Bubble pop animation */
@keyframes bubblePop {
    0% {
        transform: scale(0.97);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.agent-chat-bubble.bubble-pop {
    animation: bubblePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.agent-content {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.agent-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .agents-interactive-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 30px;
    }
    .agents-selector {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(220, 166, 75, 0.12);
        padding-right: 0;
        padding-bottom: 20px;
        gap: 24px;
    }
    .agent-circle-wrapper {
        width: auto;
    }
    .agent-circle-trigger {
        width: 76px;
        height: 76px;
    }
    .agent-chat-bubble {
        padding: 30px 24px;
        min-height: auto;
    }
    .agent-chat-bubble::before {
        left: 50%;
        top: -12px !important;
        transform: translateX(-50%) rotate(45deg);
        border-left: 1px solid rgba(220, 166, 75, 0.2);
        border-top: 1px solid rgba(220, 166, 75, 0.2);
        border-bottom: none;
        border-right: none;
    }
    .agent-chat-bubble.bubble-arrow-tess::before {
        left: calc(50% - 100px);
    }
    .agent-chat-bubble.bubble-arrow-nico::before {
        left: 50%;
    }
    .agent-chat-bubble.bubble-arrow-custom::before {
        left: calc(50% + 100px);
    }
}

/* ─── GLOBAL RESPONSIVE ADJUSTMENTS & FIXES ─── */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Centralized Responsive Contact Grid */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Centralized Responsive Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.metric-item {
    padding: 0 40px;
    border-right: 1px solid rgba(15,23,42,0.08);
}

.metric-item:first-child {
    padding-left: 0;
}

.metric-item:last-child {
    padding-right: 0;
    border-right: none;
}

.metric-line {
    width: 28px;
    height: 2px;
    background: var(--gold-main);
    margin-bottom: 16px;
}

.metric-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-main);
    line-height: 1;
    letter-spacing: -1px;
}

.metric-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--grey-muted);
    letter-spacing: 0;
}

.metric-lbl {
    font-size: 0.65rem;
    color: var(--grey-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        padding: 0 10px;
    }
    
    .metric-item {
        padding: 0 15px !important;
        border-right: none !important;
    }
    
    .metric-item:nth-child(odd) {
        border-right: 1px solid rgba(15,23,42,0.08) !important;
    }
    
    .metric-line {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    .metric-val {
        font-size: 1.7rem;
    }
    .metric-lbl {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}



