/* ==========================================================================
   OWS Cloud — Estilos Principales
   Diseño Web Profesional, Limpio y de Alto Rendimiento
   ========================================================================== */

:root {
  /* Paleta Corporativa OWS Cloud con acento #432dd7 */
  --bg-dark: #070b14;
  --bg-card: #0b111e;
  --bg-card-alt: #101828;
  --bg-surface: #141e32;
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-highlight: rgba(95, 77, 242, 0.4);
  --border-card: rgba(255, 255, 255, 0.08);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Color solicitado: #432dd7 */
  --brand-indigo: #432dd7;
  --brand-indigo-light: #5f4df2;
  --brand-indigo-glow: rgba(67, 45, 215, 0.3);

  --cyan-400: #38bdf8;
  --cyan-500: #0ea5e9;
  --cyan-glow: rgba(56, 189, 248, 0.18);

  --emerald-400: #34d399;
  --emerald-glow: rgba(52, 211, 153, 0.3);

  /* Tipografía */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;

  /* Dimensiones y radios */
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Fondo ambiental sutil, rico y luminoso */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse 70% 50% at 75% -5%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 30%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(14, 165, 233, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 90%, rgba(59, 130, 246, 0.08), transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

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

::selection {
  background-color: rgba(56, 189, 248, 0.28);
  color: #ffffff;
}

/* Accesibilidad */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--cyan-400);
  color: #040914;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Contenedor Principal */
.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navegación
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  color: var(--cyan-400);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-name span {
  color: #818cf8;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #818cf8;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.button-primary {
  background: linear-gradient(135deg, #432dd7, #5f4df2);
  color: #ffffff;
  border-color: rgba(95, 77, 242, 0.5);
  box-shadow: 0 4px 20px rgba(67, 45, 215, 0.35);
}

.button-primary:hover {
  background: linear-gradient(135deg, #4e36e2, #6e5efa);
  box-shadow: 0 6px 26px rgba(67, 45, 215, 0.5);
  transform: translateY(-2px);
}

.button-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.button-outline:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-highlight);
  color: var(--cyan-400);
  transform: translateY(-2px);
}

.button-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.button-whatsapp {
  background: #128c7e;
  color: #ffffff;
  border-color: rgba(37, 211, 102, 0.3);
}

.button-whatsapp:hover {
  background: #075e54;
  box-shadow: 0 4px 20px rgba(18, 140, 126, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 84px 0 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-glow);
  display: inline-block;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.3vw, 33px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #818cf8;
}

.hero-lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
  flex-shrink: 0;
}

