/* ═══════════════════════════════════════════════════════
   N3XTGEN TECHNOLOGIES — styles.css v2.0
   Inter + DM Sans | Azul #2563EB + Verde #00C48C
═══════════════════════════════════════════════════════ */

:root {
  --blue:        #2563EB;
  --blue-dark:   #1d4ed8;
  --blue-light:  rgba(37,99,235,0.08);
  --green:       #00C48C;
  --green-dark:  #00a877;
  --navy:        #0F172A;
  --navy-2:      #1E293B;
  --text:        #1a1a2e;
  --text-2:      #4a4a68;
  --text-3:      #8888a0;
  --border:      #e2e2ee;
  --surface:     #f8f9fc;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-inter:  'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}

.nav-menu ul { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-link:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-cta {
  font-size: 14px; font-weight: 600;
  background: var(--blue); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius);
  transition: background .15s;
}
.btn-cta:hover { background: var(--blue-dark); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.bar { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

@media (max-width: 900px) {
  .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px; z-index: 999; }
  .nav-menu.active { display: block; }
  .nav-menu ul { flex-direction: column; gap: 8px; align-items: flex-start; }
  .menu-toggle { display: flex; }
  .header-actions { display: none; }
}

/* ── Hero ── */
.hero { position: relative; padding: 140px 0 80px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--navy); }
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 60%, rgba(37,99,235,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,196,140,0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.08) 0%, transparent 40%);
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 500; color: #93c5fd;
  letter-spacing: 0.5px; margin-bottom: 24px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }

.hero-title { font-family: var(--font-inter); font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 900; color: var(--white); line-height: 1.08; margin-bottom: 20px; letter-spacing: -1px; }
.hero-title em { font-style: italic; color: var(--blue); font-weight: 800; }

.hero-subtitle { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: 36px; max-width: 460px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  padding: 14px 28px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: background .15s;
}
.btn-hero-primary:hover { background: var(--blue-dark); color: var(--white); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.65);
  font-size: 15px; font-weight: 500;
  padding: 14px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color .15s, color .15s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.35); color: var(--white); }

