/* ==========================================================================
   PAGES.CSS - PAGE-SPECIFIC COMPONENTS & MODULES
   ========================================================================== */

/* =========================================
   1. TRUST SIGNALS & MARQUEE (Casos)
   ========================================= */
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollMarqueeLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollMarqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.trust-section { padding: 40px 0; background: var(--white); overflow: hidden; border-block: 1px solid rgba(0,0,0,0.05); }
.trust-text { text-align: center; font-size: 0.85rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
.marquee-container { display: flex; width: 200%; animation: scrollMarquee 35s linear infinite; }
.marquee-content { display: flex; justify-content: space-around; width: 50%; align-items: center; opacity: 0.5; filter: grayscale(100%); transition: var(--transition-smooth); }
.marquee-container:hover .marquee-content { opacity: 0.9; filter: grayscale(0%); }
.avatar-logo { max-height: 40px; width: auto; object-fit: contain; }

.logo-card {
    background: var(--white); border-radius: var(--radius-md); padding: 1.5rem;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-smooth); flex-shrink: 0; 
}
.logo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(109, 40, 217, 0.1); }
.logo-card img { max-height: 100%; max-width: 100%; object-fit: contain; filter: none; opacity: 1; }
img.logo-case { max-height: 100%; max-width: 100%; display: inline !important; object-fit: contain; filter: none; opacity: 1; }

@media (min-width: 969px) {
    .desktop-trust-marquees { display: block; width: 100%; }
    .marquee-track { overflow: hidden; width: 100%; position: relative; display: flex; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
    .marquee-container { display: flex; width: max-content; }
    .marquee-content { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; opacity: 1; filter: none;}
    .marquee-content .logo-card { width: 220px; height: 110px; }
    .scroll-left { animation: scrollMarqueeLeft 60s linear infinite; }
    .scroll-right { animation: scrollMarqueeRight 60s linear infinite; }
    .marquee-container:hover { animation-play-state: paused; }
}

/* =========================================
   2. SERVICES, MODULES & SOLUTIONS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.card { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.03); box-shadow: var(--shadow-card); transition: var(--transition-smooth); position: relative; overflow: hidden; z-index: 1; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 3px; height: 100%; background: var(--gradient-tech); transform: scaleY(0); transition: transform 0.4s ease; transform-origin: bottom; opacity: 0; z-index: -1; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { transform: scaleY(1); opacity: 1; }
.card-icon-sol { font-size: 3rem; color: var(--brand-blue); margin-bottom: 1rem; transition: var(--transition); }
.card:hover .card-icon-sol { color: var(--brand-purple); transform: scale(1.1); }
.card-subt { display: block; color: var(--text-light); font-weight: 500; margin-bottom: 1rem; font-size: 0.95rem; }
.card-list-mt { margin-top: 1.5rem; }
.card ul li { margin-bottom: 0.5rem; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.card ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--brand-blue); font-size: 0.8rem; }

.module-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 6rem; }
.module-text { order: 1; }
.module-visual { order: 2; position: relative; }
.module-row.img-left .module-visual { order: 1; }
.module-row.img-left .module-text { order: 2; }
.tech-glass-card { position: absolute; background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: var(--glass-border); padding: 1.2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-float); z-index: 2; display: flex; align-items: center; gap: 1rem; bottom: -20px; right: -20px; max-width: 280px; animation: float 6s ease-in-out infinite; }
.tech-glass-card.left { right: auto; left: -20px; }
.tech-icon-lg { font-size: 2rem; }
.module-img { border-radius: var(--radius-xl); box-shadow: var(--shadow-hover); width: 100%; position: relative; z-index: 1; }
.module-list li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.module-list i { color: var(--brand-purple); font-size: 1.2rem; margin-top: 3px; }

/* =========================================
   3. IMPACT FEATURES (Grid Cards)
   ========================================= */
.impact-features-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.impact-feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; border: 1px solid rgba(0,0,0,0.03); box-shadow: var(--shadow-sm); transition: var(--transition-smooth); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; z-index: 1; }
.impact-feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-tech); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; z-index: -1; }
.impact-feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(109, 40, 217, 0.1); }
.impact-feature-card:hover::before { transform: scaleX(1); }
.impact-icon-wrap { width: 70px; height: 70px; background: var(--bg-60); color: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; transition: var(--transition-smooth); }
.impact-feature-card:hover .impact-icon-wrap { background: var(--brand-purple); color: var(--white); transform: scale(1.1) rotate(5deg); box-shadow: var(--shadow-glow); }
.impact-title { font-size: 1.1rem; color: var(--brand-navy); line-height: 1.4; font-weight: 700; margin-bottom: 0; }

