/* ===== VARIABLES ===== */
:root {
  --teal: #2A9D8F;
  --teal-dark: #217A6E;
  --teal-light: #A8DADC;
  --lila: #9B89C4;
  --lila-light: #EDE9F8;
  --blue: #264E70;
  --white: #FAFAFA;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --text: #1F2937;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--blue); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; color: var(--blue); }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); }
p { line-height: 1.7; color: var(--gray); }

.accent { color: var(--teal); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== BOTONES ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.75rem; border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary.btn-large { font-size: 1.15rem; padding: 1rem 2.25rem; }

.btn-secondary {
  display: inline-flex; align-items: center;
  color: var(--teal); font-family: 'Nunito', sans-serif; font-weight: 700;
  padding: 0.85rem 1.75rem; border-radius: 50px;
  border: 2px solid var(--teal); transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: white; }

.btn-outline {
  display: inline-flex; align-items: center;
  color: var(--blue); font-family: 'Nunito', sans-serif; font-weight: 700;
  padding: 0.75rem 1.5rem; border-radius: 50px;
  border: 2px solid var(--blue); transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue); color: white; }

.btn-nav {
  background: var(--teal); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 0.6rem 1.25rem; border-radius: 50px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--teal-dark); }

.section-label {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: 0.75rem;
}
.section-sub { font-size: 1.05rem; max-width: 580px; margin: 0.75rem auto 0; }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,250,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 2rem; height: 68px;
}
.logo {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--blue); display: flex; align-items: center; gap: 8px;
  line-height: 1;
}
.logo-mark { display: flex; align-items: center; flex-shrink: 0; }
.logo-text { line-height: 1; }
.logo-sub { display: block; }
.logo-c { color: var(--teal); }
.logo-sub { font-size: 0.6rem; font-weight: 600; color: var(--gray); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { font-weight: 500; font-size: 0.9rem; color: var(--gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; gap: 0; padding: 0 1.25rem 1rem; background: var(--white); }
.nav-mobile a { padding: 0.75rem 0; font-weight: 600; border-bottom: 1px solid var(--gray-light); color: var(--blue); }
.nav-mobile.open { display: flex; }
.btn-mobile-wa { background: var(--teal); color: white !important; border-radius: 50px; text-align: center; padding: 0.75rem !important; margin-top: 0.5rem; border: none !important; }

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: none;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh; padding-top: 68px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem;
  max-width: 1140px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem;
  position: relative;
}
.hero-badge {
  display: inline-block; background: var(--lila-light); color: var(--lila);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.25rem;
}
.hero-content h1 { margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; align-items: center; gap: 1rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--blue); }
.stat-label { font-size: 0.75rem; color: var(--gray); }
.stat-divider { width: 1px; height: 32px; background: var(--gray-light); }
/* Hero blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
  animation: blob-float 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  background: rgba(42,157,143,0.12);
  top: -80px; right: 0;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: rgba(155,137,196,0.15);
  bottom: 40px; left: -60px;
  animation-delay: 3s;
}
@keyframes blob-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

.hero-content { padding: 3rem 0; position: relative; z-index: 1; }
.hero-image { position: relative; z-index: 1; }
.hero-image img {
  width: 100%; border-radius: 24px; object-fit: cover;
  max-height: 600px; box-shadow: 0 16px 48px rgba(42,157,143,0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-image img:hover {
  transform: scale(1.015);
  box-shadow: 0 24px 64px rgba(42,157,143,0.22);
}

/* Floating badge on hero image */
.hero-img-badge {
  position: absolute; bottom: 20px; left: -20px;
  background: white; border-radius: 12px;
  padding: 0.6rem 1rem; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--blue);
  animation: badge-float 4s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== SERVICIOS ===== */
#servicios {
  padding: 5rem 0;
  background: linear-gradient(180deg, #F0FAF9 0%, #FAFAFA 100%);
  text-align: center;
}
#servicios h2 { margin-bottom: 0.5rem; }
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin: 3rem 0 2.5rem; text-align: left;
}
.servicio-card {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  border: 1.5px solid #E5E7EB; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.servicio-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-6px); }
.servicio-card.featured { border-color: var(--teal); background: linear-gradient(135deg, #F0FAF9, white); }
.servicio-card.featured:hover { transform: translateY(-8px); }
.servicio-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #F0FAF9, #EDE9F8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--teal);
  transition: transform 0.25s;
}
.servicio-card:hover .servicio-icon { transform: scale(1.1); }
.servicio-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.servicio-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.servicio-precio { margin-top: auto; }
.precio { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--teal); }
.moneda { font-size: 0.8rem; color: var(--gray); margin-left: 2px; }
.precio-tachado { font-size: 0.9rem; color: var(--gray); text-decoration: line-through; margin-left: 6px; }
.precio-consultar { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--gray); }
.servicios-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.servicios-cta p { font-weight: 500; color: var(--blue); }

