﻿/* EVORIX Web 2.0 Styles */

/* =========================================
   1. DESIGN TOKENS & RESET
   ========================================= */
:root {
  /* Colors - Dark Mode Default */
  --bg: #050A14;
  --surface: #0F172A;
  --surface-hover: #1E293B;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --primary: #0066FF;
  /* Bright Tech Blue */
  --primary-glow: rgba(0, 102, 255, 0.4);
  --accent: #00E0FF;
  /* Cyan for highlights */

  --text: #F8FAFC;
  --text-muted: #94A3B8;

  --success: #10B981;
  --warning: #F59E0B;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --header-height: 70px;

  /* Theme Specifics */
  --card-bg: rgba(10, 12, 24, 0.95);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(5, 10, 20, 0.8);
  --mobile-menu-bg: rgba(5, 10, 20, 0.98);
  --theme-toggle-border: #F59E0B;
  /* Orange branding */
  --theme-toggle-bg: transparent;
  --theme-toggle-icon: #F8FAFC;
  --icon-color: #F8FAFC;
  --hero-gradient: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
  --badge-bg: rgba(255, 255, 255, 0.05);

  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;


}

/* Light Mode Overrides */
:root[data-theme="light"] {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --primary: #0055D4;
  --primary-glow: rgba(0, 85, 212, 0.2);

  --text: #0F172A;
  --text-muted: #64748B;
  --text-soft: #4b5563;
  --text-strong: #0b1020;

  /* Light Mode Specifics */
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.8);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --theme-toggle-border: #F59E0B;
  --theme-toggle-bg: transparent;
  --theme-toggle-icon: #0F172A;
  --icon-color: #ffffff;
  --hero-gradient: linear-gradient(180deg, #0F172A 0%, #64748B 100%);
  --btn-ghost-bg: rgba(32, 22, 218, 0.05);
  --badge-bg: rgba(0, 0, 0, 0.05);


}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Light theme background handled by var(--bg) on body */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
  background: transparent;
  /* allow particles to be visible */
}

/* Preserve alt section styling */
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* === Referencias (Testimonials Carousel) === */
.references-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 420px;
  overflow: visible !important;
}

.references-section .section-title {
  margin-bottom: 2rem;
}

.references-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.references-viewport::-webkit-scrollbar {
  display: none;
}

.references-track {
  display: flex;
  gap: 2rem;
  padding: 2rem 1rem;
}

/* Garbage removed */

.references-carousel::-webkit-scrollbar {
  display: none;
}

