/* ==========================================================================
   Ikigai Growth & Consultoria - Premium Minimalist (Tokyo/Editorial)
   ========================================================================== */
:root {
    --bg-light: #fdfdfd;
    --bg-dark: #0a0a0a;
    --bg-alt: #f5f5f5;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #666666;
    --text-muted-dark: #999999;
    --border-light: rgba(0, 0, 0, 0.1);
    --border-dark: rgba(255, 255, 255, 0.15);
    
    /* Ikigai Brand Color */
    --accent: #652d90;
    --accent-hover: #4e2270;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1280px;
    --container-pad: 2rem;
    --section-pad: 8rem 0;
    
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --trans: 0.4s var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* ALL IMAGES BLACK AND WHITE */
img {
    filter: grayscale(100%);
    transition: filter 0.4s;
}
/* EXCEPTION FOR BRAND LOGO */
.nav-logo {
    filter: none;
    height: 83px; /* Slightly larger as requested */
    width: auto;
    display: block;
    transition: height 0.4s var(--ease);
}
.navbar.scrolled .nav-logo {
    height: 53px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.huge-text { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; margin-bottom: 1rem;}
.huge-text.accent { color: var(--accent); }

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}
.dark-section .section-label { color: #a178c1; }

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 900px;
    margin-bottom: 3rem;
}

.text-muted { color: var(--text-muted); }
.text-muted-dark { color: var(--text-muted-dark); }
.large-p { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mt-6 { margin-top: 6rem; }
.max-w-700 { max-width: 700px; }

a { color: inherit; text-decoration: none; transition: var(--trans); }

/* ==========================================================================
   Layout Utils
   ========================================================================== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-pad); }
section { padding: var(--section-pad); }
.dark-section { background-color: var(--bg-dark); color: var(--text-light); }
.highlight-bg { background-color: var(--bg-alt); }

.divider-top { border-top: 1px solid var(--border-light); }
.divider-bottom { border-bottom: 1px solid var(--border-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0; /* Boxy editorial feel */
    border: none;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-link {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.2rem;
    margin-top: 1.5rem;
}
.btn-link:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 2000;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--trans);
}
.navbar.scrolled {
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-link:hover { color: var(--accent); }

.nav-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    background: var(--text-dark);
    color: var(--bg-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-btn:hover { background: var(--accent); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #111111 !important;
    padding: 0.5rem;
}
.mobile-menu-btn svg {
    stroke: #111111 !important;
    width: 32px;
    height: 32px;
}
.navbar.scrolled .mobile-menu-btn { color: #111111; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-light);
    padding: 0;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
}
.slide.active {
    opacity: 1;
    visibility: visible;
}
/* Subtle scale effect on active slide */
.slide .hero-container {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 1s var(--ease) 0.3s, opacity 1s var(--ease) 0.3s;
}
.slide.active .hero-container {
    transform: translateY(0);
    opacity: 1;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-light);
    padding-top: 2.5rem;
    margin-top: 4rem;
    gap: 2rem;
}
.hero-primary-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 0; right: 0;
    z-index: 100;
}
.slider-dots {
    display: flex;
    gap: 1rem;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: var(--trans);
}
.dot.active {
    background: var(--text-dark);
    transform: scale(1.3);
}

/* ==========================================================================
   Propuesta de Valor
   ========================================================================== */
.valor { padding-top: 6rem; }
.valor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: end;
}
.valor-desc p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Clients Marquee
   ========================================================================== */
.clients { padding: 4rem 0; overflow: hidden; }
.client-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    max-width: 800px;
}
.marquee { display: flex; white-space: nowrap; overflow: hidden; width: 100%; }
.marquee-content { display: flex; animation: scroll 25s linear infinite; align-items: center;}
.client-logo {
    height: 50px;
    width: auto;
    margin: 0 4rem;
    opacity: 0.6;
}
.client-logo:hover { opacity: 1; filter: grayscale(0);}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Tech Stack Marquee / Chips
   ========================================================================== */
.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 1rem;
    background: #fff;
    color: var(--text-dark);
    transition: var(--trans);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.tech-chip img, .tech-chip svg { 
    height: 26px; 
    width: 26px; 
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--trans);
}
.tech-chip:hover img, .tech-chip:hover svg {
    filter: grayscale(0%);
    opacity: 1;
}
.tech-chip:hover { 
    border-color: var(--accent); 
    color: var(--accent); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
}
.tech-marquee-content { animation: scroll 50s linear infinite; }

/* ==========================================================================
   Metrics
   ========================================================================== */
.metric-text-focus { max-width: 1000px; }
.metric-text-focus h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1rem;
}
.metric-text-focus p {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--text-muted-dark);
}

/* ==========================================================================
   Servicios (Text Only)
   ========================================================================== */
.services-list {
    border-top: 1px solid var(--border-light);
}
.service-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--trans);
}
.service-row:hover {
    background-color: rgba(0,0,0,0.02);
}
.service-name h3 {
    font-size: 2rem;
}
.service-desc p {
    font-size: 1.25rem;
    max-width: 700px;
}