/* ===== DOCTORA ===== */
#doctora { padding: 5rem 0; }
.doctora-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.doctora-img { position: relative; }
.doctora-img img {
  border-radius: 20px; object-fit: cover; height: 480px; width: 100%;
  box-shadow: var(--shadow); transition: transform 0.4s ease;
}
.doctora-img:hover img { transform: scale(1.02); }

.doctora-img-tag {
  position: absolute; bottom: 20px; right: -14px;
  background: white; border-radius: 10px;
  padding: 0.5rem 0.9rem; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--blue);
  animation: badge-float 5s ease-in-out infinite;
  animation-delay: 1s;
}
.doctora-content h2 { margin-bottom: 1rem; }
.doctora-content p { margin-bottom: 1.5rem; }
.doctora-lista { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.doctora-lista li {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 500; color: var(--blue); font-size: 0.95rem;
}

/* ===== CHATBOT ===== */
#chatbot {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--blue) 0%, #1A3A52 100%);
  text-align: center;
}
#chatbot .section-label { color: var(--teal-light); }
#chatbot h2 { color: white; margin-bottom: 0.5rem; }
#chatbot .section-sub { color: rgba(255,255,255,0.7); margin-bottom: 3rem; }

.chatbot-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  text-align: left; margin-top: 3rem;
}

.step { display: flex; gap: 1rem; margin-bottom: 2rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { color: white; margin-bottom: 0.25rem; font-size: 1rem; }
.step-content p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* Phone mock */
.phone-frame {
  background: #ECE5DD; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3); max-width: 340px; margin: 0 auto;
}
.phone-header {
  background: #075E54; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal);
  color: white; font-family: 'Nunito', sans-serif; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.phone-notch {
  height: 6px; background: #064e44; border-radius: 0 0 6px 6px;
  width: 80px; margin: 0 auto;
}
.phone-info { flex: 1; }
.phone-info strong { display: block; color: white; font-size: 0.9rem; }
.phone-info { display: flex; flex-direction: column; gap: 2px; }
.phone-info strong { color: white; font-size: 0.88rem; }
.phone-info > span { color: rgba(255,255,255,0.7); font-size: 0.72rem; display: flex; align-items: center; gap: 4px; }

.online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.chat-messages { padding: 1rem; min-height: 260px; display: flex; flex-direction: column; gap: 0.5rem; }
.msg {
  max-width: 80%; padding: 0.6rem 0.9rem; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.5; opacity: 0;
  transition: opacity 0.4s ease;
}
.msg.visible { opacity: 1; }
.msg-user {
  background: #DCF8C6; align-self: flex-end;
  border-bottom-right-radius: 4px; color: #1a1a1a;
}
.msg-bot {
  background: white; align-self: flex-start;
  border-bottom-left-radius: 4px; color: #1a1a1a;
}

.msg-confirm {
  background: #e8f8f0 !important; border: 1px solid #a8e6c5;
  font-weight: 500;
}
.confirm-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: #1a5c38; margin-top: 4px;
}
.phone-input {
  background: white; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--gray);
}

/* ===== TESTIMONIOS ===== */
#testimonios { padding: 5rem 0; text-align: center; }
#testimonios h2 { margin-bottom: 2.5rem; }
.testimonios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; text-align: left; }
.testimonio-card {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  border: 1.5px solid #E5E7EB; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonio-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.stars { color: #FBBF24; font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonio-card p { font-size: 0.95rem; color: var(--text); margin-bottom: 1.25rem; font-style: italic; }
.testimonio-autor { display: flex; align-items: center; gap: 0.75rem; }
.autor-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--lila-light);
  color: var(--lila); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonio-autor strong { display: block; font-size: 0.9rem; color: var(--blue); }
.testimonio-autor span { font-size: 0.78rem; color: var(--gray); }

/* ===== CTA FINAL ===== */
#cta-final {
  padding: 5rem 0;
  background: linear-gradient(135deg, #F0FAF9 0%, #EDE9F8 100%);
}
#cta-final .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.cta-foto { border-radius: 20px; object-fit: cover; height: 420px; width: 100%; box-shadow: var(--shadow); }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-detalle { font-size: 0.85rem; color: var(--gray); margin-top: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--blue);
  padding: 3.5rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem;
  margin-bottom: 2.5rem;
}
footer .logo { color: white; }
footer .logo-sub { color: rgba(255,255,255,0.5); }
footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.75rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1);
  color: white; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--teal); }
.footer-col h4 {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contacto li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 0.75rem;
}
.footer-contacto li svg { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.footer-contacto a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contacto a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-credit strong { color: var(--teal-light); }

/* ===== WA FLOTANTE ===== */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ===== PROPUESTA NEURALAB ===== */
#propuesta {
  padding: 6rem 0;
  background-color: #0B2030;
  background-image:
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(155deg, #0B2030 0%, #112840 45%, #0E2237 100%);
  background-size: 32px 32px, 100% 100%;
  position: relative; overflow: hidden; text-align: center;
}

.propuesta-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(100px);
}
.propuesta-glow-1 {
  width: 500px; height: 500px;
  background: rgba(42,157,143,0.12);
  top: -120px; right: -80px;
  animation: blob-float 10s ease-in-out infinite;
}
.propuesta-glow-2 {
  width: 360px; height: 360px;
  background: rgba(155,137,196,0.1);
  bottom: -60px; left: -40px;
  animation: blob-float 12s ease-in-out infinite;
  animation-delay: 4s;
}