@media (min-width: 768px) and (max-width: 1199px) { .impact-features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .impact-features-grid { grid-template-columns: repeat(6, 1fr); } }

/* =========================================
   4. TECH SHOWCASE (Interactive Index)
   ========================================= */
.tech-showcase-subtitle { margin: 1rem auto 0; }
.tech-showcase-cta { margin-top: 4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

.tech-showcase-wrapper {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 1.5rem; padding-bottom: 2rem; margin-top: 2rem; margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 24px; scrollbar-width: none;
}
.tech-showcase-wrapper::-webkit-scrollbar { display: none; }
.tech-showcase-item { flex: 0 0 85%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 1rem; opacity: 0.6; transition: opacity 0.3s ease, transform 0.3s ease; }
.tech-showcase-item.active { opacity: 1; transform: scale(1.02); }

.tech-tab { text-align: left; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-60); border: 1px solid rgba(109, 40, 217, 0.15); box-shadow: var(--shadow-sm); cursor: pointer; position: relative; overflow: hidden; transition: var(--transition-smooth); display: flex; flex-direction: column; width: 100%; }
.tech-tab::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--gradient-tech); border-radius: 4px 0 0 4px; }
.tech-tab h3, .tech-tab h4 { font-size: 1.15rem; color: var(--brand-blue); margin-bottom: 0.5rem; font-family: var(--font-display); font-weight: 800; transition: var(--transition); }
.tech-tab p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; line-height: 1.5; transition: var(--transition); }

.tech-img-pane { opacity: 1 !important; visibility: visible !important; position: relative; height: 350px; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; background: var(--bg-60); width: 100%; transform: none !important; }
.tech-img-pane img { width: 100%; height: 100%; object-fit: cover; }
.tech-img-pane::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 29, 73, 0.6) 0%, transparent 50%); }

.tech-glass-tag { position: absolute; bottom: 15px; left: 15px; right: 15px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1.2rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 1.2rem; z-index: 2; opacity: 1 !important; transform: none !important; }
.tech-tag-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(109, 40, 217, 0.1); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.tech-glass-label { display:block; font-size:0.75rem; text-transform:uppercase; font-weight:700; color:var(--brand-blue); }
.tech-glass-title { display:block; font-size:1rem; font-weight:700; color:var(--brand-navy); line-height:1.2; }

@media (min-width: 969px) {
    .tech-showcase-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto auto; gap: 1rem 4rem; position: relative; margin-top: 4rem; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
    .tech-showcase-item { display: contents; opacity: 1; }
    .tech-tab { grid-column: 1; background: transparent; border: 1px solid transparent; box-shadow: none; padding: 1.5rem; }
    .tech-tab::before { display: none; } 
    .tech-tab h3, .tech-tab h4 { color: var(--brand-navy); }
    .tech-tab:hover { background: rgba(0, 87, 184, 0.03); }
    .tech-showcase-item.active .tech-tab { background: var(--bg-60); border: 1px solid rgba(109, 40, 217, 0.15); box-shadow: var(--shadow-sm); }
    .tech-showcase-item.active .tech-tab::before { display: block; content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--gradient-tech); border-radius: 4px 0 0 4px; }
    .tech-showcase-item.active .tech-tab h3, .tech-showcase-item.active .tech-tab h4 { color: var(--brand-blue); }

    .tech-visual-area { position: relative; border-radius: var(--radius-xl); height: 450px; box-shadow: var(--shadow-hover); overflow: hidden; background: var(--bg-60); grid-column: 2; grid-row: 1 / 4; }
    .tech-img-pane { grid-column: 2; grid-row: 1 / 4; grid-area: 1 / 2 / -1 / 3; height: 450px; opacity: 0 !important; visibility: hidden !important; transform: scale(1.05) !important; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; position: absolute; inset: 0;}
    .tech-showcase-item.active .tech-img-pane { opacity: 1 !important; visibility: visible !important; transform: scale(1) !important; pointer-events: all; z-index: 2; }
    
    .tech-glass-tag { bottom: 30px; left: 30px; max-width: 320px; transform: translateY(20px) !important; opacity: 0 !important; transition: all 0.5s 0.3s ease; right: auto; }
    .tech-showcase-item.active .tech-glass-tag { transform: translateY(0) !important; opacity: 1 !important; }
}

