/* css/style.css - GBA Management */
:root{
  /* Core Colors */
  --blue-600:#0A66C2;
  --blue-700:#084c93;
  --blue-50:#e8f1fb;
  --blue-400:#3b8dd8;
  --slate-900:#0F172A;
  --slate-800:#1e293b;
  --slate-700:#334155;
  --slate-500:#64748B;
  --slate-300:#cbd5e1;
  --white:#ffffff;
  --accent-gradient: linear-gradient(135deg, #0A66C2 0%, #2196F3 100%);
  
  /* Glass & Effects */
  --glass: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.35);
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.15);
  --shadow-lg: 0 20px 60px rgba(2, 8, 23, 0.2);
  --radius: 14px;
  --radius-sm:10px;
  --radius-lg:20px;
  
  /* Theme-specific */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fbff;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border-color: #e6eefb;
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Variables */
[data-theme="dark"]{
  --blue-50:#1e3a5f;
  --slate-900:#f8fafc;
  --slate-800:#e2e8f0;
  --slate-700:#cbd5e1;
  --slate-500:#94a3b8;
  --slate-300:#475569;
  --white:#0f172a;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  
  --glass: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0; 
  color:var(--text-primary); 
  background: var(--bg-primary);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dynamic gradient background overlay */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 800px at 10% -10%, var(--blue-50), transparent),
              radial-gradient(800px 600px at 90% 100%, rgba(10,102,194,0.08), transparent);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] body::before{
  background: radial-gradient(1200px 800px at 10% -10%, rgba(10,102,194,0.15), transparent),
              radial-gradient(800px 600px at 90% 100%, rgba(33,150,243,0.1), transparent);
  opacity: 0.4;
}

/* Utilities */
.container{width:min(1200px, 92%); margin-inline:auto}
.section{padding: clamp(2.5rem, 4vw, 4rem) 0}
.muted{color:var(--slate-500)}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:var(--blue-600);color:#fff;padding:.5rem .75rem;border-radius:.5rem}

/* Glassmorphism - Simplificado para mejor rendimiento */
.glass{
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.glass h1, .glass h2, .glass h3, .glass h4, .glass h5, .glass h6{
  color: var(--slate-900);
}
.glass p, .glass li, .glass span{
  color: var(--slate-700);
}
[data-theme="dark"] .glass h1, 
[data-theme="dark"] .glass h2, 
[data-theme="dark"] .glass h3, 
[data-theme="dark"] .glass h4, 
[data-theme="dark"] .glass h5, 
[data-theme="dark"] .glass h6{
  color: var(--text-primary);
}
[data-theme="dark"] .glass p, 
[data-theme="dark"] .glass li, 
[data-theme="dark"] .glass span{
  color: var(--text-secondary);
}
.glass-hero{
  background: rgba(255,255,255,0.48);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-color: rgba(255,255,255,0.55);
}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border-color);
  transition: var(--transition-smooth);
}
[data-theme="dark"] .site-header{
  background:rgba(15,23,42,0.8);
  border-bottom-color: var(--border-color);
}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;transition:transform 0.3s ease}
.brand:hover{transform:scale(1.02)}
.brand-text{font-weight:800;letter-spacing:.4px;color:var(--text-primary)}
.brand-logo{height:clamp(72px, 8vw, 112px);width:auto;object-fit:contain;transition:filter 0.3s ease}
[data-theme="dark"] .brand-logo{filter:brightness(1.1) contrast(1.1)}
.primary-nav ul{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.primary-nav a{
  display:block;padding:.5rem .75rem;
  color:var(--text-secondary);
  text-decoration:none;border-radius:.5rem;
  position:relative;
  transition: var(--transition-smooth);
}
.primary-nav a::after{
  content:'';position:absolute;bottom:0;left:50%;right:50%;
  height:2px;background:var(--blue-600);
  transition: all 0.3s ease;
}
.primary-nav a:hover::after,.primary-nav .active a::after{
  left:10%;right:10%;
}
.primary-nav a:hover,.primary-nav .active a{
  background:var(--blue-50);color:var(--blue-700);
}
[data-theme="dark"] .primary-nav a:hover{
  background:rgba(10,102,194,0.2);
}
.nav-toggle{display:none;background:none;border:0;cursor:pointer}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text-primary);margin:5px 0;border-radius:2px;transition:var(--transition-smooth)}