.references-viewport {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reference-card {
  /* margin-right: 1.5rem; removed */
  min-width: 280px;
  max-width: 320px;
  height: auto !important;
  min-height: fit-content;
  background: var(--card-bg);
  /* backdrop-filter: blur(6px); removed */
  border-radius: 1.4rem;
  border: 1px solid var(--card-border);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
  flex-shrink: 0;
  white-space: normal;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.reference-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.reference-avatar img {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reference-avatar .avatar-photo {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: cover;
  flex-shrink: 0;
}

.reference-avatar .avatar-initial {
  font-size: 1.5rem;
}

.reference-content {
  flex: 1;
}

.reference-name {
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.reference-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.5rem;
}

.reference-text {
  margin: 0;
  line-height: 1.4;
  color: var(--text);
}

@keyframes referenceFloat {
  0% {
    transform: translateY(0) rotate(-1deg);
  }

  100% {
    transform: translateY(-4px) rotate(1deg);
  }
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
/* Reveal System (Mobile First) */
.reveal,
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-section.is-visible,
.reveal.in {
  /* legacy support */
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-section,
  .hero-title,
  .hero-sub,
  .hero .ctas,
  .floating-element {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Floating Animation */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating-element {
  animation: floatY 6s ease-in-out infinite;
}

/* Tactile Feedback (Mobile-focused) */
.scale-on-press,
.btn,
.service-pill,
.dash-module,
.recognition-card,
.reference-card,
.contact-card,
.nav-icon {
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scale-on-press:active,
.btn:active,
.service-pill:active,
.dash-module:active,
.recognition-card:active,
.reference-card:active,
.contact-card:active,
.nav-icon:active {
  transform: scale(0.96);
}

@media (min-width: 769px) {

  /* Softer on desktop */
  .scale-on-press:active,
  .btn:active,
  .service-pill:active,
  .dash-module:active,
  .recognition-card:active,
  .reference-card:active,
  .contact-card:active,
  .nav-icon:active {
    transform: scale(0.98);
  }
}

/* Cursor Blink */
@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.cursor-blink {
  animation: cursorBlink 1s step-end infinite;
}

/* Desktop Reveal Softener */
@media (min-width: 769px) {

  .reveal,
  .reveal-section {
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
  }
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-ghost {
  background: var(--btn-ghost-bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
  transform: translateY(-2px) scale(1.02);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.btn-glow:hover::after {
  transform: scale(1);
  opacity: 1;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.link-minimal {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.link-minimal:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  letter-spacing: 0.5px;
}

/* =========================================
   3. HEADER
   ========================================= */
.evorix-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  width: 100%;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  opacity: 1;
  transform: translateY(0);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

html[data-theme="light"] .evorix-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

/* Scrolled state (PROMPT 1) */
.evorix-header.header--scrolled {
  background: rgba(2, 6, 23, 0.9);
  /* oscuro en dark */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

html[data-theme="light"] .evorix-header.header--scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

/* Ensure no state class hides it */
.evorix-header.header--hero,
.evorix-header.header--nav,
.evorix-header.hide {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* Maintain visibility */
  padding: 0.75rem 2rem;
}




#evorix-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  background: transparent;
  opacity: 1;
  mix-blend-mode: normal;
}

html[data-theme="light"] #evorix-canvas {
  opacity: 1 !important;
  display: block !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
}

/* Layout Wrapper */
.header-primary-actions {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* LOGO */
/* LOGO */
.evorix-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: inherit;
}

/* NAVIGATION (PROMPT 2) */
.evorix-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  max-width: none;
  /* nav ampliada */
  mask-image: none;
  -webkit-mask-image: none;
}

.evorix-nav button,
.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  color: inherit;
}

.evorix-nav button:hover,
.nav-icon:hover,
.nav-icon.nav-item--active,
.evorix-nav .nav-item--active {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: stroke 0.2s ease;
}

/* ACTIONS (Contact + Theme) */
.evorix-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hide Contact CTA in Hero */
/* Contact CTA always visible */
.evorix-header.header--hero .btn-contact-cta {
  opacity: 1;
  width: auto;
  padding: 0.5rem 1.25rem;
  margin: 0;
  pointer-events: auto;
  transform: none;
}

.evorix-header.header--nav .btn-contact-cta {
  opacity: 1;
  width: auto;
  transform: translateX(0);
  /* Reset transition handled by generic class but ensure timing matches */
  transition: all 0.4s ease;
}

/* CONTACT BTN */
.btn-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-contact-cta:hover {
  background: var(--primary-glow);
  /* Fallback */
}

/* =========================================
   MOBILE / TABLET SPECIFIC (< 768px)
   ========================================= */
@media (max-width: 768px) {
  .evorix-header {
    padding: 0.5rem 1rem;
    flex-wrap: nowrap;
    /* Prevent wrap */
  }

  /* Compact Hero Mobile */
  .evorix-header.header--hero {
    padding: 0.75rem 1.25rem;
    background: transparent;
    backdrop-filter: none;
  }

  /* Navbar Layout Mobile */
  .header-primary-actions {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    /* Right align actions */
    gap: 0.5rem;
  }

  /* LOGO MOBILE */
  .evorix-logo {
    font-size: 1.25rem;
    margin-right: auto;
  }

  /* NAVIGATION MOBILE */
  /* In mobile, nav is visible in header--nav state, but compact */

  .evorix-nav {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    gap: 0;
    /* Use padding on icons instead for touch target */
  }

  /* Mobile Icons */
  .nav-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .nav-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Hero State: Nav Hidden */
  .evorix-header.header--hero .evorix-nav {
    display: none;
    /* Clean removal for mobile hero */
  }

  /* Nav State: Nav Visible */
  .evorix-header.header--nav .evorix-nav {
    display: flex;
    overflow-x: auto;
    max-width: 60vw;
    /* confine to avoid overlap */
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    justify-content: flex-start;
    /* Alignment */
  }

  .evorix-header.header--nav .evorix-nav::-webkit-scrollbar {
    display: none;
  }

  /* ACTIONS MOBILE */
  .evorix-header-actions {
    margin-left: 0.5rem;
    gap: 0.5rem;
  }

  /* Contact Btn Mobile - Icon Only */
  .btn-contact-cta span {
    display: none;
  }

  .btn-contact-cta {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
  }

  /* Theme Toggle Mobile */
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   HEADER BUTTONS & CONTRAST FIXES
   ========================================= */

.evorix-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   LIGHT MODE HEADER CONTRAST OVERRIDES
   ========================================= */

/* 1. Header Background & Blur in Light Mode */
html[data-theme="light"] .evorix-header {
  background: transparent;
  /* Slight off-white glass */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 2. Header Elements High Contrast */
html[data-theme="light"] .evorix-logo,
html[data-theme="light"] .nav-icon,
html[data-theme="light"] .nav-icon svg,
html[data-theme="light"] .btn-contact-cta span {
  color: #0F172A;
  /* Dark text */
  fill: currentColor;
  stroke: currentColor;
}

html[data-theme="light"] .nav-icon:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

html[data-theme="light"] .btn-contact-cta {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .btn-contact-cta span {
  color: #fff;
  /* Ensure text inside button stays white */
}

/* 3. Theme Toggle Fixes (Strict Dark Circle, White Icon) */
/* =========================================
   THEME TOGGLE (Unified & Clean)
   ========================================= */
.theme-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  position: relative;
  z-index: 50;
  outline: none;
}

.theme-toggle-btn:active {
  transform: scale(0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.theme-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Colors per Theme */

/* Dark Mode (default) */
html[data-theme="dark"] .theme-toggle-btn {
  background: #020617;
  color: #f9fafb;
}

/* Light Mode */
html[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  color: #020617;
}

/* Animation */
@keyframes theme-toggle-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.theme-toggle-icon.theme-toggle--animating {
  animation: theme-toggle-pulse 0.22s ease-out;
}

/* Icons Content */
.theme-toggle-icon::before {
  content: '\2600';
  /* Sun */
  /* If using a font icon class, ensure this targets it correctly. 
     Assuming .theme-toggle-icon acts as the icon container/element */
}

html[data-theme="light"] .theme-toggle-icon::before {
  content: '\263E';
  /* Moon */
}

/* Theme variable setup locally or via root if widely used */
:root {
  --toggle-glow: rgba(0, 224, 255, 0.6);
}

html[data-theme="light"] {
  --toggle-glow: rgba(0, 0, 0, 0.3);
  /* Dark glow for light mode hero */
}

/* Legacy hero overrides removed to strictly follow new clean style */






/* Old .theme-toggle-btn styles removed in favor of generic .evorix-header-actions button */

/* HEADER MEDIA QUERIES MOVED TO BOTTOM */


/* MOBILE MENU & REFERENCES FIXES MOVED TO BOTTOM */

/* =========================================
   4. HERO SECTION
   ========================================= */
/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-height);
  /* Ensure background is solid for canvas - REMOVED for transparency */
}

/* EVORIX pixel canvas base – animation will be implemented later */
#evorix-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  background: transparent;
}

/* All main content must be above the canvas */
body>*:not(#evorix-canvas) {
  position: relative;
  z-index: 1;
}

.hero .content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  pointer-events: none;
  /* Let clicks pass through container to canvas if needed, but text needs selection */
}

.hero .content>* {
  pointer-events: auto;
  /* Re-enable pointer events for content elements */
}

/* System Boot Animation */
@keyframes bootUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: -2px;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
    filter: blur(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bootUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  /* Start invisible */
  animation-delay: 0.2s;
  text-align: center;
  line-height: 1.1;
}

/* Cada línea del H1 */
.hero-title .hero-line {
  display: block;
}

/* Primera línea: limpia */
.hero-title .hero-line-main {
  font-weight: 700;
}

/* Segunda línea: estilo subtítulo de video, muy sutil */
.hero-title .hero-line-accent {
  font-weight: 800;
  padding: 0.2rem 0.9rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  display: inline-block;
  background: rgba(2, 35, 80, 0.72);
  box-shadow: 0 0 22px rgba(35, 161, 255, 0.45);
  backdrop-filter: blur(8px);
}

/* Versión móvil: que no se vea aplastado */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(4rem, 10vh, 6rem);
    padding-bottom: 3rem;
  }

  .hero .content {
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }

  .hero-sub {
    margin-bottom: 1.5rem;
  }

  .hero-title .hero-line-accent {
    padding: 0.15rem 0.75rem;
    margin-top: 0.25rem;
    box-shadow: 0 0 16px rgba(35, 161, 255, 0.35);
  }
}

.hero-title.hero-pulse .hero-line-accent {
  animation: hero-accent-pulse 1.1s ease-in-out;
}

@keyframes hero-accent-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 18px rgba(35, 161, 255, 0.4);
  }

  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 26px rgba(35, 161, 255, 0.75);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 18px rgba(35, 161, 255, 0.4);
  }
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  animation: bootUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero .ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  animation: bootUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  animation-delay: 1s;
}

/* =========================================
   5. SERVICES GRID
   ========================================= */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.2rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-list {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-list li::before {
  content: '\2022';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.badge {
  font-size: 0.85rem;
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-arrow::after {
  content: '\2192';
  transition: transform 0.2s;
}

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

/* =========================================
   6. ECOSYSTEM DASHBOARD
   ========================================= */
#ecosistema {
  background: transparent !important;
  background-color: transparent !important;
}

.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.dash-module {
  background: var(--bg);
  /* Slightly darker on alt section */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.section.alt .dash-module {
  background: var(--bg);
}

/* EVOAPP - Main Feature */
.evoapp {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  border-color: var(--primary-glow);
  background: radial-gradient(circle at top, rgba(0, 102, 255, 0.05), transparent 70%), var(--bg);
}

@media (min-width: 900px) {
  .evoapp {
    grid-column: span 6;
    grid-row: span 2;
    text-align: left;
    align-items: flex-start;
  }
}

.module-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 8px var(--text-muted);
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.module-visual {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin: 20px 0;
  position: relative;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Mini Canvas for Tools Module */
.btn-full {
  display: inline-flex;
  justify-content: center;
  width: auto;
  margin: 1.25rem auto 0;
  /* top, auto left/right */
  min-width: 200px;
  /* Optional better touch target */
}

.module-mini-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
  margin: 0.75rem 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.06),
      rgba(0, 0, 0, 0.2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: box-shadow 0.3s ease;
}

.evoapp-mini-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .module-mini-canvas-wrapper {
    height: 100px;
  }
}

.dash-module.tools:hover .module-mini-canvas-wrapper {
  box-shadow: 0 0 22px rgba(0, 132, 255, 0.45);
}

.ui-mockup {
  width: 80%;
  height: 80%;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 10px;
}

.ui-bar {
  height: 8px;
  width: 40%;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}

.ui-content {
  height: 60%;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

/* EVOAPP Terminal Animation */
.evoapp-terminal {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  /* Darker surface */
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.evoapp-terminal:hover {
  box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
}

.terminal-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red {
  background: #FF5F56;
}

.terminal-dot.yellow {
  background: #FFBD2E;
}

.terminal-dot.green {
  background: #27C93F;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  opacity: 0.7;
}

.terminal-body {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  /* JS will handle scroll */
  position: relative;
}

.terminal-code {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  /* Fallback */
  font-size: 0.75rem;
  line-height: 1.4;
  color: #4ADE80;
  /* Soft green */
  white-space: pre-wrap;
  word-break: break-all;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
}

.terminal-code::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Blinking Cursor */
.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: #4ADE80;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Status Dot Pulse */
.status-dot.active {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.full-width {
  width: 100%;
  margin-top: auto;
}

/* Tools & Lab */
.tools {
  grid-column: span 12;
}

.lab {
  grid-column: span 12;
}

@media (min-width: 600px) {
  .tools {
    grid-column: span 6;
  }

  .lab {
    grid-column: span 6;
  }
}

@media (min-width: 900px) {
  .tools {
    grid-column: span 6;
  }

  .lab {
    grid-column: span 6;
  }
}

.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tech-stack li {
  font-size: 0.75rem;
  background: var(--surface-hover);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.data-viz-placeholder {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 20px;
}

.data-viz-placeholder .bar {
  flex: 1;
  background: var(--primary);
  opacity: 0.7;
  border-radius: 4px 4px 0 0;
}

/* =========================================
   7. TESTIMONIALS (UPGRADE: Referencias – testimonial avatars + motion)
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;

  /* Initial State for Animation */
  opacity: 0;
  transform: translateY(12px);
}

.testimonial-card.in-view {
  animation: fadeSlideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered delays handled in JS or via nth-child if static */
.testimonial-card:nth-child(1).in-view {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2).in-view {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3).in-view {
  animation-delay: 0.3s;
}

/* Optional Floating Effect after reveal */
/* Logic handled via JS adding .floating class */

.testimonial-card.floating {
  animation: float 10s ease-in-out infinite;
}

.testimonial-card:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--surface-hover), var(--border));
  flex-shrink: 0;
  /* Placeholder styling */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Optional: Add a generic user icon if empty */
.testimonial-avatar::after {
  content: '';
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.client-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* Animations */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* =========================================
   8. SKILLS & ABOUT
   ========================================= */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: 0.3s;
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 102, 255, 0.05);
}

/* Skills CTA */
.skills-cta {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-wide {
  min-width: 280px;
  padding: 16px 32px;
  font-size: 1.1rem;
}

.skills-cta-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 500px;
}

@media (max-width: 600px) {
  .btn-wide {
    width: 100%;
  }
}

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

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

/* Desktop version */
.about-desktop {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
}

/* Mobile version hidden by default */
.about-mobile {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  max-width: 90%;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .about-desktop {
    display: none;
  }

  .about-mobile {
    display: block;
  }
}

.avatar-placeholder {
  width: 260px;
  height: 260px;
  background: rgba(9, 16, 32, 0.85);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;



}

/* =========================================
   9. CONTACT
   ========================================= */
.contact-section,
#contacto {
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  max-width: 600px;
  text-align: center;
}

.contact-form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.method-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.method-link:hover {
  color: var(--primary);
}

/* =========================================
   10. FOOTER
   ========================================= */
/* =========================================
   12. REORDERING ADJUSTMENTS
   ========================================= */
#sobre-mi {
  padding-top: 40px;
  /* Reduced from default 100px to feel like continuation of hero */
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================================
   11. ANIMATIONS (ADDED)
   ========================================= */
.skill-tag {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, color 0.3s, background 0.3s;
}

.skill-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-hidden {
  visibility: hidden;
}

/* One-time Pulse Animation */
@keyframes pulse-once {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

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

.pulse-once {
  animation: pulse-once 0.4s ease-out forwards;
}

.skills-cta-text {
  min-height: 1.5em;
  /* Reserve space for typewriter */
}

/* =========================================
   5. SERVICES LAYOUT (Redesign)
   ========================================= */
/* REBUILT: Servicios Profesionales – mobile-first minimal layout */

/* Container adjustments for mobile */
#servicios .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  /* Ensure container doesn't overflow on small screens */
  width: 100%;
  max-width: 1200px;
  /* Restore max-width but allow full width below */
}

@media (max-width: 480px) {
  #servicios .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 100%;
  }
}

/* Layout Wrapper */
/* SERVICES LAYOUT & SCROLL - REFACTORED (Mobile First) */
.services-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.services-tabs-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 20;
  width: 100%;
}

/* Scroll Hint (Gradient) */
.services-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 30px;
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
}

.services-selector {
  width: 100%;
}

.services-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  /* Visual scrollbar for hint */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.services-list::-webkit-scrollbar {
  height: 4px;
}

.services-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

@media (min-width: 769px) {
  .services-layout {

    align-items: flex-start;
    gap: 3rem;
  }

  .services-tabs-wrapper {
    position: static;
    width: auto;
  }

  .services-tabs-wrapper::after {
    display: none;
  }

  .services-selector {
    width: 300px;
    flex-shrink: 0;
  }

  .services-list {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* Service Pill (Tab Button) */
.service-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border-hover);
}

.service-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tablet/Desktop Underline Animation */
.service-pill.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
  opacity: 0.5;
}

.service-pill.active.animate-underline::after {
  width: 100%;
}















/* Detail Panel */
.service-detail-panel {
  flex-grow: 1;
  background: rgba(15, 23, 42, 0.7);
  /* More transparent for glass effect */
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  /* Rounded container */
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  /* Ensure height */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="light"] .service-detail-panel {
  background: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
  .service-detail-panel {
    padding: 2.5rem;
  }
}

/* Panel Content */
.panel-content {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.panel-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.panel-content.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.panel-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .panel-header h3 {
    font-size: 2rem;
  }
}

.panel-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Bullets */
.panel-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.panel-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.panel-bullets li::before {
  content: '→';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  top: 2px;
}

/* Footer & Price */
.panel-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

@media (min-width: 600px) {
  .panel-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.price-tag {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

/* Global #panel-cta removed */





















































/* Global .panel-subtitle, .panel-actions, .btn-secondary removed */

/* Redesign Mobile Layout (Tabs) */
@media (max-width: 768px) {
  #servicios .container {
    padding-inline: 1.25rem;
  }

  .services-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .services-list {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 0.25rem;
    scrollbar-width: thin;
    /* Ensure pills don't wrap and have minimum width behavior */
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0px;
    /* Override any bottom margin from selector */
  }

  /* Ensure the wrapper allows scrolling if needed */
  .services-selector {
    width: 100%;
    overflow: visible;
    /* Let the list handle overflow */
  }

  .service-pill {
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: max-content;
  }

  .service-detail-panel {
    width: 100%;
    margin-top: 0.5rem;
  }

  .panel-header h3 {
    font-size: 1.35rem;
    text-align: left;
  }

  .panel-intro {
    font-size: 1rem;
    max-width: 100%;
  }

  .panel-bullets li {
    font-size: 0.95rem;
  }
}

/* =========================================
   8. RECOGNITIONS (Redesign)
   ========================================= */
.recognitions-section {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: transparent !important;
  /* Force transparent as requested */
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

/* Summary (New Layout) */
.recognitions-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.recognitions-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
}

.recognitions-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 120px;
  line-height: 1.3;
}

.recognitions-cta {
  margin-top: 10px;
}

/* =========================================
   CLEANED RECOGNITIONS SECTION (Desktop/Mobile Split)
   ========================================= */

/* Base styles – common for both */
.recognitions-section .recognition-card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  /* Comfortable padding */
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: visible;
  /* Default to visible */
}