/* =========================================
   5. COLLABORATOR JOURNEY (Timeline)
   ========================================= */
.cycle-section { background: var(--white); border-radius: var(--radius-xl); padding: 5rem 0; position: relative; }
.timeline-nav { display: flex; justify-content: space-between; position: relative; margin-bottom: 3rem; overflow-x: auto; padding-bottom: 1rem; padding-top: 1rem; gap: 1rem; }
.timeline-nav::-webkit-scrollbar { height: 4px; }
.timeline-nav::-webkit-scrollbar-thumb { background: var(--brand-blue); border-radius: 4px; }
.timeline-nav::before { content: ''; position: absolute; top: 24px; left: 0; width: 100%; height: 2px; background: rgba(0,0,0,0.05); z-index: 0; }
.t-step { position: relative; z-index: 1; flex: 1; min-width: 150px; text-align: center; cursor: pointer; transition: var(--transition-smooth); }
.t-step:focus-visible { outline: 2px solid var(--brand-purple); outline-offset: 4px; border-radius: var(--radius-lg); }
.t-icon-wrap { width: 80px; height: 80px; background: var(--bg-60); border: 2px solid var(--white); border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 2rem; transition: var(--transition); box-shadow: var(--shadow-sm); }
.t-step h3, .t-step h4 { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.2rem; transition: var(--transition); font-family: var(--font-display); font-weight: 800;}
.t-step span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: rgba(0,0,0,0.4); letter-spacing: 1px; }

.t-step.active .t-icon-wrap { background: var(--brand-purple); color: var(--white); transform: scale(1.15); box-shadow: var(--shadow-glow); border-color: var(--brand-purple); }
.t-step.active h3, .t-step.active h4 { color: var(--brand-navy); font-weight: 800; }
.t-step.active span { color: var(--brand-blue); }

.timeline-blue { padding-top: 0; }
.timeline-blue .t-step { color: var(--brand-blue); }
.timeline-blue .t-icon-wrap { border-color: var(--brand-blue); color: var(--brand-blue); }
.timeline-blue .t-step h3, .timeline-blue .t-step h4 { color: var(--brand-navy); font-weight: 800; }
.timeline-blue .t-step span { color: var(--brand-blue); }

.timeline-content-wrapper { background: var(--bg-60); border-radius: var(--radius-xl); padding: 3rem; border: 1px solid rgba(0,0,0,0.03); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); position: relative; overflow: hidden; }
.timeline-content-wrapper::after { content: '\f0c1'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -40px; font-size: 15rem; color: rgba(0,87,184,0.03); z-index: 0; transform: rotate(-15deg); }

.t-pane { display: none; animation: fadeInRight 0.5s ease forwards; position: relative; z-index: 1; }
.t-pane.active { display: block; }
.t-pane[hidden] { display: none !important; }

.t-pane-grid { display: grid; grid-template-columns: 1fr 350px; gap: 4rem; align-items: center; }
.t-pane-title { font-size: 1.8rem; margin-bottom: 1rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.f-tag { background: var(--white); color: var(--brand-navy); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.f-tag:hover { border-color: var(--brand-purple); transform: translateY(-2px); }
.f-tag i { color: var(--brand-blue); }

.exa-value-box { background: var(--gradient-tech); border-radius: var(--radius-lg); padding: 2rem; color: var(--white); box-shadow: var(--shadow-glow); position: relative; overflow: hidden; }
.exa-value-box h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.5rem; }
.exa-value-box p { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin-bottom: 0; }

.mobile-swipe-hint { display: none; }

/* =========================================
   6. STATS COUNTERS
   ========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; text-align: center; padding: 3rem; background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft);}
.stat-number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; background: var(--gradient-tech); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; line-height: 1;}
.stat-label { font-size: 0.95rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.5rem; display: block;}

.stats-grid-extended { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 1.5rem; margin-top: 4rem; text-align: center; padding: 3.5rem 2rem; background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.stat-item { flex: 0 1 calc(25% - 1.5rem); min-width: 180px; }
.stat-item .stat-number { font-size: clamp(2.5rem, 4vw, 3.5rem); }

/* =========================================
   7. SUCCESS CASES & RESOURCES HUB
   ========================================= */
.case-card { background: var(--white); padding: 4rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); margin-bottom: 4rem; border: 1px solid rgba(0,0,0,0.05); }
.case-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.case-title { font-size: 2rem; margin-bottom: 1rem; }
.case-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--bg-canvas); margin-bottom: 1rem; object-fit: cover; }
.case-name { margin-bottom: 0; }
.case-role { font-size: 0.85rem; color: var(--text-light); }
.case-quote { font-style: italic; color: var(--brand-navy); }
.case-data { list-style: none; margin-top: 2rem; }
.case-data li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
.case-data i { color: var(--brand-purple); font-size: 1.5rem; margin-top: 5px; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 3rem; }
.resource-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition-smooth); cursor: pointer; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03);}
.resource-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.resource-img { height: 220px; position: relative; overflow: hidden; background-color: var(--bg-60); }
.resource-img-element { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.resource-card:hover .resource-img-element { transform: scale(1.05); }
.resource-tag { position: absolute; top: 16px; left: 16px; background: var(--white); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--brand-navy); box-shadow: var(--shadow-sm); z-index: 2;}
.resource-content { padding: 2.5rem 2rem; display: flex; flex-direction: column; flex-grow: 1; position: relative; z-index: 2; background: var(--white);}
.resource-content h3, .resource-content h4 { font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.4; color: var(--brand-navy); transition: var(--transition); font-family: var(--font-display); font-weight: 800;}
.resource-card:hover h3, .resource-card:hover h4 { color: var(--brand-purple); }

