/* public/css/landing.css */
/* Estilos específicos de la Landing Page pública (2026 Vanguard Edition) */

/* FONDO BLUEPRINT GRID & ORBES DE LUZ AURORA (VIVO, PULSANTE Y DINÁMICO) */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
}

.mesh-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.75;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  animation: aura-pulse 4.5s ease-in-out infinite alternate;
}

.mesh-light-a {
  width: 650px;
  height: 650px;
  top: -5%;
  left: 5%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.65) 0%, rgba(139, 92, 246, 0.4) 40%, transparent 70%);
  animation-duration: 4s;
}

.mesh-light-b {
  width: 600px;
  height: 600px;
  top: 30%;
  right: 0%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, rgba(14, 165, 233, 0.35) 40%, transparent 70%);
  animation-duration: 5.2s;
  animation-delay: -1.5s;
}

/* TERCER ORBE DE PROFUNDIDAD Y DINAMISMO */
.mesh-light-c {
  position: absolute;
  width: 550px;
  height: 550px;
  bottom: 0%;
  left: 15%;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  opacity: 0.65;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(99, 102, 241, 0.3) 45%, transparent 70%);
  animation: aura-pulse 6s ease-in-out infinite alternate;
  animation-delay: -2.5s;
}

@keyframes aura-pulse {
  0% {
    transform: scale(0.85) translate(-15px, -15px);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.18) translate(30px, -25px);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.95) translate(-25px, 30px);
    opacity: 0.6;
  }
}