.recognitions-section .recognition-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.recognitions-section .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
}

.recognitions-section .accordion-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  transition: color 0.3s ease;
}

.recognitions-section .recognition-card:hover h3,
.recognitions-section .recognition-card.is-open h3 {
  color: var(--primary);
}

.recognitions-section .accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.4s ease;
}

.recognitions-section .accordion-icon::before,
.recognitions-section .accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-muted);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.recognitions-section .accordion-icon::before {
  width: 12px;
  height: 2px;
}

.recognitions-section .accordion-icon::after {
  width: 2px;
  height: 12px;
}

.recognitions-section .recognition-card.is-open .accordion-icon {
  transform: rotate(180deg);
}

.recognitions-section .recognition-card.is-open .accordion-icon::after {
  height: 0;
  /* Turn into minus */
}

/* Base content styles - list styling */
.recognitions-section .accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recognitions-section .accordion-content li {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.recognitions-section .accordion-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  top: -2px;
}

/* Mobile – true accordion */
@media (max-width: 768px) {
  .recognitions-section .recognitions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .recognitions-section .recognition-card {
    padding: 1rem 1.5rem;
    /* Slightly compact on mobile */
  }

  .recognitions-section .accordion-content {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  }

  .recognitions-section .recognition-card.is-open .accordion-content {
    display: block;
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
}

/* Desktop – all content visible, no collapse */
@media (min-width: 769px) {
  .recognitions-section .recognitions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .recognitions-section .accordion-content {
    display: block;
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .recognitions-section .accordion-icon {
    display: none;
    /* Hide toggle icon on desktop */
  }

  .recognitions-section .accordion-header {
    cursor: default;
    /* No pointer cursor on desktop */
  }
}

/* =========================================
   5. SERVICES SECTION (Redesign)
   ========================================= */
/* DUPLICATE SERVICE BLOCK REMOVED */

/* =========================================
   10. NEW CONTACT SECTION (Refactored)
   ========================================= */
.contact-section,
#contacto {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  min-height: auto;
}

.contact-container {
  max-width: 960px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

/* Grid Layout */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  max-width: 100%;
  margin: 0 auto;
}

/* Mobile contact grid overrides are now in the bottom consolidated block */


/* Tablet/Desktop overrides are now in the bottom block */



/* Contact Card */
.contact-card {
  transform: scale(0.5);
  transform-origin: center center;
  margin: 0 1rem !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card:hover .contact-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.contact-card:hover .contact-action {
  color: var(--primary);
}

/* Icon */
.contact-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Text */
.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-action {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}




/* =========================================
   13. RESPONSIVE OVERRIDES
   ========================================= */

/* DUPLICATE OVERRIDES REMOVED */

/* 8. Global Safety */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

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

canvas {
  max-width: 100vw;
}



/* =========================================
   15. MOBILE CONTACT OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {

  /* 1. SECTION COMPACTNESS */
  .contact-section {
    padding-block: 3.5rem;
  }

  .contact-container {
    padding-inline: 1.5rem;
  }

  .contact-header {
    margin-bottom: 1.5rem;
  }

  .contact-header h2 {
    font-size: 1.7rem;
    max-width: 95%;
    margin-inline: auto;
    line-height: 1.2;
  }

  /* 2. DYNAMIC GRID (2 + 1) */
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    /* Tight gap */
    max-width: 100%;
    padding-bottom: 10px;
    /* Space for hover lift */
  }

  /* 3. CARD & ANIMATION */
  .contact-card {
    /* Layout: 2 per row logic (50% - half gap) */
    flex: 0 0 calc(50% - 8px);
    width: auto;
    max-width: calc(50% - 8px);

    /* Visuals */
    background: var(--surface);
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;

    margin: 0 !important;
    min-width: 135px;
    /* Ensure prominence */

    /* Animation Base */
    transform: translateY(0) rotate(0deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.25s ease,
      border-color 0.25s ease,
      background-color 0.2s ease;
  }

  /* 4. INTERACTION (Touch/Hover) */
  .contact-card:active,
  .contact-card:focus-visible,
  .contact-card:hover {
    transform: translateY(-4px) rotate(-1.5deg);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: var(--surface-hover);
    z-index: 5;
  }

  /* 5. ICON & TEXT */
  .contact-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .contact-action {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
  }
}

/* =========================================
   15b. DESKTOP CONTACT OPTIMIZATIONS (>=1024px)
   ========================================= */
@media (min-width: 1024px) {

  /* 1. LAYOUT & SPACING */
  .contact-section {
    padding: 5rem 0 6rem;
    /* Vertical breathing room */
    min-height: auto;
  }

  /* 2. SINGLE ROW LAYOUT */
  .contact-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    /* Force single row */
    gap: 2.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 0;
    /* Space for hover */
  }

  /* 3. CARD STYLE */
  .contact-card {
    /* Dimensions: Big & Prominent */
    flex: 0 1 auto;
    width: 260px;
    min-width: 240px;

    /* Layout Reset */
    margin: 0 !important;

    /* Visuals */
    padding: 2.2rem 1.5rem;

    /* Transform Reset (Fixes base scale if any) */
    transform: translateY(0) rotate(0deg);

    /* Transitions */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.3s ease,
      border-color 0.3s ease;
  }

  /* 4. CONTENT SCALING */
  .contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
  }

  .contact-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .contact-action {
    font-size: 1rem;
    font-weight: 500;
  }

  /* 5. INTERACTION (Hover) */
  .contact-card:hover,
  .contact-card:focus-visible {
    transform: translateY(-8px) rotate(-2deg);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
  }
}