/* Hero Visual: Panel Ejecutivo OWS Cloud Suite (Elegante y Comprensible) */
.hero-visual {
  background: linear-gradient(165deg, #0e1c31 0%, #081220 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 45px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  position: relative;
}

.suite-header {
  height: 48px;
  background: #091527;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suite-dots {
  display: flex;
  gap: 6px;
}

.suite-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.suite-dots span:nth-child(1) { background: #ef4444; }
.suite-dots span:nth-child(2) { background: #f59e0b; }
.suite-dots span:nth-child(3) { background: #10b981; }

.suite-title {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.suite-title strong {
  color: #ffffff;
  font-weight: 700;
}

.suite-title small {
  color: var(--text-secondary);
  font-size: 12px;
}

.suite-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--emerald-400);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.suite-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.suite-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.suite-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.suite-tab.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--cyan-400);
}

.suite-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.suite-kpi-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color 0.2s;
}

.suite-kpi-card:hover {
  border-color: var(--border-highlight);
}

.kpi-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.kpi-value {
  display: block;
  font-size: 18px;
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 800;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.kpi-trend.positive {
  color: var(--emerald-400);
}

.kpi-trend svg {
  width: 14px;
  height: 14px;
}

.kpi-status-pill {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.kpi-status-pill.success {
  color: var(--emerald-400);
}

.kpi-status-pill.active {
  color: var(--cyan-400);
}

.suite-chart-box {
  background: rgba(7, 14, 25, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.chart-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.chart-live-badge {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
}

.chart-graph {
  position: relative;
  height: 100px;
}

.chart-svg {
  width: 100%;
  height: 80px;
}

.chart-timeline {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.suite-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.feed-item:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.feed-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.feed-badge.sunat {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.feed-badge.store {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.feed-info {
  flex-grow: 1;
  min-width: 0;
}

.feed-info strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-info small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-status {
  font-size: 11px;
  color: var(--emerald-400);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Secciones Generales y Encabezados
   ========================================================================== */
section {
  position: relative;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.28;
  margin-bottom: 12px;
}

.section-head h2 span {
  color: var(--cyan-400);
}

.section-head p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(14, 165, 233, 0.08);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan-400);
  margin-bottom: 24px;
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.service-tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Proyectos / Casos Reales
   ========================================================================== */
.projects-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.project-showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.project-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #5f4df2, #38bdf8);
  border-radius: 2px;
}

.project-tab:hover {
  background: rgba(67, 45, 215, 0.12);
  border-color: rgba(95, 77, 242, 0.4);
  color: #ffffff;
}

.project-tab.active {
  background: rgba(67, 45, 215, 0.22);
  border-color: #5f4df2;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(67, 45, 215, 0.25);
}

.project-tab.active::after {
  animation: tabProgressBar 9s linear forwards;
}

@keyframes tabProgressBar {
  from { width: 0%; }
  to { width: 100%; }
}

#proyectos:hover .project-tab.active::after {
  animation-play-state: paused;
}

.project-tab .tab-num {
  font-size: 11px;
  font-family: var(--font-heading);
  color: #818cf8;
  font-weight: 700;
}

.project-nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-arrow-btn:hover {
  background: rgba(67, 45, 215, 0.3);
  border-color: #5f4df2;
  color: #ffffff;
  transform: scale(1.05);
}

.project-slide-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  min-width: 48px;
  text-align: center;
  letter-spacing: 0.04em;
}

.project-slide-counter strong {
  color: #ffffff;
}

/* Slider Slides */
.project-showcase-slider {
  position: relative;
}

.project-item,
.project-slide {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  display: none;
  grid-template-columns: 0.95fr 1.05fr;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(6px);
}

.project-item.active,
.project-slide.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  animation: slideSmoothFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideSmoothFade {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-item:hover,
.project-slide:hover {
  border-color: rgba(95, 77, 242, 0.45);
}

.project-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  margin-bottom: 8px;
  display: block;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-info p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.project-story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.story-point {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.story-point strong {
  color: #ffffff;
}

.story-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.story-label.problem {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.story-label.solution {
  background: rgba(99, 85, 255, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 85, 255, 0.3);
}

.story-label.result {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.project-feat svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
  flex-shrink: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 600;
}

.project-link:hover {
  color: #ffffff;
  gap: 12px;
}

/* Vista previa de Interfaz (Mockup Profesional) */
.project-preview {
  background: #070e1b;
  border-left: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mockup Sanito Plus */
.mockup-window {
  width: 100%;
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.mockup-topbar {
  background: #0a1322;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-brand {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.mockup-brand span {
  color: var(--cyan-400);
}

.mockup-tag {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.mockup-dashboard {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.mockup-kpi small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mockup-kpi strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

/* Flujo Dinámico en Vivo (Sin Tablas) */
.mockup-flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-flow-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.mockup-flow-item.flow-active {
  background: rgba(67, 45, 215, 0.12);
  border-color: rgba(95, 77, 242, 0.45);
  box-shadow: 0 4px 20px rgba(67, 45, 215, 0.15);
  animation: softPulseGlow 3.5s infinite ease-in-out;
}

@keyframes softPulseGlow {
  0%, 100% {
    border-color: rgba(95, 77, 242, 0.35);
    box-shadow: 0 4px 16px rgba(67, 45, 215, 0.12);
  }
  50% {
    border-color: rgba(95, 77, 242, 0.65);
    box-shadow: 0 4px 24px rgba(67, 45, 215, 0.3);
  }
}

.flow-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.flow-item-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.flow-item-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.flow-item-icon.info {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.flow-item-body {
  flex: 1;
  min-width: 0;
}

.flow-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.flow-item-header strong {
  font-size: 13px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.flow-item-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 6px 0;
}

.flow-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-time {
  color: var(--cyan-400);
  font-weight: 600;
}

.flow-total {
  color: #ffffff;
  font-weight: 700;
}

.flow-hint {
  color: var(--text-muted);
  font-style: italic;
}

.mockup-live-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}

.live-dot-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.live-dot-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-400);
  animation: pingRing 2.2s infinite ease-out;
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.badge-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.badge-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
}

.badge-status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-status.info {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-400);
}

/* Mockup Teléfono para Agua Móvil */
.phone-mockup {
  width: 260px;
  background: #091322;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  background: #0d1a2d;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-top {
  padding: 14px 14px 10px;
  background: #08111e;
  border-bottom: 1px solid var(--border-subtle);
}

.phone-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top small {
  font-size: 10px;
  color: var(--cyan-400);
  font-weight: 600;
}

.phone-top strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-top: 2px;
}

.phone-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 11px;
  transition: all 0.3s ease;
}

.phone-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.phone-card b {
  display: block;
  color: #ffffff;
  font-size: 11px;
}

.phone-card span {
  font-size: 10px;
  color: var(--text-muted);
}

.phone-card-active {
  background: rgba(67, 45, 215, 0.15) !important;
  border-color: rgba(95, 77, 242, 0.45) !important;
  animation: softPulseGlow 3.5s infinite ease-in-out;
}

.phone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.phone-cash-tag {
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  font-size: 10px;
  color: var(--emerald-400);
  font-weight: 600;
}

.phone-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 6px 0;
  overflow: hidden;
}

.phone-progress-fill {
  width: 66%;
  height: 100%;
  background: var(--cyan-400);
}

.animated-shimmer {
  background: linear-gradient(90deg, #432dd7, #38bdf8, #432dd7);
  background-size: 200% 100%;
  animation: shimmerMove 3s infinite linear;
}

@keyframes shimmerMove {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================================
   Soluciones por Sector
   ========================================================================== */
.sectors-section {
  padding: 84px 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.03), transparent);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.sector-card:hover {
  background: var(--bg-card-alt);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.sector-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 12px;
}

.sector-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Metodología / Cómo Trabajamos
   ========================================================================== */
.process-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
}

.process-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-400);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.process-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Infraestructura Cloud & Seguridad
   ========================================================================== */
.infra-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.infra-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.infra-copy h2 span {
  color: var(--cyan-400);
}

.infra-copy p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.infra-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.infra-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.infra-pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.infra-pillar-icon svg {
  width: 16px;
  height: 16px;
}

.infra-pillar h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.infra-pillar p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.infra-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.infra-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.infra-step:hover {
  border-color: var(--border-highlight);
}

.infra-step-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.infra-step-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #0a1322;
  border: 1px solid var(--border-subtle);
  color: var(--cyan-400);
  display: grid;
  place-items: center;
}

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

.infra-step-info strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.infra-step-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.infra-step-tag {
  font-size: 11px;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   Por Qué OWS Cloud (Diferenciales)
   ========================================================================== */
.reasons-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reason-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.reason-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 12px;
  display: block;
}

.reason-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Tecnologías (Slider Showcase)
   ========================================================================== */
.tech-section {
  padding: 84px 0;
  border-top: 1px solid var(--border-subtle);
}

.tech-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tech-heading-block {
  max-width: 680px;
  margin-bottom: 0;
}

.tech-heading-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.tech-heading-block h2 span {
  color: var(--cyan-400);
}

.tech-heading-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.tech-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tech-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.tech-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.tech-dot.active {
  width: 24px;
  background: #5f4df2;
  box-shadow: 0 0 12px rgba(67, 45, 215, 0.5);
}

.tech-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-arrow-btn:hover {
  background: rgba(67, 45, 215, 0.3);
  border-color: #5f4df2;
  color: #ffffff;
  transform: scale(1.05);
}

.tech-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 2px 20px 2px;
  margin: -10px -2px -20px -2px;
}

.tech-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.tech-carousel-track .tech-item-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.tech-carousel-track .tech-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 77, 242, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(67, 45, 215, 0.15);
}

.tech-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tech-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-item-card:hover .tech-item-icon {
  border-color: rgba(95, 77, 242, 0.4);
  background: rgba(67, 45, 215, 0.1);
}

.tech-item-title strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.tech-item-title span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-item-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Contacto & Conversión
   ========================================================================== */
.contact-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-card {
  background: linear-gradient(135deg, #0c182b, #091322);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-copy p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.direct-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-wrap {
  background: rgba(6, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #08111e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050a12;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--cyan-400);
}

/* ==========================================================================
   Animaciones Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries & Responsividad a Cualquier Pantalla
   ========================================================================== */

/* Pantallas Extra Grandes y Ultra-Wide (Monitores 2K, 4K y 1440px+) */
@media (min-width: 1440px) {
  :root {
    --max-width: 1340px;
  }

  .hero {
    gap: 64px;
    padding: 96px 0;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Laptops y Tablets Horizontales (1024px o menos) */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
  }

  .project-item,
  .project-slide {
    grid-template-columns: 1fr;
  }

  .project-preview {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
  }

  .infra-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .tech-carousel-track .tech-item-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Tablets Verticales y Móviles Grandes (768px o menos) */
@media (max-width: 768px) {
  .section-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 13, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 99;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    font-size: 15px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(23px, 6vw, 29px);
    line-height: 1.25;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.65;
  }

  .section-head h2 {
    font-size: clamp(21px, 5.5vw, 26px);
  }

  .project-info {
    padding: 28px 20px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .suite-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .suite-body {
    padding: 16px 14px;
  }
}

/* Teléfonos y Dispositivos Móviles (480px o menos) */
@media (max-width: 480px) {
  .section-shell {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 28px;
    gap: 36px;
  }

  .hero h1 {
    font-size: 23px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .suite-kpis {
    grid-template-columns: 1fr;
  }

  .project-info {
    padding: 22px 14px;
  }

  .project-preview {
    padding: 20px 12px;
  }

  .mockup-dashboard {
    padding: 14px 10px;
  }

  .mockup-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .phone-mockup {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .contact-card {
    padding: 24px 14px;
    border-radius: var(--radius-lg);
    gap: 28px;
  }

  .direct-channels {
    gap: 12px;
  }

  .button-whatsapp {
    font-size: 13px;
    padding: 12px 14px;
    text-align: center;
    justify-content: center;
  }

  .mockup-table {
    font-size: 11px;
  }

  .mockup-table th,
  .mockup-table td {
    padding: 6px 4px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .reason-card {
    padding: 24px 18px;
  }

  .tech-item-card {
    padding: 20px 16px;
  }

  .tech-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .tech-carousel-track .tech-item-card {
    flex: 0 0 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