/* ==========================================================================
   Datalens Feature
   ========================================================================== */
.datalens-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.dl-logo { width: 250px; margin-bottom: 2rem; }
.dl-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Nosotros Blocks
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.about-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--text-dark);
}
.text-small { font-size: 0.95rem; color: var(--text-muted); }

/* ==========================================================================
   Eventos
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}
.event-card {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 3.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--trans);
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.event-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transform: translateY(-5px);
    border-color: var(--accent);
}
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}
.event-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted-dark);
    line-height: 1;
    transition: color 0.3s;
}
.event-card:hover .event-number { color: var(--accent); }
.event-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dark);
}
.event-text { flex-grow: 1; margin-bottom: 2rem; }
.event-text p { font-size: 1.05rem; line-height: 1.7; }
.event-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.2rem;
    align-self: flex-start;
}
.event-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   Equipo & Partners
   ========================================================================== */
.team-list-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.team-member-compact {
    background: var(--bg-alt);
    padding: 3rem;
    border: 1px solid var(--border-light);
}
.team-member-compact h3 { 
    font-size: 1.8rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid var(--text-dark); 
}
.team-member-compact p { 
    font-size: 1.05rem; 
    line-height: 1.7; 
    color: var(--text-muted); 
}

.partners-logos { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2rem;}
.partner-img { height: 45px; width: auto; opacity: 0.5; transition: opacity 0.3s;}
.partner-img:hover { opacity: 1; filter: grayscale(0);}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}
.clean-form .form-row { margin-bottom: 2rem; }
.clean-form input, .clean-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 0;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--trans);
    resize: none;
}
.clean-form input:focus, .clean-form textarea:focus { border-bottom-color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-dark);
    font-size: 1rem;
    color: var(--text-muted-dark);
}
.footer-bottom a:hover { color: var(--text-light); }

/* ==========================================================================
   Chat Widget
   ========================================================================== */
.chat-bubble-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--trans);
}
.chat-bubble-btn:hover { transform: scale(1.08); background-color: var(--accent-hover); }

.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--trans);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.chat-widget.active { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-header {
    background: var(--accent);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h4 { font-size: 1.2rem; font-family: var(--font-heading); margin: 0; font-weight: 600;}
.close-chat { background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;}

/* DATALENS & SCAN & SHIELD FLEX */
.datalens-flex { display: flex; align-items: center; gap: 4rem; justify-content: space-between; }
.dl-content { flex: 0 0 45%; }
.dl-image { flex: 0 0 50%; }
.dl-image img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); }
.dl-logo { height: 40px; margin-bottom: 1.5rem; }

.product-gray-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--trans);
}
.product-gray-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.scan-shield-transparent-logo {
    filter: invert(1) grayscale(100%) contrast(150%);
    mix-blend-mode: multiply;
    opacity: 0.8;
    transition: var(--trans);
}
.scan-shield-transparent-logo:hover {
    opacity: 1;
}

.product-hover-img {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s ease;
}
.product-hover-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.chat-body { padding: 2rem 1.5rem; }
.chat-body p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.chat-form input, .chat-form textarea {
    width: 100%; margin-bottom: 1rem; padding: 1rem;
    border: 1px solid var(--border-light); border-radius: 6px; font-family: var(--font-body);
    background: var(--bg-alt);
}
.chat-form input:focus, .chat-form textarea:focus { outline: none; border-color: var(--accent); background: #fff;}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .nav-logo { height: 50px; }
    .navbar.scrolled .nav-logo { height: 45px; }
    .nav-content { width: 100%; position: relative; display: flex; align-items: center; justify-content: flex-start; }
    .brand-logo { margin: 0; z-index: 2001; position: relative; }
    .mobile-menu-btn { 
        display: flex !important; 
        z-index: 2002; 
        position: absolute !important;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 44px; height: 44px;
        background: transparent !important;
        border: none !important;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-btn svg { stroke: #111111 !important; width: 32px; height: 32px; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg-light);
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
        transform: translateY(-100%); transition: var(--trans); opacity: 0; z-index: 1000;
        pointer-events: none;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-link { font-size: 1.7rem; }
    .nav-btn { font-size: 1.4rem; padding: 1rem 3rem;}
    
    .slide { padding-bottom: 4rem; padding-top: 110px; }
    .hero-title { font-size: clamp(2.3rem, 10vw, 3rem) !important; margin-bottom: 1.5rem !important; line-height: 1 !important; }
    .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 1rem; padding-top: 1.5rem; }
    .valor-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-row { grid-template-columns: 1fr; gap: 1rem; }
    .datalens-flex { grid-template-columns: 1fr; gap: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .events-grid { grid-template-columns: 1fr; }
    .team-list-compact { grid-template-columns: 1fr; gap: 2rem; }
    .footer-flex { grid-template-columns: 1fr; gap: 4rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    
    .chat-widget { width: calc(100% - 40px); right: 20px; bottom: 160px; z-index: 99999 !important; }
    .chat-bubble-btn { bottom: 85px; right: 20px; z-index: 99999 !important; display: flex !important; }
}