/* =========================================
   16. TOUR ANIMATIONS
   ========================================= */
body.tour-active {
  overflow: hidden;
}

.tour-highlight {
  position: relative;
  z-index: 100;
}

.tour-highlight::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  background: var(--primary-glow);
  filter: blur(20px);
  opacity: 0;
  border-radius: var(--radius-md);
  z-index: -1;
  animation: tour-pulse 1s ease-out forwards;
}

@keyframes tour-pulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* 
.tour-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px var(--primary);
  animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
  }
}
*/

/* (Bug fixes consolidated below) */

/* SCROLL: Servicios Profesionales tabs - CSS-only horizontal scroll */
@media (max-width: 768px) {
  .services-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .services-list::-webkit-scrollbar {
    display: none;
  }

  .service-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* =========================================
   18. LABORATORIO IA VISUAL ANIMATION
   ========================================= */
.lab-ia-visual {
  width: 100%;
  height: 160px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.lab-servers {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 60%;
  z-index: 2;
}

.server {
  width: 14px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 2px;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.server:nth-child(2) {
  height: 80%;
}

.server:nth-child(3) {
  height: 90%;
}

.server span {
  width: 100%;
  height: 2px;
  background: var(--success);
  opacity: 0.3;
  border-radius: 1px;
  animation: blink-led 2s infinite;
}

.server span:nth-child(2) {
  animation-delay: 0.5s;
}

.server span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes blink-led {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 4px var(--success);
  }
}

.lab-network {
  flex-grow: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  z-index: 2;
}

.network-svg {
  width: 100%;
  height: 100%;
  max-width: 200px;
  overflow: visible;
}

.network-svg line {
  stroke: var(--primary);
  stroke-width: 1;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.network-svg circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
  transition: all 0.3s;
}

.network-svg circle:nth-child(6) {
  animation: pulse-node 3s infinite;
}

/* First node */
.network-svg circle:nth-child(8) {
  animation: pulse-node 3s infinite 1s;
}

/* Third node */
.network-svg circle:nth-child(10) {
  animation: pulse-node 3s infinite 2s;
}

/* Last node */

@keyframes pulse-node {

  0%,
  100% {
    stroke: var(--accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 0 transparent);
  }

  50% {
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px var(--accent));
  }
}

.lab-streams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.stream {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  width: 60px;
  opacity: 0;
  border-radius: 2px;
}

.stream:nth-child(1) {
  top: 30%;
  left: 10%;
  animation: data-flow 4s linear infinite;
}

.stream:nth-child(2) {
  bottom: 30%;
  left: 20%;
  animation: data-flow 5s linear infinite 1.5s;
}

.stream:nth-child(3) {
  top: 60%;
  left: 0%;
  animation: data-flow 6s linear infinite 0.5s;
}

@keyframes data-flow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateX(300px);
    opacity: 0;
  }
}

