/* ═══════════════════════════════════════════════
   NEXARO — Stylesheet
   Paleta: #050d1a fondo | #00a8ff acento | #fff texto
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050d1a;
  --bg2:       #080f20;
  --bg3:       #0b1530;
  --card:      #0d1a35;
  --card2:     #101e3a;
  --border:    rgba(0,168,255,0.15);
  --accent:    #00a8ff;
  --accent2:   #0066cc;
  --accent3:   #004499;
  --text:      #e8edf5;
  --text2:     #8899bb;
  --text3:     #556688;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --glow:      0 0 40px rgba(0,168,255,0.2);
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

html { overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent3); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(0,168,255,0.3); }

/* ══════════════ NAVBAR ══════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  padding: 0 24px;
}

#navbar.scrolled {
  background: rgba(5,13,26,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(0,168,255,0.08); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}

.nav-cta:hover { background: #33bbff !important; }

.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--accent);
  color: var(--bg);
}

.lang-btn:hover:not(.active) { color: var(--white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--white); }

.mobile-menu.open { display: flex; }

/* ══════════════ HERO ══════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 80px;
}

#starsCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,168,255,0.12);
  border: 1px solid rgba(0,168,255,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(135deg, #00a8ff 0%, #0066cc 50%, #33ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: #33bbff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,168,255,0.4);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

/* ══════════════ SECTION COMMONS ══════════════ */
section { padding: 100px 24px; }
section:nth-child(even) { background: var(--bg2); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 17px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════ SERVICIOS ══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(0,168,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.service-card.featured {
  border-color: rgba(0,168,255,0.4);
  background: linear-gradient(135deg, #0d1a35 0%, #0a1628 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(0,168,255,0.08);
  border: 1px solid rgba(0,168,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

.service-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
}

.service-link:hover { color: #33bbff; }

/* ══════════════ PORTFOLIO ══════════════ */
#portfolio { background: var(--bg); }

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

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  border-color: rgba(0,168,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.portfolio-card.wide {
  grid-column: 1 / -1;
}

.portfolio-visual {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card.wide .portfolio-visual {
  height: 200px;
}

.portfolio-visual.medical {
  background: linear-gradient(135deg, #0a1628 0%, #051020 100%);
}
.portfolio-visual.medical .portfolio-glow { background: radial-gradient(circle at 50% 50%, rgba(0,180,120,0.25) 0%, transparent 70%); }

.portfolio-visual.logistics {
  background: linear-gradient(135deg, #0a1628 0%, #051020 100%);
}
.portfolio-visual.logistics .portfolio-glow { background: radial-gradient(circle at 50% 50%, rgba(255,140,0,0.2) 0%, transparent 70%); }

.portfolio-visual.whatsapp {
  background: linear-gradient(135deg, #0a1628 0%, #051020 100%);
}
.portfolio-visual.whatsapp .portfolio-glow { background: radial-gradient(circle at 50% 50%, rgba(37,211,102,0.2) 0%, transparent 70%); }

.portfolio-visual.voice {
  background: linear-gradient(135deg, #0a1628 0%, #051020 100%);
}
.portfolio-visual.voice .portfolio-glow { background: radial-gradient(circle at 50% 50%, rgba(0,168,255,0.25) 0%, transparent 70%); }

.portfolio-glow {
  position: absolute;
  inset: 0;
}

.portfolio-icon-wrap {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Flow diagram (Gestor de Citas) ── */
.flow-visual {
  height: 220px !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 16px;
  gap: 12px;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 2;
  position: relative;
  width: 100%;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex-shrink: 0;
}

.flow-node span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.node-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.node-wa .node-icon   { background: rgba(37,211,102,0.12); border: 1.5px solid rgba(37,211,102,0.4); }
.node-ai .node-icon   { background: rgba(0,168,255,0.12);  border: 1.5px solid rgba(0,168,255,0.5); box-shadow: 0 0 20px rgba(0,168,255,0.2); }
.node-cal .node-icon  { background: rgba(255,107,53,0.12); border: 1.5px solid rgba(255,107,53,0.4); }
.node-reply .node-icon{ background: rgba(167,139,250,0.12);border: 1.5px solid rgba(167,139,250,0.4); }

.node-pulse {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  border-radius: 14px;
  animation: nodePulse 2.4s ease-in-out infinite;
}
.node-wa   .node-pulse { border: 1.5px solid rgba(37,211,102,0.5);  animation-delay: 0s; }
.node-ai   .node-pulse { border: 1.5px solid rgba(0,168,255,0.6);   animation-delay: 0.4s; }
.node-cal  .node-pulse { border: 1.5px solid rgba(255,107,53,0.5);  animation-delay: 0.8s; }
.node-reply.node-pulse { border: 1.5px solid rgba(167,139,250,0.5); animation-delay: 1.2s; }
.node-pulse.ai    { border-color: rgba(0,168,255,0.6);   animation-delay: 0.4s; }
.node-pulse.cal   { border-color: rgba(255,107,53,0.5);  animation-delay: 0.8s; }
.node-pulse.reply { border-color: rgba(167,139,250,0.5); animation-delay: 1.2s; }

@keyframes nodePulse {
  0%   { transform: translateX(-50%) scale(1);   opacity: 0.7; }
  50%  { transform: translateX(-50%) scale(1.35); opacity: 0; }
  100% { transform: translateX(-50%) scale(1);   opacity: 0; }
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 90px;
  margin-bottom: 18px;
}

.conn-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.flow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,168,255,0.15), rgba(0,168,255,0.4), rgba(0,168,255,0.15));
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.flow-dot {
  position: absolute;
  top: 50%; left: -6px;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,168,255,0.8);
  animation: dotTravel 2s ease-in-out infinite;
}
.flow-dot.delay2 { animation-delay: 0.5s; }
.flow-dot.delay3 { animation-delay: 1s; }

@keyframes dotTravel {
  0%   { left: -4px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

/* Floating messages */
.flow-message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  z-index: 2;
  position: relative;
  width: 100%;
  justify-content: center;
}

.fm-bubble {
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 12px;
  max-width: 240px;
  line-height: 1.4;
  animation: fmPulse 3s ease-in-out infinite;
}

.fm-bubble.user {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border-radius: 12px 12px 12px 2px;
  animation-delay: 0s;
}

.fm-bubble.bot {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: rgba(150,255,180,0.9);
  border-radius: 12px 12px 2px 12px;
  animation-delay: 1.5s;
}

@keyframes fmPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-3px); }
}

/* Chatbot visual */
.portfolio-visual.chatbot {
  background: linear-gradient(135deg, #0a1628 0%, #051020 100%);
}
.portfolio-visual.chatbot .portfolio-glow {
  background: radial-gradient(circle at 50% 50%, rgba(120,80,255,0.2) 0%, transparent 70%);
}

.chat-bubbles {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80%;
  z-index: 1;
}

.bubble {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 2px;
  max-width: 75%;
  animation: bubbleFade 3s ease-in-out infinite;
}

.bubble.bot {
  background: rgba(0,168,255,0.15);
  border-color: rgba(0,168,255,0.3);
  color: #a8d8ff;
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
}

.bubble.b1 { animation-delay: 0s; }
.bubble.b2 { animation-delay: 1s; }
.bubble.b3 { animation-delay: 2s; }

@keyframes bubbleFade {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* Voice waves animation */
.voice-waves {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  z-index: 1;
}

.wave {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.wave:nth-child(1) { height: 12px; animation-delay: 0s; }
.wave:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.wave:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.wave:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.wave:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.portfolio-info { padding: 24px 28px; }

.portfolio-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.portfolio-info p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,168,255,0.08);
  border: 1px solid rgba(0,168,255,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ══════════════ POR QUÉ NEXARO ══════════════ */
#por-que { background: var(--bg2); }

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

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: rgba(0,168,255,0.3);
  transform: translateY(-3px);
}

.why-num {
  font-size: 40px;
  font-weight: 900;
  color: rgba(0,168,255,0.15);
  margin-bottom: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ══════════════ TESTIMONIOS ══════════════ */
#testimonios { background: var(--bg); }

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(0,168,255,0.3);
  transform: translateY(-3px);
}

.stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.av1 { background: linear-gradient(135deg, #0066cc, #00a8ff); color: white; }
.av2 { background: linear-gradient(135deg, #6d28d9, #a855f7); color: white; }
.av3 { background: linear-gradient(135deg, #0d9488, #14b8a6); color: white; }

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text3);
}

/* ══════════════ FAQ ══════════════ */
#faq { background: var(--bg2); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(0,168,255,0.35); }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--accent); }

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}

/* ══════════════ CONTACTO ══════════════ */
#contacto { background: var(--bg); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-tag { display: block; margin-bottom: 16px; }

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-features { display: flex; flex-direction: column; gap: 14px; }

.cf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
}

.cf-icon {
  width: 24px;
  height: 24px;
  background: rgba(0,168,255,0.1);
  border: 1px solid rgba(0,168,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,168,255,0.5);
  background: rgba(0,168,255,0.04);
}

.form-group select option {
  background: var(--card);
  color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

.form-legal {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  margin-top: 12px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(0,168,255,0.08);
  border: 1px solid rgba(0,168,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.form-success.show { display: flex; }

/* ══════════════ FOOTER ══════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 240px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links h4,
.footer-contact-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}

.footer-links a,
.footer-contact-col a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact-col a:hover { color: var(--accent); }

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-lang { margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  max-width: 1200px;
  margin: 0 auto;
}

/* ══════════════ AOS Animations ══════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animated {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card.wide { grid-column: auto; }

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 72px 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .lang-switcher { display: none; }
}

/* ══════════════ ICON ANIMATIONS ══════════════ */

/* Automatizaciones IA — glow pulse */
.service-card:nth-child(1) .service-icon {
  animation: iconGlow 2.4s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,168,255,0.2), 0 0 0 1px rgba(0,168,255,0.2); }
  50%       { box-shadow: 0 0 24px rgba(0,168,255,0.7), 0 0 0 1px rgba(0,168,255,0.6); border-color: rgba(0,168,255,0.8); }
}

/* Páginas Web — float up/down */
.service-card:nth-child(2) .service-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

/* Apps a Medida — float up/down (offset) */
.service-card:nth-child(3) .service-icon {
  animation: iconFloat 3.4s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Copilot Médico — heartbeat pulse */
.portfolio-card:nth-child(1) .portfolio-icon-wrap {
  animation: iconPulse 1.8s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.12); }
  60%       { transform: scale(1); }
  80%       { transform: scale(1.06); }
}

/* Gestión de Repartos — float */
.portfolio-card:nth-child(2) .portfolio-icon-wrap {
  animation: iconFloat 3.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
