/* ==========================================================================
   DESARROLLOWEB.US - NUEVO HOME PREMIUM DESIGN SYSTEM & STYLES (V2)
   Basado en la dirección creativa aprobada y la imagen de referencia
   ========================================================================== */

:root {
  /* Paleta cromática principal */
  --primary: #1766FF;
  --primary-hover: #0d52db;
  --primary-light: #ECF3FF;
  --primary-subtle: #F6F9FF;
  --primary-glow: rgba(23, 102, 255, 0.15);

  --secondary: #0B1633;
  --secondary-light: #1E293B;
  --text-primary: #0B1633;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --accent-purple: #8B5CF6;
  --accent-purple-light: #F5F3FF;
  --accent-gradient: linear-gradient(135deg, #1766FF 0%, #8B5CF6 100%);
  --accent-gradient-text: linear-gradient(135deg, #1766FF 20%, #8B5CF6 90%);
  --cta-gradient: linear-gradient(90deg, #1766FF 0%, #3B82F6 48%, #8B5CF6 100%);

  /* Superficies y fondos */
  --bg-body: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-soft-blue: #F6F9FF;
  --bg-card: #FFFFFF;

  /* Bordes */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #1766FF;

  /* Sombras */
  --shadow-xs: 0 1px 3px rgba(11, 22, 51, 0.05);
  --shadow-sm: 0 4px 12px rgba(11, 22, 51, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(11, 22, 51, 0.06), 0 8px 10px -6px rgba(11, 22, 51, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(11, 22, 51, 0.08), 0 10px 15px -5px rgba(11, 22, 51, 0.03);
  --shadow-xl: 0 25px 50px -12px rgba(23, 102, 255, 0.18);
  --shadow-floating: 0 18px 36px rgba(15, 23, 42, 0.09);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Tipografía */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1240px;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-body);
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Utilidades generales */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--secondary);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(23, 102, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 102, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--secondary);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
}

.btn-outline-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   00. HERO & HEADER WRAPPER (FOTO DE FONDO COMPLETA)
   ========================================================================== */
.hero-header-wrapper {
  position: relative;
  background-color: #F8FAFC;
  background-image: 
    linear-gradient(90deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(255, 255, 255, 0.94) 38%, 
      rgba(255, 255, 255, 0.55) 52%, 
      rgba(255, 255, 255, 0.12) 65%, 
      rgba(255, 255, 255, 0) 78%
    ),
    url('../images/pagina_principal.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ==========================================================================
   01. NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.logo-symbol {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link.active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   DROPDOWN DE NAVEGACIÓN (PROYECTOS & SUBOPCIONES)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link--has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 10px;
  min-width: 330px;
  box-shadow: 0 20px 40px -10px rgba(11, 22, 51, 0.12), 0 8px 16px -4px rgba(11, 22, 51, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.nav-dropdown-link:hover {
  background: #F8FAFC;
}

.nav-dropdown-link--featured {
  background: rgba(23, 102, 255, 0.03);
  border: 1px solid rgba(23, 102, 255, 0.1);
  margin-top: 4px;
}

.nav-dropdown-link--featured:hover {
  background: rgba(23, 102, 255, 0.07);
}

.nav-dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.nav-dropdown-link:hover .nav-dropdown-icon {
  background: #E2E8F0;
  color: #0F172A;
}

.nav-dropdown-icon.featured {
  background: #EEF4FF;
  color: var(--primary);
}

.nav-dropdown-link--featured:hover .nav-dropdown-icon.featured {
  background: var(--primary);
  color: #FFFFFF;
}

.nav-dropdown-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--secondary);
  line-height: 1.3;
}

.nav-badge-new {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #10B981;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.nav-dropdown-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* Mobile sublink styling */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-nav-sublist {
  padding-left: 14px;
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid rgba(23, 102, 255, 0.2);
}

.mobile-nav-sublink {
  font-size: 0.86rem !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 102, 255, 0.04);
  border-radius: 6px;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--secondary);
  cursor: pointer;
}

/* Mobile drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 10px 0;
}

/* ==========================================================================
   02. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 48px;
  padding-bottom: 75px;
  background: transparent;
  overflow: visible;
}

.hero-backdrop-glow {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
  min-height: 540px;
}

.hero-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.hero-visual-spacer {
  min-height: 480px;
  pointer-events: none;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--secondary);
  margin-bottom: 22px;
}

.hero-description {
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img,
.avatar-stack .avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  object-fit: cover;
  background: #E2E8F0;
}

.avatar-stack img:first-child,
.avatar-stack .avatar-circle:first-child {
  margin-left: 0;
}

.social-proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-headline {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--secondary);
}

.sp-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sp-stars {
  color: #F59E0B;
  letter-spacing: 1px;
  font-size: 0.88rem;
}

/* Hero Visual / Laptop Showcase */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.laptop-display-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.12));
  transition: transform 0.4s ease;
  border-radius: 16px;
}