/* Hover Effects */
.lab-ia-visual:hover {
  border-color: var(--primary-glow);
  box-shadow: inset 0 0 30px rgba(0, 102, 255, 0.1);
}

.lab-ia-visual:hover .server span {
  animation-duration: 0.5s;
}

.lab-ia-visual:hover .network-svg circle {
  animation-duration: 1s;
  stroke: var(--primary);
}

.lab-ia-visual:hover .stream {
  animation-duration: 2s;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .server span,
  .network-svg circle,
  .stream {
    animation: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .lab-ia-visual {
    height: 140px;
    padding: 0 12px;
  }

  .server {
    width: 12px;
  }

  .network-svg {
    max-width: 140px;
  }
}

/* === Referencias (Testimonials Carousel) === */
/* (Legacy mobile services block removed) */

/* =========================================
   CONSOLIDATED MOBILE & RESPONSIVE QUERIES
   ========================================= */

/* 1. Small Screens (<= 480px) */
@media (max-width: 480px) {

  /* Hero Typography & Spacing */
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.5rem);
    /* Stable clamp */
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero .ctas {
    width: 100%;
    gap: 12px;
  }

  .hero .btn {
    width: 100%;
  }

  /* Contact: 1 column */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Lab IA */
  .lab-ia-visual {
    height: 120px;
    padding: 0 8px;
  }
}

/* 2. Phones and Small Tablets (<= 768px) */
@media (max-width: 768px) {

  /* Global Sizing */
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding-inline: 1.25rem;
  }

  /* Header & Navigation */
  .evorix-header {
    padding: 0.5rem 1rem;
    backdrop-filter: blur(16px);
  }

  .evorix-nav {
    gap: 0.75rem;
    /* Tap friendly gap */
  }

  .nav-icon {
    width: 44px;
    /* Min 44px tap target enforced */
    height: 44px;
  }

  /* Feature: Hide desktop components or adjust */
  .desktop-menu {
    display: none;
  }

  .btn-contact-cta span {
    display: none;
  }

  .btn-contact-cta {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  /* About Section */
  .about-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .about-text {
    text-align: left;
    /* Explicit */
  }

  .avatar-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  /* Ecosistema / Dashboard */
  .dash-module {
    grid-column: span 12 !important;
    min-height: auto;
  }

  .evoapp-terminal {
    max-height: 300px;
    overflow-y: auto;
  }

  /* Reconocimientos / Accordion */
  .recognitions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .accordion-header {
    min-height: 48px;
    /* Tap friendly */
    padding-block: 0.5rem;
  }

  /* Referencias / Testimonials */
  .references-viewport {
    width: 100vw;
    margin-left: -1.25rem;
    /* Breakout */
    padding-inline: 1.25rem;
    scroll-padding-left: 1.25rem;
  }

  .reference-card {
    scroll-snap-align: start;
    /* Fix first card visibility */
    min-width: min(85vw, 320px);
    max-width: min(85vw, 320px);
    margin-right: 0;
  }

  /* Contact */
  .contact-section {
    padding-block: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-card {
    min-height: 120px;
    padding: 1.5rem 1rem;
  }

  .contact-card:nth-last-child(1):nth-child(odd) {
    grid-column: span 2;
  }
}

/* 3. Tablets and Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .dash-module {
    grid-column: span 6;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4. Large Screens (>= 1025px) */
@media (min-width: 1025px) {
  /* Optimizations for wide screens */
}

/* Centrado del título de Referencias */
#referencias .section-title {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}



@media (max-width: 768px) {

  /* 2. Hide Contact Button (Keep only Theme Toggle) */
  .evorix-header-actions .btn-contact-cta {
    display: none;
  }

  /* 3. Adjust Header Actions Container */
  .evorix-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  /* 4. Theme Toggle Compact Style (Mobile Specific) */
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: inherit;
    padding: 0;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
  }
}