/* Fondos semitransparentes para las secciones */
.section-tinted {
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-tinted-elev {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .mesh-light {
    display: none;
  }
}

/* FLASH DEL "CHOQUE" — decorativo, detrás de la tarjeta de Contacto.
   Se dispara vía JS (clase .mesh-collided en /js/parallax.js), con el MISMO
   cálculo de progreso de scroll que mueve las luces — no con el sistema
   genérico de .reveal — para que nunca quede desincronizado si se scrollea lento. */
.contact-flash {
  display: none;
}

.contact-flash.mesh-collided {
  animation: flash-burst 1.4s ease-out forwards;
}

@keyframes flash-burst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

/* La tarjeta del Asistente "Trabajemos Juntos" siempre visible de inmediato */
.card-impact {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .contact-flash {
    display: none;
  }
  .card-impact {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background-color: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(8, 12, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--secondary);
  text-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.nav-links a.btn-primary {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.nav-links a.btn-primary:hover {
  color: #ffffff !important;
}

.nav-login-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-login-link:hover {
  color: #ffffff !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  color: var(--text-main);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--secondary);
}

/* Menú hamburguesa mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.nav-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-links li {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .nav-links a.btn {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* HERO SECTION DE ALTO IMPACTO */
.hero {
  padding: 10.5rem 0 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* AURA AMBIENTAL HIGH-TECH DETRÁS DEL HERO */
.hero-glow-core {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.22) 0%, rgba(99, 102, 241, 0.16) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-breathe 6s ease-in-out infinite alternate;
}

@keyframes hero-glow-breathe {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}


.hero h1 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.hero-line-main,
.hero-headline-primary {
  font-size: clamp(2.2rem, 5.8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  display: block;
}

.hero-line-sub,
.hero-headline-secondary {
  font-size: clamp(1.5rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #94a3b8;
  display: block;
  max-width: 100%;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.branch-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.5rem;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.card-meta-delivery {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #64748b;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.hero-cta-group .btn {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* EFECTO SHIMMER DE BARRIDO DE LUZ EN BOTONES PRINCIPALES */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmer-sweep 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer-sweep {
  0% {
    left: -70%;
  }
  22%, 100% {
    left: 140%;
  }
}


@media (max-width: 480px) {
  .hero {
    padding: 6.5rem 0 3rem 0;
  }
  
  .hero-line-main {
    font-size: 1.95rem;
    line-height: 1.15;
  }

  .hero-line-sub {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  .hero-badge {
    margin-bottom: 1.25rem;
    font-size: 0.775rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #c7d2fe;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 6.5rem 0 3.5rem 0; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.95rem; }
}

/* COMPORTAMIENTO DE SCROLL Y TÍTULOS DE SECCIÓN */
section[id] {
  scroll-margin-top: 85px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 75px;
  }
  .section-title {
    margin-bottom: 2.25rem;
  }
  #soluciones .section-title {
    margin-bottom: 3.25rem !important;
  }
  .section-title h2 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem;
  }
  .section-title p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  #proyectos {
    padding: 2.5rem 0 2rem 0 !important;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 1rem 0 3rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card {
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

@media (max-width: 600px) {
  .portfolio-card {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
  }
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.025) 0%, transparent 40%);
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(14, 165, 233, 0.15);
}

.portfolio-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-card-body {
  padding: 1.5rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.carousel-arrow {
  background: var(--bg-surface-elev);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

/* --- BENTO GRID VANGUARDISTA --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-col-4, .bento-col-6, .bento-col-8 {
    grid-column: span 12;
  }
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* --- TARJETAS DE SOLUCIONES CON CASOS REALES (ESTILO MANTRAX / JULIANA GROSSO) --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 960px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.solutions-branch-block {
  margin-bottom: 3.5rem;
}

.solutions-branch-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.solutions-branch-header .branch-meta-row {
  margin-bottom: 0.5rem;
}

.solutions-branch-header h3 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.solutions-branch-header p {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}


.showcase-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--border-glow);
}

.showcase-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-img-wrap img {
  transform: scale(1.05);
}

.showcase-icon-wrap {
  width: 100%;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.showcase-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.showcase-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-icon-box {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
  color: #38bdf8;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

.showcase-card:hover .showcase-icon-box svg {
  transform: scale(1.08);
}

.showcase-icon-wrap .icon-symbol {
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.showcase-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Tarjeta destacada full-width para Consultoría de Procesos */
.showcase-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.process-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.process-pipeline-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  transition: all var(--transition-normal);
}

.process-pipeline-step:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--secondary);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.process-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.process-step-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Pantalla de éxito en trabajemos-juntos */
#brief-success-state {
  animation: stepFadeIn 0.35s ease forwards;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-check-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem auto;
}

/* --- MODALIDADES DE TRABAJO (MÓDULOS A TU MEDIDA) --- */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.modality-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.modality-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.modality-card.highlight {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(99, 102, 241, 0.08) 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.modality-header {
  margin-bottom: 1rem;
}

.modality-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.modality-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modality-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.modality-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.modality-features li {
  font-size: 0.8125rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.modality-features li span.bullet-check {
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.modality-fit {
  font-size: 0.775rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* --- GRID DE METODOLOGÍA & PROCESO --- */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.methodology-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: all var(--transition-normal);
}

.methodology-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.methodology-step-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

/* --- ACCESIBILIDAD TÁCTIL EN MÓVIL (Mínimo 44px touch target) --- */
@media (max-width: 768px) {
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .portfolio-card-body .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem !important;
  }
  footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .form-input, select.form-input {
    min-height: 46px;
  }
  .radio-card {
    min-height: 52px;
  }
}

/* ==========================================================================
   CONFIGURADOR VISUAL & ASISTENTE "TRABAJEMOS JUNTOS" (ESTILOS Y MOCKUPS)
   ========================================================================== */

#trabajemos-juntos {
  padding: 2.5rem 0 3.5rem 0 !important;
}

#trabajemos-juntos .section-title {
  margin-bottom: 1rem !important;
}

#brief-main-card {
  position: relative;
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem 1.5rem !important;
}

#brief-steps-header {
  margin-bottom: 1.25rem !important;
}

@media (max-width: 768px) {
  #trabajemos-juntos {
    padding: 1.5rem 0 2.5rem 0 !important;
  }
  #trabajemos-juntos .section-title {
    margin-bottom: 0.75rem !important;
  }
  #brief-main-card {
    padding: 1rem 0.85rem !important;
  }
  #brief-steps-header {
    margin-bottom: 1rem !important;
  }
  .brief-step h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.2rem !important;
  }
  .brief-step > p {
    font-size: 0.8rem !important;
    margin-bottom: 0.85rem !important;
  }
  .visual-select-grid {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  .visual-choice-card {
    padding: 1rem !important;
  }
}

/* Transición limpia y fluida entre pasos (sin retardos ni parpadeos) */
.brief-step {
  animation: stepFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visual-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.visual-choice-card {
  position: relative;
  cursor: pointer;
  padding: 1.25rem;
  border-radius: var(--radius-lg, 16px);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-choice-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.visual-choice-card.selected {
  border-color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1) !important;
}

.choice-check-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
}