.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat-num { display: block; font-family: var(--font-inter); font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; margin-top: 3px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* Code window */
.hero-visual { position: relative; }
.code-window { background: #0d1117; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #161b22; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename { font-size: 12px; color: rgba(255,255,255,0.35); font-family: 'SF Mono', Consolas, monospace; margin-left: 8px; }
.code-body { padding: 20px 24px; font-family: 'SF Mono', Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.8; }
.code-line { white-space: pre; }
.code-indent { padding-left: 20px; }
.code-indent2 { padding-left: 40px; }
.kw   { color: #ff7b72; }
.var  { color: #79c0ff; }
.prop { color: #79c0ff; }
.str  { color: #a5d6ff; }
.fn   { color: #d2a8ff; }
.op   { color: rgba(255,255,255,0.5); }
.comment { color: #6e7681; }
.cursor { color: var(--green); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: var(--radius); padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.20); font-size: 12px; font-weight: 600; color: var(--text);
  animation: floatY 4s ease-in-out infinite;
}
.float-badge i { color: var(--green); }
.float-badge--1 { bottom: -16px; left: -20px; animation-delay: 0s; }
.float-badge--2 { top: 24px; right: -16px; animation-delay: 1.8s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(37,99,235,0.8), transparent); margin: 0 auto; animation: scrollDrop 2s ease-in-out infinite; }
@keyframes scrollDrop { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }

@media (max-width: 900px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .float-badge--2 { display: none; }
}

/* ── Trust bar ── */
.trust-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-bar .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-label { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.trust-item i { font-size: 15px; color: var(--blue); }

/* ── Section helpers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: var(--blue-light); color: var(--blue); border-radius: 20px; padding: 4px 14px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.section-tag--light { background: rgba(37,99,235,0.12); color: #93c5fd; }
.section-title { font-family: var(--font-inter); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-title em { font-style: italic; color: var(--blue); }
.section-sub { font-size: 15px; color: var(--text-3); font-weight: 300; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Servicios ── */
.services { padding: 96px 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; align-items: start; }

.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px 28px; position: relative; transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-card--featured { background: var(--navy); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg); transform: scale(1.03); }
.service-card--featured:hover { transform: scale(1.03) translateY(-3px); }

.service-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }

.service-icon { width: 48px; height: 48px; background: var(--blue-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 20px; margin-bottom: 16px; }
.service-card--featured .service-icon { background: rgba(37,99,235,0.2); color: #93c5fd; }

.service-card h3 { font-family: var(--font-inter); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-card--featured h3 { color: var(--white); }
.service-card p { font-size: 13.5px; color: var(--text-3); line-height: 1.65; margin-bottom: 16px; }
.service-card--featured p { color: rgba(255,255,255,0.5); }

.service-list { list-style: none; }
.service-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 5px 0; }
.service-card--featured .service-list li { color: rgba(255,255,255,0.65); }
.service-list li i { color: var(--green); font-size: 11px; flex-shrink: 0; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
  .service-card--featured { transform: scale(1); }
}

/* ── Productos ── */
.products { background: var(--surface); padding: 96px 0; }

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

.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

.product-card--hottely  .product-icon { background: rgba(0,196,140,0.1); color: #00C48C; }
.product-card--nextventas .product-icon { background: rgba(249,115,22,0.1); color: #f97316; }
.product-card--docket   .product-icon { background: rgba(37,99,235,0.1); color: var(--blue); }
.product-card--elitefit .product-icon { background: rgba(168,85,247,0.1); color: #a855f7; }

.product-name { font-family: var(--font-inter); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.product-cat  { font-size: 12px; color: var(--text-3); }
.product-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }

.product-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.product-tags span { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--text-3); }

.product-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); transition: gap .15s; }
.product-link:hover { gap: 10px; }

@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; } }

/* ── Portfolio ── */
.portfolio { padding: 96px 0; }

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

.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; border: 1px solid var(--border); }
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.portfolio-img-wrap { position: relative; overflow: hidden; }
.portfolio-img-wrap img { width: 100%; height: 180px; object-fit: cover; transition: transform .3s; }
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.05); }

.portfolio-overlay { position: absolute; inset: 0; background: rgba(37,99,235,0.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay i { font-size: 24px; color: var(--white); }

.portfolio-info { padding: 14px; background: var(--white); }
.portfolio-cat { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 4px; }
.portfolio-info h4 { font-family: var(--font-inter); font-size: 14px; font-weight: 700; color: var(--text); }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ── Proceso / About ── */
.about { background: var(--navy); padding: 96px 0; position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.15) 0%, transparent 60%); }
.about .section-header .section-title { color: var(--white); }
.about .section-header .section-sub { color: rgba(255,255,255,0.4); }

.process-grid { display: flex; align-items: flex-start; gap: 0; position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.process-step { flex: 1; text-align: center; padding: 0 20px; }
.process-num { font-family: var(--font-inter); font-size: 2.5rem; font-weight: 900; color: var(--blue); opacity: 0.3; line-height: 1; margin-bottom: 10px; }
.process-icon { width: 48px; height: 48px; background: rgba(37,99,235,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #93c5fd; margin: 0 auto 12px; }
.process-step h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; }
.process-connector { width: 60px; height: 1px; background: rgba(255,255,255,0.08); flex-shrink: 0; margin-top: 36px; }

@media (max-width: 768px) {
  .process-grid { flex-direction: column; gap: 32px; align-items: center; }
  .process-connector { width: 1px; height: 32px; margin: 0 auto; }
}

/* ── Equipo ── */
.team { background: var(--surface); padding: 96px 0; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }

.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-img-wrap { height: 200px; overflow: hidden; background: var(--surface); }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.team-card:hover .team-img-wrap img { transform: scale(1.04); }

.team-info { padding: 20px; text-align: center; }
.team-info h4 { font-family: var(--font-inter); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--text-3); margin-bottom: 14px; display: block; }

.team-social { display: flex; gap: 8px; justify-content: center; }
.team-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-3); transition: .15s; }
.team-social a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; } }

/* ── Contacto ── */
.contact { position: relative; padding: 96px 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: var(--navy); }
.contact-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 50%, rgba(37,99,235,0.18) 0%, transparent 55%); }

.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }

.contact-title { font-family: var(--font-inter); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.contact-title em { font-style: italic; color: var(--blue); }
.contact-sub { font-size: 15px; color: rgba(255,255,255,0.45); font-weight: 300; margin-bottom: 32px; line-height: 1.7; }

.contact-perks { list-style: none; margin-bottom: 32px; }
.contact-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.contact-perks li i { color: var(--green); font-size: 15px; flex-shrink: 0; }

.contact-info-items { display: flex; flex-direction: column; gap: 10px; }
.contact-info-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.55); }
.contact-info-item i { color: var(--green); width: 16px; }

.contact-form-card { background: var(--white); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.contact-form-card h3 { font-family: var(--font-inter); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }

.input-group { margin-bottom: 16px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 14px; height: 44px; font-size: 14px; font-family: var(--font-sans);
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-group textarea { height: auto; padding: 12px 14px; resize: vertical; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.input-group input.error, .input-group select.error, .input-group textarea.error { border-color: #ef4444; }

.form-alert { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.form-alert--ok  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.form-alert--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 600; font-family: var(--font-sans);
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background .15s;
}
.btn-submit:hover { background: var(--blue-dark); }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .input-row { grid-template-columns: 1fr; }
}

/* ── Footer ── */
footer { background: var(--navy); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 6px; }
.footer-col p i { color: var(--green); margin-right: 6px; font-size: 12px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color .15s; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); font-size: 13px; transition: .15s; }
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.25); transition: color .15s; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── WhatsApp ── */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }

/* ── Modales ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.8); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-box { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; max-width: 560px; width: 100%; position: relative; box-shadow: var(--shadow-lg); animation: slideUp .25s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.modal-box img { width: 100%; height: 220px; object-fit: cover; }
.modal-content { padding: 24px; }
.modal-cat { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; display: block; }
.modal-content h3 { font-family: var(--font-inter); font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.modal-content p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.modal-meta { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.modal-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.modal-link:hover { gap: 10px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--white); color: var(--text); }

/* ── Trust bar carrusel ── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
}

.trust-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.trust-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scrollTrack 30s linear infinite;
}

.trust-track:hover { animation-play-state: paused; }

@keyframes scrollTrack {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 28px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity .2s;
  filter: grayscale(100%);
}

.trust-logo-item:hover { opacity: 0.9; filter: none; }

.trust-logo-item i {
  font-size: 22px;
  color: var(--text-2);
}

.trust-logo-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Process timeline ── */
.process-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.process-item {
  display: grid;
  grid-template-columns: 60px 40px 1fr;
  gap: 0 16px;
  align-items: start;
  margin-bottom: 0;
}

.process-left {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.process-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #93c5fd;
  flex-shrink: 0;
}

.process-icon-wrap--final {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
}

.process-line-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.process-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(37,99,235,0.3);
  border: 2px solid rgba(37,99,235,0.5);
  flex-shrink: 0;
}

.process-dot--final {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
  width: 16px; height: 16px;
}

.process-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.08);
  min-height: 60px;
  margin-top: 4px;
}

.process-right {
  padding: 0 0 48px 0;
}

.process-step-num {
  display: inline-block;
  font-family: var(--font-inter);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(37,99,235,0.6);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.process-right h4 {
  font-family: var(--font-inter);
  font-size: 1.05rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.process-right p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* Paso final destacado */
.process-item--final .process-right {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px 24px;
  margin-left: 0;
}

.process-item--final .process-right h4 { font-size: 1.15rem; color: var(--white); }
.process-item--final .process-right p  { color: rgba(255,255,255,0.6); margin-bottom: 16px; }

.process-final-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,196,140,0.15);
  border: 1px solid rgba(0,196,140,0.3);
  color: #4ade80;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.process-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px; font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .15s, gap .15s;
}
.process-cta:hover { background: var(--blue-dark); color: var(--white); gap: 12px; }

@media (max-width: 576px) {
  .process-item { grid-template-columns: 44px 28px 1fr; gap: 0 10px; }
  .process-icon-wrap { width: 38px; height: 38px; font-size: 15px; }
}

/* ══════════════════════════════════════
   IA & AUTOMATIZACIÓN
══════════════════════════════════════ */
.ai-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.ai-bg {
  position: absolute; inset: 0;
  background: #060d1a;
  z-index: 0;
}

.ai-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(37,99,235,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(0,196,140,0.10) 0%, transparent 45%);
  z-index: 0;
}

/* Grid puntillado sutil */
.ai-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.ai-section .container {
  position: relative;
  z-index: 1;
}

.section-tag--ai {
  background: rgba(37,99,235,0.15);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.25);
}

/* Stats bar */
.ai-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ai-stat { text-align: center; }
.ai-stat-num {
  display: block;
  font-family: var(--font-inter);
  font-size: 2.4rem; font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.ai-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 160px;
  line-height: 1.5;
  display: block;
}
.ai-stat-div {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Grid de cards IA */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.ai-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: background .2s, border-color .2s, transform .2s;
}

.ai-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-3px);
}

.ai-card--featured {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.3);
  grid-column: span 1;
}

.ai-card--featured:hover {
  background: rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.5);
}

.ai-card-icon {
  width: 46px; height: 46px;
  background: rgba(37,99,235,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #93c5fd;
  margin-bottom: 16px;
}

.ai-card--featured .ai-card-icon {
  background: rgba(37,99,235,0.3);
  color: #bfdbfe;
}

.ai-card h3 {
  font-family: var(--font-inter);
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ai-list {
  list-style: none;
  margin-bottom: 18px;
}

.ai-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  line-height: 1.5;
}

.ai-list li i {
  color: var(--green);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
  font-family: 'SF Mono', Consolas, monospace;
}

/* Card CTA */
.ai-card--cta {
  background: var(--blue);
  border-color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-card--cta:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-3px);
}

.ai-cta-inner { text-align: center; }

.ai-cta-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white);
  margin: 0 auto 16px;
}

.ai-cta-inner h3 {
  font-family: var(--font-inter);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ai-cta-inner p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px; font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: background .15s, gap .15s;
  margin-bottom: 10px;
}

.ai-cta-btn:hover { background: #f0f6ff; color: var(--blue-dark); gap: 12px; }

.ai-cta-note {
  font-size: 11px;
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 0 !important;
}

/* Banner IBM diferenciador */
.ai-ibm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.ai-ibm-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-ibm-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #93c5fd;
  flex-shrink: 0;
}

.ai-ibm-title {
  font-size: 14px; font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.ai-ibm-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 400px;
  line-height: 1.5;
}

.ai-ibm-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-ibm-stack span {
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 600;
  color: #93c5fd;
  white-space: nowrap;
  font-family: 'SF Mono', Consolas, monospace;
}

/* Agregar IA al nav */
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-stats { padding: 20px 24px; }
  .ai-stat-div { display: none; }
  .ai-ibm-banner { flex-direction: column; align-items: flex-start; }
}