.recognition-card .accordion-content {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease;
}

/* Estado abierto: mostrar texto SIEMPRE */
.recognition-card.is-open .accordion-content {
  display: block;
  max-height: 999px;
  /* suficiente para todo el texto */
  opacity: 1;
}

/* Aseguramos color legible del texto */
.recognition-card .accordion-content,
.recognition-card .accordion-content p,
.recognition-card .accordion-content li {
  color: var(--text-primary, #e5f0ff);
}

/* ===== EVORIX FIX: Terminal estable (no empuja el layout) ===== */

.evoapp-terminal {
  height: 260px;
  /* Ajusta según lo que te guste visualmente */
  overflow: hidden;
  position: relative;
}

.terminal-body {
  height: 100%;
  overflow: hidden;
}

.terminal-code {
  height: 100%;
  overflow-y: auto;
  /* Scroll interno */
  overscroll-behavior: contain;
}

/* ===== EVORIX FIX: Centrar encabezado Sobre mí en móvil ===== */

@media (max-width: 768px) {
  #sobre-mi .about-text {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #sobre-mi .about-text h2 {
    width: 100%;
    text-align: center !important;
    margin-left: 0;
    margin-right: 0;
  }

  #sobre-mi .about-text p {
    text-align: center !important;
  }
}

/* EVORIX – Centrado de cabecera en Formación y Reconocimientos */
#reconocimientos .container {
  text-align: center;
}

#reconocimientos h2,
#reconocimientos .section-subtitle {
  width: 100%;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}


/* ===== EVORIX: Reconocimientos – Desktop vs Mobile ===== */

/* Mobile: acordeón */
@media (max-width: 768px) {
  .recognitions-section .recognition-card .accordion-content {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.25s ease,
      opacity 0.25s ease;
  }

  .recognitions-section .recognition-card.is-open .accordion-content {
    display: block;
    max-height: 999px;
    opacity: 1;
  }
}

/* Desktop: contenido siempre visible, sin acordeón real */
@media (min-width: 769px) {
  .recognitions-section .recognition-card .accordion-content {
    display: block;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
}

/* ===== EVORIX: References / Testimonials Desktop Layout ===== */
@media (min-width: 900px) {
  .references-viewport {
    width: 100%;
    margin: 0 auto;
    overflow-x: visible;
    /* No scroll */
    text-align: center;
    /* helps but grid does real work */
    scroll-snap-type: none;
    /* disable snap */
    display: block;
    /* Ensure it's not flex if it was */
  }

  .references-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 2rem 0;
  }

  .reference-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    scroll-snap-align: none;
  }
}

/* =========================================
   LIGHT MODE CONTRAST FIXES
   ========================================= */

html[data-theme="light"] .service-detail-panel .panel-header h3#panel-title,
html[data-theme="light"] .service-detail-panel .panel-intro,
html[data-theme="light"] .service-detail-panel .panel-bullets li,
html[data-theme="light"] .service-detail-panel .price-tag .price-label,
html[data-theme="light"] .service-detail-panel .price-tag .price-value,
html[data-theme="light"] #servicios .section-header h2,
html[data-theme="light"] #servicios .section-header p,
html[data-theme="light"] #reconocimientos .recognition-card .accordion-header,
html[data-theme="light"] #reconocimientos .recognition-card .accordion-content li {
  color: var(--text-strong);
  opacity: 1;
}

html[data-theme="light"] .service-pill {
  color: var(--text-soft);
}


html[data-theme="light"] .service-pill.active {
  color: #ffffff;
}

/* =========================================
   Z-INDEX FIXES (Header above Canvas)
   ========================================= */
.evorix-header,
.evorix-nav,
.mobile-menu-btn {
  position: relative;
  z-index: 9999;
}

/* Ensure sticky header keeps its context */
.evorix-header {
  position: sticky;
}


/* =========================== */
/* FIX: Light Mode - Panel Titles */
/* =========================== */

html[data-theme="light"] .service-detail-panel .panel-header h3,
html[data-theme="light"] #panel-title {
  color: #0f172a !important;
  /* Negro suave profesional */
}

/* Intro text */
html[data-theme="light"] .service-detail-panel .panel-header .panel-intro {
  color: #334155 !important;
}

/* Bullets */
html[data-theme="light"] .service-detail-panel .panel-bullets li {
  color: #334155 !important;
}

/* Prices */
html[data-theme="light"] .service-detail-panel .price-tag .price-label,
html[data-theme="light"] .service-detail-panel .price-tag .price-value {
  color: #0f172a !important;
}


/* FIX DEFINITIVO: Panel Services – Light Mode */
html[data-theme="light"] h3#panel-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .service-detail-panel .panel-header .panel-intro,
html[data-theme="light"] .service-detail-panel .panel-bullets li {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  text-shadow: none !important;
}

/* =========================================
   HERO ENHANCEMENTS & TOUR BUTTON
   ========================================= */
.hero .btn.btn-primary.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6dff, #23a1ff);
  box-shadow: 0 0 25px rgba(35, 161, 255, 0.45);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  animation: btn-breath 3.6s ease-in-out infinite;
}

.hero .btn.btn-primary.btn-glow:hover,
.hero .btn.btn-primary.btn-glow:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(35, 161, 255, 0.65);
}

@keyframes btn-breath {
  0% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(35, 161, 255, 0.40);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(35, 161, 255, 0.70);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(35, 161, 255, 0.40);
  }
}

.hero .btn-helper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}



/* Fix texto "Sobre mí" en tema claro y oscuro */
.about-layout h3,
.about-layout p {
  color: var(--text-main);
  /* buen contraste en fondo claro */
}