.visual-choice-card.selected .choice-check-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* MINIATURAS VISUALES DE ESTILOS DE DISEÑO (CSS MOCKUPS) */
.style-mockup-frame {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-md, 10px);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* 1. Mockup Minimalista Light / Clean */
.mockup-minimal {
  background: #f8fafc;
  padding: 0.6rem;
}
.mockup-minimal .mock-nav {
  height: 12px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0 6px;
  justify-content: space-between;
}
.mockup-minimal .mock-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
}
.mockup-minimal .mock-hero-line {
  height: 10px;
  width: 70%;
  background: #0f172a;
  border-radius: 2px;
  margin-bottom: 4px;
}
.mockup-minimal .mock-hero-sub {
  height: 6px;
  width: 90%;
  background: #94a3b8;
  border-radius: 2px;
  margin-bottom: 8px;
}
.mockup-minimal .mock-btn {
  height: 16px;
  width: 45px;
  background: #0f172a;
  border-radius: 3px;
}

/* 2. Mockup Dark Tech / Glassmorphism */
.mockup-darktech {
  background: #060813;
  padding: 0.6rem;
  position: relative;
}
.mockup-darktech::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  filter: blur(12px);
}
.mockup-darktech .mock-nav {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0 6px;
}
.mockup-darktech .mock-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 6px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mockup-darktech .mock-neon-line {
  height: 8px;
  width: 60%;
  background: linear-gradient(90deg, #06b6d4, #a855f7);
  border-radius: 2px;
  margin-bottom: 4px;
}
.mockup-darktech .mock-neon-sub {
  height: 5px;
  width: 80%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* 3. Mockup Corporativo & Institucional */
.mockup-corporate {
  background: #0f172a;
  padding: 0.6rem;
}
.mockup-corporate .mock-nav {
  height: 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0 6px;
  justify-content: space-between;
}
.mockup-corporate .mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mockup-corporate .mock-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  height: 50px;
  padding: 4px;
}
.mockup-corporate .mock-bar {
  height: 6px;
  width: 75%;
  background: #38bdf8;
  border-radius: 2px;
  margin-bottom: 4px;
}

/* 4. Mockup Dinámico & Alto Impacto */
.mockup-dynamic {
  background: #18181b;
  padding: 0.6rem;
}
.mockup-dynamic .mock-nav {
  height: 12px;
  background: #27272a;
  margin-bottom: 0.5rem;
  border-radius: 3px;
}
.mockup-dynamic .mock-banner {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  border-radius: 6px;
  height: 56px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}
.mockup-dynamic .mock-banner-title {
  height: 10px;
  width: 55%;
  background: #ffffff;
  border-radius: 2px;
  margin-bottom: 4px;
}
.mockup-dynamic .mock-banner-sub {
  height: 5px;
  width: 80%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

/* PALETA DE COLORES MINIATURA */
.palette-preview {
  display: flex;
  gap: 5px;
  margin-top: 0.5rem;
}
.palette-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   EFECTOS VISUALES AVANZADOS: SPOTLIGHT HALO REACTIVO AL MOUSE EN CARDS
   (Sigue la posición real del cursor en showcase, modalidades, metodología y FAQ)
   ========================================================================== */

.showcase-card,
.modality-card,
.methodology-card,
.glass-panel,
.visual-choice-card,
.process-pipeline-step {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Halo difuso que sigue las coordenadas (--mouse-x, --mouse-y) calculadas en glow-cards.js */
.showcase-card::before,
.modality-card::before,
.methodology-card::before,
.glass-panel::before,
.visual-choice-card::before,
.process-pipeline-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.14),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Borde perimetral reflectivo con brillo cian/índigo */
.showcase-card::after,
.modality-card::after,
.methodology-card::after,
.glass-panel::after,
.visual-choice-card::after,
.process-pipeline-step::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    340px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 182, 212, 0.55),
    rgba(99, 102, 241, 0.25) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Activación al posar el cursor */
.showcase-card:hover::before,
.showcase-card:hover::after,
.modality-card:hover::before,
.modality-card:hover::after,
.methodology-card:hover::before,
.methodology-card:hover::after,
.glass-panel:hover::before,
.glass-panel:hover::after,
.visual-choice-card:hover::before,
.visual-choice-card:hover::after,
.process-pipeline-step:hover::before,
.process-pipeline-step:hover::after {
  opacity: 1;
}

/* Preserva la interactividad y legibilidad de todo el contenido interior */
.showcase-card > *,
.modality-card > *,
.methodology-card > *,
.glass-panel > *,
.visual-choice-card > *,
.process-pipeline-step > * {
  position: relative;
  z-index: 2;
}

.choice-check-badge {
  z-index: 3 !important;
}