.laptop-display-frame:hover {
  transform: translateY(-4px);
}

.laptop-screen-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ==========================================================================
   03. INDICADORES Y PRUEBA SOCIAL (METRICS BAR)
   ========================================================================== */
.metrics-section {
  position: relative;
  z-index: 10;
  margin-top: -32px;
  padding-bottom: 50px;
}

.metrics-bar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(11, 22, 51, 0.05);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 32px;
  position: relative;
}

.metric-col {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  position: relative;
}

.metric-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-light);
}

.metric-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-circle svg {
  width: 22px;
  height: 22px;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   04. PORTAFOLIO DE PROYECTOS (CASOS REALES)
   ========================================================================== */
.portfolio-section {
  padding-top: 50px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.portfolio-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.project-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.project-image-box {
  width: 100%;
  height: 165px;
  overflow: hidden;
  position: relative;
  background: #F1F5F9;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image-box img {
  transform: scale(1.05);
}

.project-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-badge-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-action-row {
  display: flex;
  justify-content: flex-end;
}

.project-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.project-card:hover .project-circle-btn {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   05. SHOWCASE DE APLICACIONES MÓVILES
   ========================================================================== */
.portfolio-prototypes .portfolio-header-row{gap:30px}.portfolio-prototypes .portfolio-header-row>div{max-width:790px}
.portfolio-prototypes .portfolio-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.portfolio-prototypes .project-card{grid-column:span 2}.portfolio-prototypes .project-card:nth-last-child(-n+2){grid-column:span 3}
.portfolio-prototypes .project-image-box{display:block;height:auto;aspect-ratio:2/1;border-bottom:1px solid #E2E8F0;background:#F3F6FA}
.portfolio-prototypes .project-image-box img{object-fit:contain;object-position:center}.portfolio-prototypes .project-card:hover .project-image-box img{transform:none}
.portfolio-prototypes .project-title a{color:inherit;text-decoration:none}.portfolio-prototypes .project-title a:hover{color:#1766FF}
.portfolio-prototypes .project-action-row{justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.home-prototype-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:999px;background:#1766FF;color:#fff;font-size:13px;font-weight:650;text-decoration:none}
.home-prototype-button:hover{background:#0E52D9;color:#fff}.home-prototype-details{font-size:13px;font-weight:600;color:#1766FF;text-decoration:underline;text-underline-offset:4px}
.home-prototype-note{font-size:12px;line-height:1.7;color:#526079;margin:24px 0 0}
.portfolio-prototypes a:focus-visible{outline:3px solid #1766FF;outline-offset:3px}.portfolio-prototypes .project-image-box:focus-visible{outline-offset:-3px}
@media(max-width:1000px){.portfolio-prototypes .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-prototypes .project-card,.portfolio-prototypes .project-card:nth-last-child(-n+2){grid-column:auto}.portfolio-prototypes .project-card:last-child{grid-column:1/-1}.portfolio-prototypes .portfolio-header-row{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.portfolio-prototypes .portfolio-grid{grid-template-columns:1fr}.portfolio-prototypes .project-card:last-child{grid-column:auto}.portfolio-prototypes .project-body{padding:20px}}

.mobile-showcase-section {
  padding-top: 60px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F9FF 60%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.mobile-showcase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  align-items: center;
  gap: 40px;
}

.mobile-showcase-info {
  max-width: 420px;
}

.phones-gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}

.phone-mockup-card {
  position: relative;
  transition: all 0.35s ease;
  filter: drop-shadow(0 14px 24px rgba(11, 22, 51, 0.12));
}

.phone-mockup-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.phone-mockup-card img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

/* ==========================================================================
   06. NUESTROS SERVICIOS
   ========================================================================== */
.services-section {
  padding-top: 60px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(23, 102, 255, 0.09);
}

.service-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon-circle svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

/* ==========================================================================
   07. CÓMO TRABAJAMOS (PROCESO)
   ========================================================================== */
.process-section {
  padding-top: 50px;
  padding-bottom: 65px;
  background: #F8FAFC;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.65fr;
  align-items: center;
  gap: 40px;
}

.process-card-flow {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.process-step-item:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -10px;
  top: 14px;
  font-size: 1.4rem;
  color: #CBD5E1;
  font-weight: 300;
}

.step-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.step-content {
  display: flex;
  flex-direction: column;
}

.step-number {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   08. TECNOLOGÍAS Y CAPACIDADES + SECTORES
   ========================================================================== */
.tech-sectors-section {
  padding-top: 60px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.tech-sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tech-column, .sectors-column {
  display: flex;
  flex-direction: column;
}

.sectors-column {
  position: relative;
}

.decorative-trend-chart {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 90px;
  pointer-events: none;
  opacity: 0.7;
}

.tech-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.tech-pill-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.tech-pill-badge:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-pill-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sectors-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.sector-tile {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.sector-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.sector-tile svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.sector-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
}

/* ==========================================================================
   09. RETENCIÓN Y CRECIMIENTO
   ========================================================================== */
.retention-section {
  padding-top: 60px;
  padding-bottom: 70px;
  background: #F8FAFC;
}

.retention-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.retention-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.retention-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.retention-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.retention-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.retention-card:nth-child(2) .retention-icon-box { background: #ECFEFF; color: #0284C7; }
.retention-card:nth-child(3) .retention-icon-box { background: #F5F3FF; color: #8B5CF6; }
.retention-card:nth-child(4) .retention-icon-box { background: #EEF2FF; color: #4F46E5; }
.retention-card:nth-child(5) .retention-icon-box { background: #FDF2F8; color: #DB2777; }
.retention-card:nth-child(6) .retention-icon-box { background: #F0FDF4; color: #16A34A; }

.retention-icon-box svg {
  width: 19px;
  height: 19px;
}

.retention-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.retention-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   10. TESTIMONIOS / HISTORIAS DE ÉXITO
   ========================================================================== */
.testimonials-section {
  padding-top: 60px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.testimonials-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.testimonials-arrows {
  display: flex;
  gap: 10px;
}

.arrow-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.arrow-circle-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.testimonial-author {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--secondary);
}

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

/* ==========================================================================
   11. PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
  padding-top: 60px;
  padding-bottom: 75px;
  background: #F8FAFC;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.6fr;
  gap: 48px;
  align-items: flex-start;
}

.faq-columns-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: #CBD5E1;
}

.faq-accordion-header {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--secondary);
  background: #FFFFFF;
  cursor: pointer;
}

.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
  background: #FFFFFF;
}

.faq-accordion-item.active .faq-accordion-body {
  max-height: 220px;
  padding: 0 18px 16px;
}

.faq-accordion-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   12. BANNER CTA FINAL
   ========================================================================== */
.final-cta-section {
  padding-top: 30px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.cta-banner-box {
  background: var(--cta-gradient);
  border-radius: var(--radius-xl);
  padding: 42px 48px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(23, 102, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-content {
  max-width: 580px;
}

.cta-badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta-banner-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.cta-banner-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #FFFFFF;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-white-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 260px;
}

.footer-social-row {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  background: var(--bg-subtle);
  transition: all 0.2s ease;
}

.footer-social-icon:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link-list a {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Newsletter */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #FFFFFF;
  padding: 3px 3px 3px 14px;
  transition: border-color 0.2s ease;
}

.newsletter-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 102, 255, 0.12);
}

.newsletter-input {
  border: none;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: var(--text-primary);
  background: transparent;
}

.newsletter-submit-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.newsletter-submit-btn:hover {
  background: var(--primary-hover);
}

.newsletter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   Validaciones para: 1280px, 1024px, 768px, 480px, 390px, 360px
   ========================================================================== */

/* Laptop / Desktop pequeño (1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .retention-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (992px) */
@media (max-width: 992px) {
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-header-wrapper {
    background-image: 
      linear-gradient(180deg, 
        rgba(255, 255, 255, 0.96) 0%, 
        rgba(255, 255, 255, 0.90) 45%, 
        rgba(255, 255, 255, 0.98) 100%
      ),
      url('../images/pagina_principal.png');
    background-position: center;
    background-size: cover;
  }
  .hero-visual-spacer {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-social-proof {
    justify-content: center;
  }
  .hero-visual-wrapper {
    margin-top: 24px;
    justify-content: center;
  }
  .metrics-bar-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .metric-col:not(:last-child)::after {
    display: none;
  }
  .mobile-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mobile-showcase-info {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .process-layout {
    grid-template-columns: 1fr;
  }
  .process-card-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step-item:not(:last-child)::after {
    display: none;
  }
  .tech-sectors-grid {
    grid-template-columns: 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .cta-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .cta-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet portrait & Mobile grande (768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .phones-gallery-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .faq-columns-wrap {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Móvil estándar (480px / 390px / 360px) */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }
  .metrics-bar-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .phones-gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 340px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-card-flow {
    grid-template-columns: 1fr;
  }
  .tech-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sectors-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .retention-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-actions {
    flex-direction: column;
  }
  .cta-banner-actions .btn-white-pill,
  .cta-banner-actions .btn-glass-pill {
    width: 100%;
    justify-content: center;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}