/* Ajuste específico para modo oscuro */
html[data-theme="dark"] .about-layout h3,
html[data-theme="dark"] .about-layout p {
  color: var(--text-on-surface, #e5e7eb);
  /* o el token que uses para texto en oscuro */
}

/* =========================================
   FIX: Logo visibility in LIGHT MODE
   ========================================= */
html[data-theme="light"] .evorix-logo {
  color: #0F172A !important;
}


/* FIX DEFINITIVO: Panel Services – Light Mode */
html[data-theme="light"] h3#panel-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .service-detail-panel .panel-header .panel-intro,
html[data-theme="light"] .service-detail-panel .panel-bullets li {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  text-shadow: none !important;
}

/* =========================================
   HERO ENHANCEMENTS & TOUR BUTTON
   ========================================= */
.hero .btn.btn-primary.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6dff, #23a1ff);
  box-shadow: 0 0 25px rgba(35, 161, 255, 0.45);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  animation: btn-breath 3.6s ease-in-out infinite;
}

.hero .btn.btn-primary.btn-glow:hover,
.hero .btn.btn-primary.btn-glow:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(35, 161, 255, 0.65);
}

@keyframes btn-breath {
  0% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(35, 161, 255, 0.40);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(35, 161, 255, 0.70);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(35, 161, 255, 0.40);
  }
}

.hero .btn-helper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}



/* Fix texto "Sobre mí" en tema claro y oscuro */
.about-layout h3,
.about-layout p {
  color: var(--text-main);
  /* buen contraste en fondo claro */
}

/* Ajuste específico para modo oscuro */
html[data-theme="dark"] .about-layout h3,
html[data-theme="dark"] .about-layout p {
  color: var(--text-on-surface, #e5e7eb);
  /* o el token que uses para texto en oscuro */
}

/* =========================================
   FINAL LOGO VISIBILITY FIX (LIGHT MODE)
   ========================================= */
html[data-theme="light"] .evorix-logo {
  color: #0F172A !important;
  /* texto oscuro legible */
  text-shadow: none !important;
  /* sin halo blanco */
}

/* =========================================
   EVORIX TOOLS PAGE SPECIFIC
   ========================================= */
body.evorix-tools-page #inicio .hero-title {
  transform: scale(0.95) translateY(20px);
  animation: heroTitlePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

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

body.evorix-tools-page #herramientas .dash-module {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.evorix-tools-page #herramientas .dash-module.is-visible,
body.evorix-tools-page #herramientas .dash-module.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.evorix-tools-page #herramientas {
  background: transparent !important;
  backdrop-filter: none !important;
  border-top: none !important;
  border-bottom: none !important;
}


/* Staggered entry for tools page */
body.evorix-tools-page #herramientas .delay-1 {
  transition-delay: 0.1s;
}

body.evorix-tools-page #herramientas .delay-2 {
  transition-delay: 0.25s;
}

body.evorix-tools-page #herramientas .delay-3 {
  transition-delay: 0.4s;
}

body.evorix-tools-page #herramientas .delay-4 {
  transition-delay: 0.55s;
}

/* =========================================
   SIMPLIFIED EVORIX TOOLS CARD (Grid Consistent)
   ========================================= */

/* Ensure grid alignment with other modules */
.grid-dashboard .dash-module {
  min-height: 260px;
  /* Ensure uniform height for all modules including Tools */
  display: flex;
  flex-direction: column;
}

/* EVORIX Tools Specifics - Subtle Distinction Only */
a.dash-module.tools {
  text-decoration: none;
  cursor: pointer;
  color: inherit;

  /* Subtle distinction from normal modules */
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: 0 12px 35px rgba(0, 102, 255, 0.28);
}

/* Simplify internal layout to match standard modules */
a.dash-module.tools .module-header {
  margin-bottom: 1rem;
  /* Standard spacing */
}

a.dash-module.tools p {
  margin-bottom: auto;
  /* Push content down like other modules */
  opacity: 0.9;
}

/* Button Styling - Simple & Full width on mobile */
.dash-module.tools .btn.btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .dash-module.tools .btn.btn-primary {
    width: auto;
    /* Auto width on desktop */
  }
}

/* Desktop Hover Interaction - Clean & Simple */
@media (min-width: 1024px) {
  a.dash-module.tools {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  a.dash-module.tools:hover {
    transform: translateY(-4px);
    /* Subtle lift */
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.35);
    border-color: rgba(0, 102, 255, 0.8);
    z-index: 5;
  }
}

/* Mobile Interaction */
@media (max-width: 768px) {
  a.dash-module.tools:active {
    transform: scale(0.98);
  }
}

/* Status Dot Pulse */
.dash-module.tools .status-dot {
  animation: toolPulse 2s infinite;
  background: var(--primary);
  box-shadow: 0 0 0 rgba(0, 102, 255, 0.7);
}

@keyframes toolPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 102, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }
}

/* Utility for tech-stack links (keep for other areas) */
.tech-stack li a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}










/* ===== Tarjeta 1 de evotools para visor xml ===== */
.dash-module {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* Tema claro */
html[data-theme="light"] .dash-module {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.20);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
}

/* Hover sutil, sin payasadas */
.dash-module:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.55);
  border-color: rgba(56, 189, 248, 0.45);
}

/* ===== Header de la tarjeta ===== */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Puntito de estado */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.status-dot.active {
  animation: status-pulse 1.6s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===== Texto descriptivo ===== */
#visor-cfdi p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* ===== Tech stack estilo chips ===== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 2px;
  padding: 0;
  list-style: none;
}

.tech-stack li {
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Tema claro para los chips */
html[data-theme="light"] .tech-stack li {
  border-color: rgba(148, 163, 184, 0.6);
}

/* ===== Botón Visor CFDI ===== */
.module-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;

  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284ff, #00c4ff);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.55);
  border: none;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.module-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.75);
  filter: brightness(1.05);
}

.module-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.65);
}

/* Opcional: iconito a la izquierda si luego le metes un SVG */
.module-btn svg {
  width: 16px;
  height: 16px;
}











/* ================================
   TARJETA 5 – EVO Tools (Avatar)
   Mejora de tamaño + soporte global
   ================================ */

/* Header con avatar lateral */
.module-header--with-avatar {
  align-items: center;
  gap: 14px;
  /* Un poco más de respiro visual */
}

/* Contenedor del avatar (universal para todas las tarjetas) */
.module-avatar {
  flex-shrink: 0;

  /* Tamaño optimizado */
  width: 64px;
  /* Antes 52px */
  height: 64px;

  border-radius: 999px;
  overflow: hidden;

  /* Glow estándar (sin tocar colores originales) */
  background: radial-gradient(circle at 30% 20%, #4ade80, #16a34a);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.55);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover suave y elegante */
.module-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.65);
}

/* Imagen dentro del avatar */
.module-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Título y subtítulo alineados */
.module-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.module-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.module-subtitle {
  font-size: 0.80rem;
  opacity: 0.85;
}

/* Ajuste en tema claro */
html[data-theme="light"] .module-avatar {
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.35);
}

/* =========================================
   CERTCV PAGE – Carrusel de certificaciones
   ========================================= */

.certcv-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certcv-wrapper {
  /* Inherits .section logic */
}