/* Theme Toggle Button */
.theme-toggle{
  display:grid;place-items:center;
  width:40px;height:40px;border-radius:50%;
  background:var(--glass);border:1px solid var(--glass-border);
  cursor:pointer;transition:var(--transition-smooth);
  position:relative;
}
.theme-toggle:hover{
  transform:rotate(15deg) scale(1.05);
  box-shadow:0 4px 12px rgba(10,102,194,0.2);
}
.theme-toggle .sun-icon,.theme-toggle .moon-icon{
  position:absolute;transition:var(--transition-smooth);
}
.theme-toggle .sun-icon{opacity:1;transform:rotate(0deg) scale(1)}
.theme-toggle .moon-icon{opacity:0;transform:rotate(90deg) scale(0)}
[data-theme="dark"] .theme-toggle .sun-icon{opacity:0;transform:rotate(-90deg) scale(0)}
[data-theme="dark"] .theme-toggle .moon-icon{opacity:1;transform:rotate(0deg) scale(1)}
/* Variables para facilitar la personalización */
:root {
  --color-dark: #1a1a2e;
  --color-glass-bg: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.2);
  --color-accent: #007bff;
  --color-text-light: #f0f0f0;
  --color-shadow: rgba(0, 0, 0, 0.2);
}

/* Estilos de la sección principal */
.tech-metrics {
  background: var(--color-dark);
  padding: 80px 20px;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Fondo con degradado sutil */
.tech-metrics::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 22, 49, 0.8) 0%, rgba(13, 22, 49, 0) 70%);
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}

/* Contenedor de la cuadrícula de métricas */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  color: var(--blue-600);
  position: relative;
  z-index: 2;
}

/* Estilo para las tarjetas individuales de métricas */
.metric {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 40px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px var(--color-shadow);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  will-change: transform; /* Optimización de rendimiento */
}

/* Force plain white background for metrics section (remove any overlays) */
.metrics {
  position: relative;
  isolation: isolate;
}
.metrics .metric::before {
  background: none;
}

/* Efecto de partículas de fondo en las tarjetas */
.metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Efecto hover: eleva la tarjeta y activa el brillo */
.metric:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px var(--color-shadow);
  border-color: var(--color-accent);
}

.metric:hover::before {
  transform: scale(1.5);
  opacity: 0.1;
}

/* Valor numérico */
.metric-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
  text-shadow: 0 0 10px var(--color-accent);
  transition: all 0.4s ease;
}

/* Etiqueta del texto */
.metric-label {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Hero */
.hero{position:relative;overflow:hidden;padding: clamp(3rem, 7vw, 6rem) 0; background: radial-gradient(700px 400px at 85% 20%, rgba(10,102,194,0.15), transparent)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.75));z-index:-1}
.hero .bg-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:1;z-index:-2;pointer-events:none}
.particles-canvas{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.55}