/* =========================================
   8. JTBD & PHILOSOPHY QUOTES
   ========================================= */
.dark-section-jtbd { background-color: var(--brand-navy); position: relative; overflow: hidden; }
.dark-section-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(109,40,217,0.15) 0%, transparent 60%); z-index: 0; }
.jtbd-header { margin: 0 auto 4rem; }
.badge-jtbd { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.jtbd-header h2 { color: var(--white); margin-top: 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.jtbd-header p { color: rgba(255,255,255,0.7); font-size: 1.15rem; margin-top: 1.5rem; }

.jtbd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.jtbd-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem 2rem; border-radius: var(--radius-lg); transition: transform 0.3s ease, border-color 0.3s ease; }
.jtbd-card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, 0.3); box-shadow: var(--shadow-float); }
.jtbd-card i { color: #a78bfa; font-size: 2rem; margin-bottom: 1.5rem; display: block; }
.jtbd-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1rem; }
.jtbd-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 0; }

.jtbd-conclusion { margin-top: 4rem; }
.jtbd-conclusion h3 { color: var(--white); font-size: 1.4rem; font-weight: 500; }
.jtbd-conclusion span { color: #A78BFA; font-weight: 800; font-size: 1.8rem; display: block; margin-top: 0.5rem; }

.philosophy-quote { border-left: 4px solid var(--brand-purple); padding-left: 1.5rem; margin-top: 2rem; font-style: italic; }
.philosophy-quote p { font-size: 1.2rem; color: var(--brand-navy); font-weight: 600; margin-bottom: 0.5rem; }
.philosophy-quote span { font-size: 0.9rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   9. AGENDA & CONTACT FORMS
   ========================================= */
.agenda-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.form-card { background: var(--white); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.05); }
.agenda-list { list-style: none; padding: 0; }
.agenda-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-size: 1rem; color: var(--text-main); }
.agenda-list i { font-size: 1.2rem; }

.form-group { margin-bottom: 1.5rem; text-align: left;}
.form-control { width: 100%; padding: 14px 20px; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--border-radius-btn); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); background: var(--bg-60);}
.form-control:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1); background: var(--white);}
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--brand-navy); font-size: 0.9rem;}

/* =========================================
   10. ADMIN PANEL, CMS & RICH TEXT
   ========================================= */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-image: var(--bg-pattern); background-size: 40px 40px; }