.certcv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .certcv-layout {
    grid-template-columns: minmax(300px, 1.2fr) minmax(0, 2fr);
    gap: 4rem;
  }
}

/* --- Center Text Block --- */
.certcv-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

@media (min-width: 900px) {
  .certcv-center {
    align-items: flex-start;
    text-align: left;
  }
}

.certcv-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.certcv-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 38rem;
}

/* --- Button --- */
.certcv-more-btn {
  /* Extends .btn styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.certcv-more-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
  color: var(--primary);
}

/* --- Marquee Container --- */
.certcv-marquee {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  /* Mask fade effect on edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);

  /* Update for rows */
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.certcv-row {
  overflow: hidden;
  width: 100%;
}

.certcv-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

/* Animation Top */
.certcv-track--top {
  animation: certcv-slide-1 40s linear infinite;
}

/* Animation Bottom (Reverse & slower) */
.certcv-track--bottom {
  animation: certcv-slide-2 55s linear infinite reverse;
}

/* Pause on hover per row */
.certcv-row:hover .certcv-track {
  animation-play-state: paused;
}

@keyframes certcv-slide-1 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes certcv-slide-2 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .certcv-marquee {
    gap: 1.25rem;
  }

  .certcv-track--top {
    animation-duration: 50s;
  }

  .certcv-track--bottom {
    animation-duration: 65s;
  }
}

/* --- Cards --- */
.cert-card {
  min-width: 280px;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Top aligned */
  gap: 1rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  /* Allow text wrap inside card */
  position: relative;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  z-index: 5;
}

/* --- Tag --- */
.cert-tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Light Mode Adjustment for Tag */
html[data-theme="light"] .cert-tag {
  background: rgba(0, 85, 212, 0.08);
  color: var(--primary);
  border-color: rgba(0, 85, 212, 0.15);
}

/* Typography inside Card */
.cert-card h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.cert-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}



/* Corrección de alineación para las tarjetas de reconocimiento */
.recognitions-section .recognition-card,
.recognitions-section .accordion-content,
.recognitions-section .accordion-content ul li {
  text-align: left !important;
}

/* Ajustar el título también a la izquierda */
.recognitions-section .accordion-header h3 {
  text-align: left !important;
}











/* === EVORIX: Fix header transparency on LIGHT theme === */

/* Header base: deja el fondo transparente siempre */
.evorix-header {
  background: transparent !important;
}

/* Tema claro: que NO meta fondo sólido ni gradientes */
html[data-theme="light"] .evorix-header,
html[data-theme="light"] .evorix-header.header--hero,
html[data-theme="light"] .evorix-header::before {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* === EVORIX: Fix header transparency on LIGHT theme === */

/* Header base: deja el fondo transparente siempre */
.evorix-header {
  background: transparent !important;
  backdrop-filter: none !important;
  /* <- sin blur globalmente */
}

/* Tema claro: que NO meta fondo sólido ni gradientes */
html[data-theme="light"] .evorix-header,
html[data-theme="light"] .evorix-header.header--hero,
html[data-theme="light"] .evorix-header::before {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  /* <- apagamos el cristal solo en light */
}

/* =========================================
   SERVICES PANEL — SCOPED FIX
   ========================================= */
#servicios .services-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  /* Fixed width + flexible */
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  #servicios .services-layout {
    grid-template-columns: 1fr;
    /* Stack vertically on tablet/mobile */
  }
}

#servicios .service-detail-panel {
  max-width: 860px;
  /* Limit width on desktop */
  width: 100%;
}

@media (min-width: 901px) {
  #servicios .service-detail-panel {
    /* Ensure it doesn't stretch infinitely if flex is used elsewhere, 
       but here in grid it's fine. 
       Just ensuring it doesn't get too wide if container is huge. */
  }
}

#servicios .panel-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  /* Price (left) - Actions (right) */
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: auto;
  /* Push to bottom if flex column */
}

@media (max-width: 600px) {
  #servicios .panel-footer {
    grid-template-columns: 1fr;
    /* Stack */
    text-align: center;
    gap: 2rem;
  }

  #servicios .price-tag {
    align-items: center;
    /* Center price in stack */
  }
}

/* Scoped Actions */
#servicios .panel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  /* Align right on desktop */
}

@media (max-width: 600px) {
  #servicios .panel-actions {
    flex-direction: column;
    width: 100%;
  }

  #servicios .panel-actions .btn {
    width: 100%;
    /* Full width mobile buttons */
  }
}

/* Scoped Subtitle */
#servicios .panel-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  opacity: 0.9;
}

/* Scoped Secondary Button */
#servicios .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#servicios .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text);
}

html[data-theme="light"] #servicios .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--text);
}












/* =========================================================
   EVORIX — SERVICIOS (SCOPED + MOBILE-FIRST, STABLE)
   Solo afecta: #servicios
   Pegar AL FINAL de styles.css
========================================================= */

#servicios,
#servicios * {
  box-sizing: border-box;
}

/* --- Layout base (mobile first): todo apilado --- */
#servicios .services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Contenedor: evita desbordes raros en móvil */
#servicios .container {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* --- Menú izquierda (en mobile sigue arriba) --- */
#servicios .services-tabs-wrapper,
#servicios .services-selector,
#servicios .services-list {
  width: 100%;
}

#servicios .services-list {
  display: flex;
  flex-direction: column;
  /* CLAVE: evita que se vuelvan fila en móvil */
  gap: 10px;
}

/* Pills: siempre full width y consistentes */
#servicios .service-pill {
  width: 100%;
  max-width: 360px;
  /* control visual */
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* En móvil, centra el bloque de pills (se ve limpio) */
#servicios .services-tabs-wrapper {
  display: flex;
  justify-content: flex-start;
}

/* --- Panel derecho --- */
#servicios .service-detail-panel {
  width: 100%;
  max-width: 860px;
  /* “tarjeta” */
  justify-self: start;
  align-self: start;
  margin: 0;
  flex: none !important;
  /* neutraliza flex viejo */
  flex-grow: 0 !important;
  /* neutraliza flex viejo */
}

/* Footer estable: precio + acciones */
#servicios .panel-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* Acciones: en móvil, stack y full width */
#servicios .panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

#servicios #panel-cta,
#servicios #panel-cta-secondary {
  width: 100% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  /* tap-friendly */
  white-space: nowrap;
}

/* --- Desktop: 2 columnas (menú + tarjeta) --- */
@media (min-width: 900px) {
  #servicios .services-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
  }

  #servicios .services-tabs-wrapper {
    justify-content: flex-start;
  }

  #servicios .service-detail-panel {
    justify-self: start;
  }

  /* Footer en desktop: precio izq, botones der */
  #servicios .panel-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  #servicios .panel-actions {
    display: inline-flex;
    gap: 0.9rem;
    width: auto;
  }

  #servicios #panel-cta,
  #servicios #panel-cta-secondary {
    width: auto !important;
    min-width: 170px;
  }
}