/* Variantes para el hero */
.hero.no-overlay::after{background:transparent}
.hero.tall{min-height:120vh}
.hero-over{position:relative;z-index:1;align-items:center;grid-template-columns:minmax(260px, 560px) minmax(200px, 520px);}
.hero-over .hero-copy{color:#0b1b35;text-shadow:0 1px 2px rgba(255,255,255,.35)}
.hero-over .hero-media img{max-width:420px;width:100%;height:auto;border-radius:var(--radius);box-shadow:0 10px 30px rgba(2,8,23,.25)}
.hero-grid{display:grid;gap:clamp(1rem,4vw,2rem);justify-items:start}

/* Servicios sobre el video */
.hero-services{position:relative;z-index:1;margin-top:clamp(2rem,6vw,3rem)}
.hero-services .card{background:rgba(255,255,255,.3)}
.hero-services .card-body{padding:1rem}
.hero-services .card h3{color:var(--slate-900)}
.hero-services .card p{color:var(--slate-700)}
.hero-services h2{margin:.2rem 0 .2rem}
/* Make hero services header readable over video */
.hero-services .section-header h2,
.hero-services .section-header p{color:#fff}
.hero-grid{display:grid;grid-template-columns:1.2fr .9fr;gap:clamp(1rem,4vw,2rem);padding:clamp(1rem,3vw,1.5rem)}
.hero-copy h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:0 0 .75rem}
.lead{font-size:clamp(1rem,2.2vw,1.25rem);color:var(--slate-700)}
.hero-ctas{display:flex;gap:.75rem;margin-top:1rem}
.chips{display:flex;gap:.5rem;list-style:none;padding:0;margin:1rem 0 0}
.chip{background:rgba(10,102,194,.1);color:var(--blue-700);border:1px solid rgba(10,102,194,.25);padding:.3rem .6rem;border-radius:999px;font-weight:600;font-size:.9rem}
.hero-media img{width:100%;height:auto;border-radius:var(--radius)}

/* Hero white text overrides */
.hero .hero-copy{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hero .hero-copy h1{color:#fff}
.hero .lead{color:#fff}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.7)}
.hero .btn-ghost:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.9)}
.hero .chip{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.5)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;font-weight:700;border-radius:.75rem;padding:.7rem 1rem;cursor:pointer;text-decoration:none;border:1px solid transparent;transition:.2s}
.btn-primary{background:var(--blue-600);color:#fff;border-color:var(--blue-600)}
.btn-primary:hover{background:var(--blue-700);border-color:var(--blue-700)}
.btn-ghost{background:transparent;color:var(--blue-700);border-color:rgba(10,102,194,.35)}
.btn-ghost:hover{background:rgba(10,102,194,.1)}

/* Cards & grids */
.grid{display:grid;gap:clamp(1rem,3vw,1.5rem)}
.cards{grid-template-columns: repeat(auto-fit, minmax(260px,1fr))}
.card{overflow:hidden}
.card-media{width:100%;height:clamp(180px, 28vw, 320px);object-fit:cover;background:linear-gradient(180deg,#f0f6ff,#e8f1fb)}
.card-illu{display:block;width:100%;height:clamp(130px, 18vw, 200px);object-fit:cover;border-radius:calc(var(--radius-sm));margin-bottom:.6rem;background:linear-gradient(180deg,#f0f6ff,#e8f1fb)}
.card-body{padding:1rem}
.card h3{margin:.2rem 0 .4rem}

/* Services detail: enhanced cards */
#servicios-detalle .service-card{
  background: #fff;
  border:1px solid #e6eefb;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2,8,23,.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
#servicios-detalle .service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,8,23,.1);
}
#servicios-detalle .service-card .card-body{padding:1rem 1rem 1.1rem}
#servicios-detalle .service-card h3{color:var(--slate-900)}
#servicios-detalle .service-card p{color:var(--slate-700)}
#servicios-detalle .service-card .features{margin:.5rem 0 .8rem;padding-left:1.1rem;color:var(--slate-700)}
#servicios-detalle .service-card .features li{margin:.25rem 0}
#servicios-detalle .service-card .btn-cta{margin-top:.25rem}

/* Metrics */
.metrics{background:#ffffff}
.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch}
.metric{position:relative;padding:1.25rem;text-align:center;overflow:hidden}
.metric::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(600px 200px at 50% -10%, rgba(10,102,194,.12), transparent)}
.metric-value{font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:800;color:var(--blue-600);letter-spacing:.5px}
.metric-label{color:var(--slate-700)}
.tech-metrics .metric{border:1px solid rgba(10,102,194,.22);background:linear-gradient(180deg,rgba(255,255,255,.6),rgba(255,255,255,.4));box-shadow:0 10px 30px rgba(2,8,23,.08), inset 0 0 0 1px rgba(255,255,255,.4)}
.tech-metrics .metric .metric-value{position:relative}
.tech-metrics .metric .metric-value::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-8px;width:60%;height:1px;background:linear-gradient(90deg,transparent, rgba(10,102,194,.5), transparent)}
.tech-metrics .metric:hover{box-shadow:0 16px 40px rgba(2,8,23,.12), 0 0 0 1px rgba(10,102,194,.25) inset;transform:translateY(-1px);transition:.2s}

/* Ensure white, clean metrics section (override tech background/overlay) */
.tech-metrics{background:#fff;color:inherit}
.tech-metrics::before{content:none}

/* Experiencia */
.exp-grid{grid-template-columns:1.1fr .9fr;align-items:center}
.exp-copy{padding:1.25rem;color:var(--slate-900)}
.exp-copy h2{color:var(--slate-900)}
.exp-copy p{color:var(--slate-700)}
.badges{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 0;padding:0;list-style:none}
.badges li{background:#fff;border:1px solid #e6eefb;border-radius:999px;padding:.35rem .7rem;font-weight:600;color:var(--slate-900)}

/* Testimonial */
.testimonial-card{max-width:860px;margin-inline:auto;padding:1.25rem}
.testimonial blockquote, .testimonial-card blockquote{font-size:1.15rem;margin:0;color:var(--slate-900)}
.testimonial .author, .testimonial-card .author{font-weight:700;color:var(--slate-900)}
.testimonial figcaption, .testimonial-card figcaption{color:var(--slate-700)}
.stars{display:inline-block;margin-left:.5rem}

/* Testimonials slider */
.testimonials{background:linear-gradient(180deg, rgba(10,102,194,.04), transparent)}
.testi-slider{position:relative;overflow:hidden}
.testi-track{display:flex;gap:0;transition:transform .4s ease}
.testi-slider .testimonial-card{min-width:100%;flex:0 0 100%}
.testi-nav{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e6eefb;border-radius:999px;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 20px rgba(2,8,23,.12)}
.testi-nav:hover{background:#f7fbff}
.testi-nav.prev{left:.5rem}
.testi-nav.next{right:.5rem}
.testi-dots{display:flex;gap:.4rem;justify-content:center;margin-top:.75rem}
.testi-dots button{width:8px;height:8px;border-radius:999px;border:0;background:#c7d7f9;cursor:pointer}
.testi-dots button.active{background:var(--blue-600)}

/* Contact */
.contact{
  position:relative;overflow:hidden;
  background: url('../RecursosMarca/Proyecto nuevo (48).png') center/cover no-repeat;
  background-attachment: fixed;
}
.contact .section-bg{position:absolute;inset:auto 0 0 0;width:100%;height:auto;object-fit:contain;opacity:.9;filter:saturate(105%);z-index:-2}
.contact::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,12,32,.35), rgba(0,12,32,.25));z-index:-1}
.contact-grid{grid-template-columns: .9fr 1.1fr;align-items:start}
.contact-copy h2{margin-top:0}
.contact-card{padding:1rem}
.contact-card h3{color:var(--slate-900)}
.contact .contact-copy{color:#fff}
.contact .contact-copy a{color:#fff;text-decoration:underline}
.form-row{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.85rem}
.form-row label{color:var(--slate-900);font-weight:600}
input, textarea{border:1px solid #d8e4fb;border-radius:.7rem;padding:.75rem;background:#fff;color:#0b1b35;outline:none}
input:focus, textarea:focus{border-color:var(--blue-600);box-shadow:0 0 0 3px rgba(10,102,194,.18)}
.error{color:#b91c1c;height:1.1rem}
.form-actions{margin-top:.5rem}
.form-status{margin-top:.5rem;color:var(--slate-900)}
.newsletter{margin-top:1rem;border-top:1px dashed rgba(10,102,194,.25);padding-top:1rem}
.newsletter label{color:var(--slate-900);font-weight:600}
.newsletter-row{display:flex;gap:.5rem}
.newsletter-row input{flex:1}
#newsletter-status{color:var(--slate-900)}

/* Blog */
.page-hero{background:linear-gradient(180deg, rgba(10,102,194,.06), transparent)}

/* Particles utility (subtle dotted overlay) */
.particles{position:relative;isolation:isolate}
.particles::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background-image: radial-gradient(rgba(10,102,194,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity:.45;
}

/* Footer */
.site-footer{
  border-top:1px solid #e6eefb;
  background: url('../RecursosMarca/Proyecto nuevo (48).png') center/cover no-repeat;
  background-attachment: fixed;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.site-footer a{color:#fff}

/* Corporativa */
.corporate{background:linear-gradient(180deg, rgba(10,102,194,.04), transparent)}
.corp-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1rem,3vw,2rem);align-items:center}
.corp-copy h2, .corp-copy p{color:var(--slate-900)}
.mv-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.mv-card{padding:1rem;color:var(--slate-900)}
.mv-card h3{color:var(--slate-900)}
.mv-card p, .mv-card ul{color:var(--slate-700)}
.values{margin:.5rem 0 0;padding-left:1.1rem;color:var(--slate-700)}
.values li{margin:.25rem 0}
.corp-media{position:relative}
.corp-illu{width:100%;height:auto;border-radius:var(--radius);box-shadow:0 12px 32px rgba(2,8,23,.18)}
.corp-logo{position:absolute;right:1rem;bottom:1rem;height:80px;width:auto;filter:drop-shadow(0 6px 16px rgba(2,8,23,.25))}

@media (max-width: 900px){
  .corp-grid{grid-template-columns:1fr}
  .corp-logo{position:static;margin-top:.75rem;height:64px}
}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;padding:1.25rem 0;align-items:center}
.footer-brand{font-weight:800}

/* Clients logos carousel */
.logos{
  padding-top:2rem;
  background: linear-gradient(180deg, #0b1b35, #0a1e3a);
  color:#e9f0ff;
}
.logos .section-header{text-align:center;margin-bottom:1rem}
.logos .section-header h2{color:#fff}
.logos .section-header p{color:#c9d6ff}
.logos-track-wrap{
  position:relative;overflow:hidden;
  width:clamp(720px, 90vw, 1100px);
  margin-inline:auto;
}
/* Fade edges for a subtle mask */
.logos-track-wrap{-webkit-mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)}
.logos-track{display:flex;align-items:center;--gap:clamp(1rem,2.5vw,2rem);gap:var(--gap);padding:1.25rem 0;animation:slide-logos 30s linear infinite;will-change:transform}
.logos-track:hover{animation-play-state:paused}
.logo-item{height:auto;width:clamp(160px,20vw,240px);max-height:100px;object-fit:contain;filter:saturate(0) brightness(1.08);opacity:.9;transition:filter .3s ease,opacity .3s ease,transform .3s ease}
.logo-item:hover{filter:saturate(1) drop-shadow(0 8px 16px rgba(33,150,243,.3));opacity:1;transform:translateY(-2px)}
@keyframes slide-logos{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.logos-track{animation:none}}

/* Responsive */
@media (max-width: 900px){
  /* Deshabilitar video en móviles */
  .bg-video {
    display: none !important;
  }
  
  /* Deshabilitar partículas en móviles */
  .particles-canvas {
    display: none !important;
  }
  
  /* Reducir efectos blur para mejor rendimiento */
  .glass {
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
  }
  
  .hero-grid, .exp-grid, .contact-grid, .corp-grid{grid-template-columns:1fr}
  .hero-media{order:-1}
  .primary-nav{
    position:fixed;inset:60px 0 auto 0;
    background:rgba(255,255,255,0.95);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    transform:translateY(-120%);
    transition:.25s;padding:1rem;
    box-shadow:0 8px 24px rgba(0,0,0,0.1);
  }
  [data-theme="dark"] .primary-nav{
    background:rgba(15,23,42,0.95);
  }
  .primary-nav.open{transform:translateY(0)}
  .primary-nav ul{flex-direction:column;gap:.5rem}
  .nav-toggle{display:block}
  
  /* Mobile optimizations */
  .process-timeline{grid-template-columns:1fr}
  .cases-grid{grid-template-columns:1fr}
  .team-grid{grid-template-columns:repeat(auto-fit, minmax(240px,1fr))}
  .resources-grid{grid-template-columns:1fr}
  .timeline{padding-left:1.5rem}
  .timeline-item{margin-left:1.5rem}
  .floating-cta{
    bottom:1rem;right:1rem;
    padding:.75rem 1rem;
  }
  .floating-cta-text{display:none}
  .case-results{grid-template-columns:1fr;gap:.5rem}
  
  /* Mobile fallback for fixed backgrounds */
  .contact, .site-footer{background-attachment: scroll}
  
  /* Disable 3D card effects on mobile for performance */
  .card:hover, .case-card:hover, .team-member:hover, .resource-card:hover{
    transform:translateY(-4px) !important;
  }
  
  /* Optimizaciones adicionales para móviles */
  body::before {
    opacity: 0.3 !important; /* Reducir intensidad del gradiente */
  }
  
  /* Simplificar animaciones en móviles */
  .floating-cta {
    animation: none !important;
  }
  
  /* Deshabilitar box-shadow complejos */
  .glass {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  }
}

/* Nuevos estilos para elementos optimizados */
.hero-gradient {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
  color: white;
}

.hero-banner {
  background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4)), 
                    url('../RecursosMarca/fondoseccioncontactoyfinalweb%20(1).png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
}

/* Optimización para móviles - imagen más pequeña o sin imagen */
@media (max-width: 768px) {
  .hero-banner {
    background-image: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
  }
}

.hero-graphic svg, .corp-graphic svg {
  max-width: 100%;
  height: auto;
}

.card-icon, .card-icon-small {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.card-icon {
  height: 120px;
}

.card-icon-small {
  height: 60px;
}

.ceo-placeholder {
  text-align: center;
  padding: 2rem;
}

.ceo-placeholder svg {
  margin-bottom: 1rem;
}

.ceo-placeholder h4 {
  margin: 0;
  color: var(--text-primary);
}

/* Métricas con tema oscuro fijo */
.metric-dark {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.metric-dark .metric-value {
  color: var(--blue-700);
  font-weight: 300;
  font-size: 2rem;
  text-shadow: none;
}

.metric-dark .metric-label {
  color: var(--blue-700);
  font-size: 0.9rem;
}

/* Rediseño sección corporativa */
.text-center {
  text-align: center;
}

.mv-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.mv-card-full {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.mv-card-full:hover {
  transform: translateY(-5px);
}

.mv-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(10, 102, 194, 0.1);
  border-radius: 50%;
}

.mv-card-full h3 {
  color: var(--blue-600);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.mv-card-full p {
  line-height: 1.6;
  color: var(--text-secondary);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
}

.values-list li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: bold;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .mv-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1200px){
  .contact .section-bg{max-height:520px;margin:0 auto}
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  .floating-cta{animation:none}
  .process-step:hover .step-icon{transform:scale(1.05)}
  .timeline-item:hover{transform:translateX(4px)}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high){
  .glass{
    background:var(--bg-primary);
    border:2px solid var(--text-primary);
  }
  .btn-primary{
    border:2px solid var(--text-primary);
  }
}

/* Print Styles */
@media print{
  .site-header, .floating-cta, .nav-toggle, .theme-toggle{display:none}
  .section{page-break-inside:avoid}
  body{background:#fff;color:#000}
  .glass{background:#fff;border:1px solid #ccc}
}

/* Second services section header in dark for readability on light background */
#servicios-detalle{color:var(--text-primary)}
#servicios-detalle .section-header h2{color:var(--text-primary)}
#servicios-detalle .section-header p{color:var(--text-secondary)}

/* ========================================
   NUEVAS SECCIONES - ESTILOS AVANZADOS
   ======================================== */

/* Process Section with Timeline */
.process-section{
  background:linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  position:relative;
  overflow:hidden;
}
.process-timeline{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:1.5rem;
  margin-top:2rem;
}
.process-step{
  padding:1.5rem;
  text-align:center;
  position:relative;
  transition:var(--transition-smooth);
  overflow:hidden;
}
.process-step::before{
  content:'';position:absolute;inset:0;
  background:var(--accent-gradient);
  opacity:0;transition:opacity 0.4s ease;
  z-index:0;
}
.process-step:hover::before{opacity:0.08}
.process-step:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
}
.step-number{
  position:absolute;top:1rem;right:1rem;
  font-size:3rem;font-weight:800;
  color:var(--blue-600);opacity:0.15;
  z-index:0;
}
.step-icon{
  position:relative;z-index:1;
  width:64px;height:64px;margin:0 auto 1rem;
  display:grid;place-items:center;
  background:var(--accent-gradient);
  border-radius:50%;
  color:#fff;
  transition:var(--transition-bounce);
}
.process-step:hover .step-icon{
  transform:scale(1.15) rotate(5deg);
}
.process-step h3{position:relative;z-index:1;margin:.5rem 0}
.process-step p{position:relative;z-index:1;color:var(--text-muted)}

/* Case Studies Section */
.case-studies{
  background:var(--bg-primary);
}
.cases-grid{
  grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
}
.case-card{
  padding:1.5rem;
  position:relative;
  transition:var(--transition-smooth);
}
.case-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
}
.case-tag{
  display:inline-block;
  background:var(--accent-gradient);
  color:#fff;
  padding:.35rem .75rem;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  margin-bottom:.75rem;
  letter-spacing:.3px;
}
.case-card h3{margin:.5rem 0 .75rem;color:var(--text-primary)}
.case-challenge,.case-solution{
  font-size:.95rem;
  margin:.5rem 0;
  color:var(--text-secondary);
}
.case-results{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.75rem;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--border-color);
}
.result-metric{
  text-align:center;
}
.result-value{
  display:block;
  font-size:1.5rem;
  font-weight:800;
  color:var(--blue-600);
  background:var(--accent-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.result-label{
  display:block;
  font-size:.8rem;
  color:var(--text-muted);
  margin-top:.25rem;
}

/* Team Section */
.team-section{
  background:linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}
.team-grid{
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}
.team-member{
  padding:1.5rem;
  text-align:center;
  transition:var(--transition-smooth);
}
.team-member:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:var(--shadow-lg);
}
.member-photo{
  width:120px;height:120px;
  margin:0 auto 1rem;
  border-radius:50%;
  overflow:hidden;
  border:4px solid var(--blue-600);
  box-shadow:0 8px 24px rgba(10,102,194,0.3);
  transition:var(--transition-smooth);
}
.team-member:hover .member-photo{
  transform:scale(1.1);
  border-color:var(--blue-400);
}
.member-photo img{
  width:100%;height:100%;object-fit:cover;
}
.placeholder-photo{
  background:var(--accent-gradient);
  display:grid;place-items:center;
  color:#fff;
}
.member-role{
  color:var(--blue-600);
  font-weight:600;
  font-size:.95rem;
  margin:.25rem 0;
}
.member-bio{
  color:var(--text-muted);
  font-size:.9rem;
  margin:.5rem 0 1rem;
}
.member-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  justify-content:center;
}
.badge-skill{
  background:var(--blue-50);
  color:var(--blue-700);
  padding:.3rem .6rem;
  border-radius:999px;
  font-size:.8rem;
  font-weight:600;
  border:1px solid rgba(10,102,194,0.2);
}
[data-theme="dark"] .badge-skill{
  background:rgba(10,102,194,0.2);
  color:var(--blue-400);
}

/* Timeline Section */
.timeline-section{
  background:var(--bg-primary);
  position:relative;
}
.timeline{
  position:relative;
  max-width:900px;
  margin:2rem auto 0;
  padding-left:2rem;
}
.timeline::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--accent-gradient);
  border-radius:999px;
}
.timeline-item{
  position:relative;
  padding:1.25rem 1.5rem;
  margin-bottom:1.5rem;
  margin-left:2rem;
  transition:var(--transition-smooth);
}
.timeline-item::before{
  content:'';
  position:absolute;
  left:-3.5rem;top:1.5rem;
  width:16px;height:16px;
  background:var(--blue-600);
  border:4px solid var(--bg-primary);
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(10,102,194,0.2);
  transition:var(--transition-smooth);
}
.timeline-item:hover::before{
  transform:scale(1.3);
  box-shadow:0 0 0 8px rgba(10,102,194,0.3);
}
.timeline-item:hover{
  transform:translateX(8px);
  box-shadow:var(--shadow-lg);
}
.timeline-year{
  display:inline-block;
  background:var(--accent-gradient);
  color:#fff;
  padding:.4rem .9rem;
  border-radius:999px;
  font-weight:800;
  font-size:.9rem;
  margin-bottom:.75rem;
  letter-spacing:.5px;
}
.timeline-content h3{
  margin:.5rem 0 .5rem;
  color:var(--text-primary);
}
.timeline-content p{
  color:var(--text-secondary);
  margin:0;
}

/* Service Comparator */
.comparator-section{
  background:linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}
.service-comparator{
  padding:1.5rem;
  overflow-x:auto;
}
.comparison-table{
  width:100%;
  border-collapse:collapse;
  min-width:800px;
}
.comparison-table th{
  background:var(--accent-gradient);
  color:#fff;
  padding:1rem;
  text-align:left;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.2);
}
.comparison-table th:first-child{
  border-radius:var(--radius-sm) 0 0 0;
}
.comparison-table th:last-child{
  border-radius:0 var(--radius-sm) 0 0;
}
.comparison-table td{
  padding:.85rem 1rem;
  border:1px solid var(--border-color);
  color:var(--text-secondary);
  transition:background 0.2s ease;
}
.comparison-table tr:hover td{
  background:rgba(10,102,194,0.05);
}
.comparison-table td:first-child{
  font-weight:600;
  color:var(--text-primary);
}
.check-icon{
  color:#10b981;
  font-size:1.2rem;
  font-weight:800;
}

/* FAQ Section */
.faq-section{
  background:var(--bg-primary);
}
.faq-accordion{
  max-width:900px;
  margin:2rem auto 0;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.faq-item{
  padding:0;
  overflow:hidden;
  transition:var(--transition-smooth);
}
.faq-item:hover{
  box-shadow:var(--shadow-lg);
}
.faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1.25rem 1.5rem;
  background:transparent;
  border:none;
  text-align:left;
  font-size:1.05rem;
  font-weight:600;
  color:var(--text-primary);
  cursor:pointer;
  transition:var(--transition-smooth);
}
.faq-question:hover{
  color:var(--blue-600);
}
.faq-icon{
  flex-shrink:0;
  transition:transform 0.3s ease;
  color:var(--blue-600);
}
.faq-question[aria-expanded="true"] .faq-icon{
  transform:rotate(180deg);
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease, padding 0.4s ease;
  padding:0 1.5rem;
}
.faq-question[aria-expanded="true"] + .faq-answer{
  max-height:500px;
  padding:0 1.5rem 1.25rem;
}
.faq-answer p{
  color:var(--text-secondary);
  margin:.5rem 0;
}

/* Resources Section */
.resources-section{
  background:linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}
.resources-grid{
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
}
.resource-card{
  padding:1.5rem;
  text-align:center;
  transition:var(--transition-smooth);
  position:relative;
}
.resource-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
}
.resource-icon{
  width:80px;height:80px;
  margin:0 auto 1rem;
  display:grid;place-items:center;
  background:var(--accent-gradient);
  border-radius:var(--radius);
  color:#fff;
  transition:var(--transition-bounce);
}
.resource-card:hover .resource-icon{
  transform:scale(1.1) rotate(5deg);
}
.resource-card h3{
  margin:.5rem 0 .75rem;
  color:var(--text-primary);
}
.resource-card p{
  color:var(--text-muted);
  font-size:.95rem;
  margin:.5rem 0 1rem;
}
.resource-tag{
  display:block;
  color:var(--blue-600);
  font-size:.85rem;
  font-weight:600;
  margin:.75rem 0;
}
.btn-sm{
  padding:.5rem 1rem;
  font-size:.9rem;
}

/* Floating CTA Button */
.floating-cta{
  position:fixed;
  bottom:2rem;right:2rem;
  z-index:45;
  display:flex;
  align-items:center;
  gap:.5rem;
  background:var(--accent-gradient);
  color:#fff;
  padding:.9rem 1.25rem;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(10,102,194,0.4);
  text-decoration:none;
  font-weight:700;
  transition:var(--transition-smooth);
  animation:float 3s ease-in-out infinite;
}
.floating-cta:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 12px 32px rgba(10,102,194,0.5);
}
.floating-cta svg{
  flex-shrink:0;
}
.floating-cta-text{
  white-space:nowrap;
}
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}

/* Scroll Animation Classes (added via JS) */
.fade-in-up{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible{
  opacity:1;
  transform:translateY(0);
}

/* Enhanced Section Headers */
.section-header{
  text-align:center;
  max-width:800px;
  margin:0 auto 2rem;
}
.section-header h2{
  font-size:clamp(1.8rem,4vw,2.5rem);
  margin:0 0 .75rem;
  background:var(--accent-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.section-header p{
  font-size:clamp(1rem,2vw,1.15rem);
  color:var(--text-muted);
}