.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }
.login-card { background: var(--white); padding: 3rem 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-hover); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-tech); }
.auth-pending { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.auth-approved { opacity: 1; pointer-events: all; }
img.login-logo { display: inline !important; max-width: 150px; transition: var(--transition); }

.admin-nav-links { display: flex; align-items: center; gap: 15px; }
.admin-table-wrapper { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.05); overflow-x: auto; }
.admin-table { border-collapse: collapse; text-align: left; width: 100%; }
.admin-table th, .admin-table td { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.admin-table th { background: var(--bg-60); color: var(--brand-navy); font-weight: 700; font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.admin-table tbody tr:hover { background: rgba(0,87,184,0.02); }
.admin-table td { color: var(--text-main); font-size: 0.95rem; }
.btn-action { background: transparent; border: none; cursor: pointer; font-size: 1.1rem; padding: 0.5rem; transition: var(--transition); border-radius: 8px; }
.btn-edit { color: var(--brand-blue); }
.btn-edit:hover { background: rgba(0,87,184,0.1); }
.btn-delete { color: #ef4444; }
.btn-delete:hover { background: rgba(239,68,68,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Modals & Chat Viewer */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(7, 29, 73, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); width: 100%; max-width: 500px; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.chat-viewer-card { border: 1px solid rgba(0,0,0,0.1); overflow: hidden; }

/* Editor Express HTML */
.editor-container-grid { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.editor-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.05); }
.editor-sidebar h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--brand-navy); border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 0.8rem; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { margin-bottom: 0.3rem; }
.file-btn { width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-main); cursor: pointer; transition: var(--transition); font-size: 0.9rem; font-weight: 500; font-family: var(--font-body); }
.file-btn:hover { background: var(--bg-60); }
.file-btn.active { background: rgba(109, 40, 217, 0.1); color: var(--brand-purple); border-color: rgba(109, 40, 217, 0.2); font-weight: 700; }
.editor-main { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.05); }
.editor-warning { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 10px 15px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 1.5rem; border: 1px solid rgba(239, 68, 68, 0.2); }
.code-textarea { width: 100%; height: 600px; background: #1e1e1e; color: #d4d4d4; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 14px; padding: 1.5rem; border-radius: 8px; border: none; outline: none; resize: vertical; line-height: 1.6; white-space: pre; overflow-wrap: normal; overflow-x: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.code-textarea:focus { box-shadow: 0 0 0 2px var(--brand-purple), inset 0 2px 10px rgba(0,0,0,0.5); }
.code-textarea:disabled { opacity: 0.5; cursor: not-allowed; }

/* Iframes & Dashboards */
.btn-link-action { background: rgba(109, 40, 217, 0.05); color: var(--brand-purple); border: 1px solid rgba(109, 40, 217, 0.2); border-radius: 6px; padding: 4px 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; text-decoration: none; }
.btn-link-action:hover { background: var(--brand-purple); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.iframe-container { width: 100%; height: calc(100vh - 220px); min-height: 600px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid rgba(0,0,0,0.05); }
.iframe-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-60); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.iframe-container iframe { position: relative; z-index: 2; width: 100%; height: 100%; border: none; }

/* Article Individual (Rich Text) */
.article-hero { min-height: 50vh; display: flex; align-items: center; justify-content: center; padding-top: 100px; padding-bottom: 50px; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; color: var(--brand-navy); font-weight: 600; font-size: 0.95rem; margin-top: 1.5rem; }
.article-meta i { margin-right: 5px; }
.article-body-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }
.article-body-content p { margin-bottom: 1.5rem; }
.article-body-content h2, .article-body-content h3 { font-family: var(--font-display); color: var(--brand-navy); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body-content h2 { font-size: 1.8rem; }
.article-body-content h3 { font-size: 1.4rem; }
.article-body-content strong { color: var(--brand-navy); font-weight: 700; }
.article-body-content ul, .article-body-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-body-content li { display: list-item !important; margin-bottom: 0.5rem; }
.article-body-content blockquote { border-left: 4px solid var(--brand-purple); background: var(--bg-60); padding: 1.5rem; border-radius: 0 12px 12px 0; font-style: italic; color: var(--brand-navy); margin: 2rem 0; font-size: 1.2rem; }
.article-body-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 2rem 0; box-shadow: var(--shadow-sm); }
.article-body-content ul { list-style-type: disc !important; margin-bottom: 1.5rem !important; }
.border-radius-lg { border-radius: var(--radius-lg); }
.shadow-md { box-shadow: var(--shadow-card); }
.ql-toolbar { background: var(--bg-60); border-radius: 8px 8px 0 0 !important; border-color: rgba(0,0,0,0.1) !important; font-family: var(--font-body); }
.ql-container { border-color: rgba(0,0,0,0.1) !important; border-radius: 0 0 8px 8px !important; font-family: var(--font-body) !important; font-size: 1rem !important;}

/* =========================================
   11. PAGES RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (min-width: 969px) {
    .services-grid.four-cols { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .services-grid.four-cols .card { padding: 2rem 1.5rem; }
    .services-grid.four-cols h3 { font-size: 1.25rem; }
}

@media (max-width: 1024px) {
    .stat-item { flex: 0 1 calc(33.333% - 1.5rem); }
}

@media (max-width: 968px) {
    /* Timeline & Swipes */
    .mobile-swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand-purple); font-size: 0.85rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; animation: pulseGlow 2s infinite; }
    .timeline-nav { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1.5rem; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; scrollbar-width: none; }
    .timeline-nav::-webkit-scrollbar { display: none; }
    .t-step { flex: 0 0 60%; scroll-snap-align: center; opacity: 0.6; transition: all 0.3s ease; }
    .t-step.active { opacity: 1; transform: scale(1.05); }
    .t-pane-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Grids Modulares */
    .demo-container, .module-row { grid-template-columns: 1fr; gap: 3rem; }
    .module-row { margin-top: 4rem; }
    .module-row.img-left .module-text { order: 1; }
    .module-row.img-left .module-visual { order: 2; }
    .tech-glass-card { display: none; }
    
    /* Logos, Casos y Agenda */
    .mobile-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .mobile-trust-grid .logo-card { width: 100%; height: 80px; padding: 1rem; }
    .marquee-content { margin: 3rem 0; padding: 3rem 0; }
    .marquee-content { opacity: 0.9; filter: grayscale(0%); }
    .case-grid { grid-template-columns: 1fr; gap: 2rem; } 
    .case-card { padding: 2rem; }
    .agenda-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem 1rem;}

    /* Admin UI */
    .admin-nav-links { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); padding: 10px; padding-bottom: 5px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); justify-content: flex-start; z-index: 1000; margin-top: 0; overflow-x: auto; }
    .admin-nav-links::-webkit-scrollbar { display: none; }
    .admin-nav-links .btn { padding: 8px !important; font-size: 0.8rem !important; }
    .admin-nav-links .link-text { display: none; }
    .editor-container-grid { grid-template-columns: 1fr; gap: 1.5rem; } 
    .code-textarea { height: 400px; }

   /* =========================================
      AJUSTES MOBILE UX: SECCIÓN TECH INTERACTIVA
      (Añadir dentro de @media (max-width: 968px))
      ========================================= */
    /* 1. Carrusel: Fuerza a que todos los items se estiren y midan exactamente igual */
    .tech-showcase-wrapper {
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; 
        gap: 1.5rem; 
        padding-bottom: 1.5rem;
        margin-left: -24px; margin-right: -24px; 
        padding-left: 24px; padding-right: 24px;
        scrollbar-width: none;
        align-items: stretch !important; /* CLAVE: Igualar alturas */
    }
    
    .tech-showcase-wrapper::-webkit-scrollbar { display: none; }
    
    /* 2. El Item: Flexbox en columna */
    .tech-showcase-item { 
        flex: 0 0 85%; 
        scroll-snap-align: center; 
        display: flex !important; 
        flex-direction: column !important; 
        opacity: 0.6; 
        transition: opacity 0.3s ease, transform 0.3s ease; 
        height: auto !important; /* Hereda el alto del wrapper estirado */
    }
    .tech-showcase-item.active { opacity: 1; transform: scale(1.02); }

    /* 3. La Pestaña (Texto): Absorbe el espacio sobrante */
    .tech-tab { 
        width: 100%; 
        flex-grow: 1 !important; /* CLAVE: Se estira si tiene menos texto que las demás */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Mantiene el texto arriba */
    }

    /* 4. La Imagen y Tag: Anclados siempre al fondo */
    .tech-img-pane { 
        flex-grow: 0 !important;
        margin-top: auto !important; /* CLAVE: Empuja el bloque siempre hacia abajo */
        display: flex !important; 
        flex-direction: column !important; 
        justify-content: flex-end !important; /* Fuerza elementos al fondo */
        height: auto !important; 
        min-height: auto !important;
        background: transparent !important; 
        box-shadow: none !important;
        overflow: visible !important;
        transform: none !important; 
    }

    /* Eliminamos el degradado oscuro innecesario */
    .tech-img-pane::after { display: none !important; }

    .tech-img-pane picture {
        display: block;
        width: 100%;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        background: var(--bg-60);
    }

    .tech-img-pane img {
        width: 100%;
        height: auto !important; 
        object-fit: contain !important;
        display: block;
    }

    /* 5. El Tag Inferior: Se homologa para tener proporciones exactas */
    .tech-glass-tag {
        position: relative !important; 
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important; 
        width: 100% !important;
        max-width: none !important;
        margin: 15px 0 0 0 !important; 
        padding: 1rem 1.2rem !important; 
        border-radius: var(--radius-lg) !important; 
        background: var(--white) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: var(--shadow-sm) !important;
        flex-grow: 1 !important; /* Igualamos la altura de los tags si varían */
        display: flex !important;
        align-items: center !important;
    }

    /* Reducción proporcional del ícono y textos */
    .tech-glass-tag .tech-tag-icon { width: 38px !important; height: 38px !important; font-size: 1.05rem !important; }
    .tech-glass-tag .tech-glass-label { font-size: 0.7rem !important; }
    .tech-glass-tag .tech-glass-title { font-size: 0.9rem !important; }

   /* =========================================
   ACTUALIZACIÓN MOBILE UX: VIAJE DEL COLABORADOR Y CTAs
   ========================================= */
    /* 1. LIMPIEZA VISUAL: Viaje del Colaborador */
    /* Ocultamos el texto descriptivo y la caja de valor para reducir el scroll vertical 
       y enfocar la atención en los Feature Tags y la Imagen */
    .t-pane-grid .text-lead-sm,
    .t-pane-grid .exa-value-box {
        display: none !important;
    }

    /* Reducimos el espacio vacío (gap) que dejan los elementos al ocultarse */
    .t-pane-grid {
        gap: 1.5rem !important; 
    }

    /* 2. CORRECCIÓN ÁREA DE TOQUE: Botones CTA */
    /* Transformamos los botones en formato bloque (App-Like) para que no se peguen, 
       ocupen un ancho óptimo para el pulgar y mantengan una separación perfecta */
    section.text-center > .btn,
    .tech-showcase-cta .btn {
        display: flex !important;
        width: 100% !important;
        max-width: 320px; /* Ancho máximo para que no se deformen en tablets pequeñas */
        margin: 0 auto 1.2rem auto !important; /* Centrado horizontal + Separación inferior */
    }

    /* Neutralizamos los márgenes derechos heredados de la versión Desktop 
       para asegurar el centrado absoluto en pantallas móviles */
    section.text-center > .btn.mr-1rem,
    .tech-showcase-cta .btn.mr-1rem {
        margin-right: auto !important;
    }
    
    /* Aseguramos que el último botón no deje un margen innecesario si está dentro de un contenedor específico */
    section.text-center > .btn:last-child {
        margin-bottom: 0 !important;
    }

   /* =========================================
   ACTUALIZACIÓN MOBILE UX: GRID DE IMPACTO Y BOTONES
   ========================================= */
    /* ---------------------------------------------------
       1. TRANSFORMACIÓN DE TARJETAS A VIÑETAS (Impact Features) 
       --------------------------------------------------- */
    
    /* Convertimos la grilla en una lista vertical compacta */
    .impact-features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important; /* Separación sutil entre viñetas */
        margin-top: 2rem !important;
    }

    /* Transformamos la "Tarjeta" en un "Item de Lista" (Fila horizontal) */
    .impact-feature-card {
        flex-direction: row !important; /* Alineación horizontal: Ícono a la izq, texto a la der */
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 1rem 1.2rem !important;
        background: var(--white) !important; 
        box-shadow: var(--shadow-sm) !important; /* Sombra muy suave para destacar sobre el fondo */
        border: 1px solid rgba(0,0,0,0.04) !important;
        border-radius: var(--radius-md) !important;
        min-height: auto !important;
        transform: none !important; /* Apagamos el hover de subir en móvil */
    }

    /* Desactivar la línea superior animada (Hover) en versión viñeta móvil */
    .impact-feature-card::before {
        display: none !important;
    }

    /* Ajuste del contenedor del ícono para que actúe como bullet */
    .impact-feature-card .impact-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important; /* Evitar que se comprima si el texto es largo */
        margin-bottom: 0 !important;
        margin-right: 1.2rem !important; /* Espacio entre el ícono y el texto */
        font-size: 1.1rem !important;
        background: rgba(109, 40, 217, 0.1) !important; /* Fondo morado suave de EXA */
        color: var(--brand-purple) !important;
    }

    /* Ajuste tipográfico del título de la viñeta para rápida lectura */
    .impact-feature-card .impact-title {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        color: var(--brand-navy) !important;
    }


    /* ---------------------------------------------------
       2. CORRECCIÓN ÁREA DE TOQUE: Separación de Botones CTA
       --------------------------------------------------- */
       
    /* Seleccionamos todos los botones que se encuentran al final de las secciones (CTAs Finales) */
    section.text-center > a.btn,
    .tech-showcase-cta > a.btn,
    .section-padding.text-center.container > a.btn {
        display: flex !important;
        width: 100% !important;
        max-width: 320px; /* Ancho máximo ideal para móviles */
        margin: 0 auto 1.2rem auto !important; /* 1.2rem (Aprox 19px) asegura la separación perfecta */
        justify-content: center !important;
    }

    /* Quitamos el margen derecho heredado de Desktop que desalinea los botones en Móvil */
    section.text-center > a.btn.mr-1rem,
    .tech-showcase-cta > a.btn.mr-1rem,
    .section-padding.text-center.container > a.btn.mr-1rem {
        margin-right: auto !important;
    }

    /* Aseguramos que el último botón del bloque NO deje un margen en blanco extra por debajo */
    section.text-center > a.btn:last-child,
    .tech-showcase-cta > a.btn:last-child,
    .section-padding.text-center.container > a.btn:last-child {
        margin-bottom: 0 !important;
    }

    /* Si los botones están dentro de un grupo flexible (como el Hero) */
    .hero-cta-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important; /* El 'gap' forza la separación sin necesidad de márgenes */
        align-items: center !important;
        width: 100% !important;
    }
    
    .hero-cta-group .btn {
        margin: 0 !important; 
        width: 100% !important;
        max-width: 320px !important;
    }

   /* =========================================
      ACTUALIZACIÓN MOBILE UX: CARRUSEL INFINITO DE CLIENTES
      ========================================= */

    /* Mostrar el contenedor base */
    .mobile-trust-marquee {
        display: block;
        width: 100%;
        margin-top: 2rem;
    }

    /* Pista del carrusel con máscara de difuminado en los bordes */
    .mobile-trust-marquee .marquee-track {
        overflow: hidden;
        width: 100%;
        position: relative;
        display: flex;
        /* Difuminado suave para que los logos aparezcan/desaparezcan elegantemente */
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }

    /* Contenedor que medirá dinámicamente el ancho total de ambas filas */
    .mobile-trust-marquee .marquee-container {
        display: flex;
        width: max-content;
    }

    /* Ajuste de márgenes y espacios específicamente para pantallas pequeñas */
    .mobile-trust-marquee .mobile-marquee-content {
        display: flex;
        align-items: center;
        gap: 1.2rem; /* Separación optimizada para móvil */
        padding-right: 1.2rem; 
    }

    /* Tarjetas de logos homogéneas adaptadas a Mobile First */
    .mobile-trust-marquee .logo-card {
        width: 140px !important; /* Tamaño fijo, no tan gigante como en desktop */
        height: 70px !important; /* Alto homogéneo para no romper el layout */
        flex-shrink: 0 !important; /* Vital para que Flexbox no aplaste la tarjeta */
        padding: 0.8rem !important; /* Padding reducido para dar más espacio a la imagen */
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(0,0,0,0.04);
        /* Quitamos hover y animaciones previas para móvil */
        transform: none !important; 
    }

    /* La imagen se adaptará perfectamente y forzamos su renderizado en la GPU */
    .mobile-trust-marquee .logo-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* Hack WPO Senior: Fuerza al navegador móvil a pintar la imagen de inmediato */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Animación fluida por GPU (Hardware Acceleration) */
    .scroll-left-mobile {
        /* 25 segundos aseguran una lectura relajada sin marear al usuario */
        animation: scrollMarqueeMobileLeft 25s linear infinite;
        will-change: transform;
    }

    @keyframes scrollMarqueeMobileLeft {
        0% { transform: translateX(0); }
        /* Se desplaza exactamente a la mitad (el tamaño del primer bloque) creando el loop */
        100% { transform: translateX(-50%); } 
    }
}

@media (max-width: 767px) {
    .impact-features-grid { grid-template-columns: 1fr; }
    .stats-grid-extended { padding: 2.5rem 1rem; gap: 2rem 1rem; }
    .stat-item { flex: 0 1 calc(50% - 1rem); }
}

@media (max-width: 480px) {
    .stats-grid, .stats-grid-extended .stat-item { flex: 0 1 100%; grid-template-columns: 1fr; }
}