.propuesta-inner { position: relative; z-index: 1; }

/* Badge */
.propuesta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42,157,143,0.15);
  border: 1px solid rgba(42,157,143,0.4);
  color: var(--teal-light); font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Title */
.propuesta-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; color: white; margin-bottom: 1.1rem;
  line-height: 1.1;
}
.propuesta-accent {
  background: linear-gradient(90deg, var(--teal) 0%, var(--lila) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.propuesta-sub {
  color: rgba(255,255,255,0.6); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 3.5rem; line-height: 1.7;
}

/* ---- PIPELINE ---- */
.pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0 auto 1rem; max-width: 860px;
  overflow-x: auto; padding: 0.5rem 1rem 1.5rem;
  scrollbar-width: none;
}
.pipeline::-webkit-scrollbar { display: none; }

.pipeline-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0; position: relative;
}
.pnode-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: transform 0.3s ease;
}
.pipeline-node:hover .pnode-icon { transform: scale(1.1); }
.pnode-label {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  text-align: center; line-height: 1.3; letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Active nodes */
.pnode-active .pnode-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 0 28px rgba(42,157,143,0.5);
  animation: node-pulse 3s ease-in-out infinite;
}
.pnode-active .pnode-label { color: var(--teal-light); }

/* Star node (IA) */
.pnode-star .pnode-icon {
  background: linear-gradient(135deg, var(--teal) 0%, var(--lila) 100%);
  border-color: transparent;
  box-shadow: 0 0 36px rgba(42,157,143,0.6);
  width: 72px; height: 72px;
}
.pnode-star-tag {
  position: absolute; top: -8px; right: -4px;
  background: var(--lila); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 0.6rem; padding: 2px 7px; border-radius: 50px;
  letter-spacing: 0.05em;
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(42,157,143,0.5); }
  50% { box-shadow: 0 0 44px rgba(42,157,143,0.8), 0 0 60px rgba(42,157,143,0.3); }
}

/* Connector */
.pipeline-connector {
  flex: 1; min-width: 40px; max-width: 80px;
  height: 2px; background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden; align-self: flex-start;
  margin-top: 29px;
}
.pipeline-flow {
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 50%, transparent 100%);
  animation: flow-line 1.8s linear infinite;
}
@keyframes flow-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

.pipeline-caption {
  color: rgba(255,255,255,0.35); font-size: 0.8rem;
  letter-spacing: 0.04em; margin-bottom: 4rem;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-bottom: 3.5rem; text-align: left;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px; padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,157,143,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover {
  background: rgba(42,157,143,0.1);
  border-color: rgba(42,157,143,0.4);
  transform: translateY(-6px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.ficon-teal { background: rgba(42,157,143,0.2); color: var(--teal-light); }
.ficon-lila { background: rgba(155,137,196,0.2); color: #C4B5F4; }
.ficon-green { background: rgba(37,211,102,0.15); color: #6EE7A3; }

.feature-card h3 {
  color: white; font-size: 1rem; margin-bottom: 0.5rem; font-weight: 700;
}
.feature-card p {
  color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.65;
  margin-bottom: 1rem;
}
.feature-tag {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.68rem;
  padding: 3px 10px; border-radius: 50px; letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---- CTA BAR ---- */
.propuesta-cta {
  background: rgba(42,157,143,0.1);
  border: 1px solid rgba(42,157,143,0.3);
  border-radius: 20px; padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; text-align: left; margin-bottom: 2rem;
}
.pcta-title {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: white; margin-bottom: 0.3rem;
  line-height: 1.3;
}
.pcta-sub { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.propuesta-btn { flex-shrink: 0; white-space: nowrap; }

.propuesta-powered {
  color: rgba(255,255,255,0.25); font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.propuesta-powered strong { color: rgba(255,255,255,0.45); font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .propuesta-cta { flex-direction: column; text-align: center; }
  .propuesta-cta-text { text-align: center; }
  #hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 340px; }
  .hero-content { padding: 1.5rem 0; }
  .hero-blob-1 { width: 260px; height: 260px; }
  .hero-blob-2 { width: 200px; height: 200px; }
  .hero-img-badge { left: 12px; bottom: 12px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .doctora-inner { grid-template-columns: 1fr; }
  .doctora-img img { height: 320px; }
  .doctora-img-tag { right: 12px; bottom: 12px; }
  .chatbot-demo { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  #cta-final .container { grid-template-columns: 1fr; }
  .cta-foto { height: 280px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .servicios-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 0.75rem; }
  .stat-divider { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .pipeline-connector { min-width: 28px; }
  .pnode-star .pnode-icon { width: 60px; height: 60px; }
  /* On small screens, disable translateX animations to avoid overflow */
  .fade-left, .fade-right {
    transform: translateY(30px);
  }
  .fade-left.visible, .fade-right.visible {
    transform: none;
  }
}
