/* Medical AiOs — web pública.
   Identidad del producto: fondo casi negro, acento lima, mucho aire.
   Sin dependencias ni build. Las "maquetas" de interfaz están dibujadas en
   HTML/CSS para no depender de capturas que se desactualizan. */

:root {
  --fondo: #0a0a0a;
  --fondo-2: #111111;
  --fondo-3: #161616;
  --lima: #c9ff48;
  --lima-suave: rgba(201, 255, 72, 0.12);
  --verde: #25d366;
  --ambar: #efe811;
  --ig: #F56300;
  --msn: #0071E3;
  --texto: #ffffff;
  --t80: rgba(255, 255, 255, 0.80);
  --t60: rgba(255, 255, 255, 0.60);
  --t40: rgba(255, 255, 255, 0.40);
  --t25: rgba(255, 255, 255, 0.25);
  --borde: rgba(255, 255, 255, 0.09);
  --borde-2: rgba(255, 255, 255, 0.16);
  --radio: 14px;
  --sombra: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--borde);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--t80);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
strong { color: var(--texto); font-weight: 500; }

.contenedor { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.contenedor-ancho { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Tipografía ───────────────────────────────────────────────────── */

.antetitulo {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lima);
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.03em;
  color: var(--texto);
}
h1 .acento { color: var(--lima); }

.titulo-seccion {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.025em;
  color: var(--texto);
}

h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  color: var(--texto);
}

.entrada { margin: 0 0 30px; max-width: 620px; font-size: 18px; color: var(--t60); }

.enlace {
  color: var(--lima); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(201, 255, 72, 0.35); padding-bottom: 1px;
}
.enlace:hover { border-bottom-color: var(--lima); }

/* ── Botones ──────────────────────────────────────────────────────── */

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 9px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease, color .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton-primario { background: var(--lima); color: #000; box-shadow: 0 0 34px rgba(201, 255, 72, 0.22); }
.boton-primario:hover { filter: brightness(1.06); }
.boton-primario.grande { padding: 16px 30px; font-size: 16px; }
.boton-fantasma { background: transparent; color: var(--t80); border: 1px solid var(--borde-2); }
.boton-fantasma:hover { color: var(--texto); border-color: rgba(255, 255, 255, 0.36); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

/* ── Barra ────────────────────────────────────────────────────────── */

.barra {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.barra-interna { display: flex; align-items: center; gap: 28px; padding-top: 15px; padding-bottom: 15px; }
.marca { font-weight: 700; font-size: 18px; color: var(--texto); letter-spacing: -0.02em; text-decoration: none; }
.marca-acento { color: var(--lima); }
.nav { display: flex; gap: 24px; margin-left: 8px; font-size: 14px; }
.nav a { color: var(--t60); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--texto); }
.barra .boton { margin-left: auto; padding: 9px 16px; }

/* ── Portada ──────────────────────────────────────────────────────── */

.portada { position: relative; padding: 96px 0 40px; overflow: hidden; }
.resplandor {
  position: absolute; left: 50%; top: -340px; width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 255, 72, 0.13), rgba(201, 255, 72, 0) 72%);
  pointer-events: none;
}
.resplandor.baja { top: auto; bottom: -300px; }
.portada-texto { position: relative; text-align: center; }
.portada-texto .entrada, .portada-texto .acciones { margin-left: auto; margin-right: auto; justify-content: center; }

.canales {
  list-style: none; margin: 0 0 56px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px;
  font-size: 13px; color: var(--t60);
}
.canales li { display: inline-flex; align-items: center; gap: 7px; }
.canales .separador { color: var(--t40); }
.punto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.punto.ig { background: var(--ig); box-shadow: 0 0 10px var(--ig); }
.punto.msn { background: var(--msn); box-shadow: 0 0 10px var(--msn); }
.punto.wa { background: var(--verde); box-shadow: 0 0 10px var(--verde); }

/* ── Maquetas: ventana genérica ───────────────────────────────────── */

.maqueta {
  background: var(--fondo-2);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.ventana-barra {
  display: flex; gap: 6px; padding: 12px 14px;
  border-bottom: 1px solid var(--borde); background: #0d0d0d;
}
.ventana-barra span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.ventana-barra span:first-child { background: rgba(255, 110, 181, 0.7); }

/* Insignias de canal, como en el producto */
.insignia {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 5px; border-radius: 3px; line-height: 1.2;
}
.insignia.ig { background: rgba(245, 99, 0, 0.16); color: var(--ig); }
.insignia.msn { background: rgba(0, 113, 227, 0.18); color: #5ba7ff; }
.insignia.wa { background: rgba(37, 211, 102, 0.16); color: var(--verde); }
.insignia.com { background: rgba(255, 255, 255, 0.08); color: var(--t80); }

.avatar {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  border: 1px dashed var(--borde-2); background: var(--fondo);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--t60); letter-spacing: 0.05em;
}

/* ── Maqueta: bandeja ─────────────────────────────────────────────── */

.maqueta-bandeja { max-width: 1100px; margin: 0 auto; font-size: 12px; }
.bandeja { display: grid; grid-template-columns: 250px 1fr 230px; min-height: 430px; }

.lista { border-right: 1px solid var(--borde); background: var(--fondo); }
.lista-cabecera {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--t40); border-bottom: 1px solid var(--borde);
}
.contador { background: var(--lima); color: #000; border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.fila { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--borde); }
.fila.activa { background: var(--lima-suave); box-shadow: inset 3px 0 0 var(--lima); }
.fila-texto { min-width: 0; flex: 1; }
.fila-arriba { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.fila-arriba strong { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hora { margin-left: auto; font-size: 10px; color: var(--t40); }
.fila-abajo { font-size: 11px; color: var(--t60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hilo { display: flex; flex-direction: column; background: var(--fondo-2); }
.hilo-cabecera { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.hilo-cabecera strong { font-size: 13px; font-weight: 500; }
.hilo-sub { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--t40); margin-top: 2px; }
.burbujas { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.burbuja { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; }
.burbuja.entrante { align-self: flex-start; background: var(--fondo-3); color: var(--t80); border-bottom-left-radius: 4px; }
.burbuja.saliente { align-self: flex-end; background: var(--lima-suave); color: var(--texto); border: 1px solid rgba(201, 255, 72, 0.25); border-bottom-right-radius: 4px; }
.compositor {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 12px 12px; padding: 10px 14px;
  background: #0d0d0d; border: 1px solid var(--borde); border-radius: 8px;
  color: var(--t40); font-size: 12px;
}
.enviar { color: var(--lima); font-weight: 600; font-size: 11px; }

.ficha { border-left: 1px solid var(--borde); padding: 14px; background: var(--fondo); }
.ficha-titulo { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t40); margin-bottom: 10px; }
.ficha-nombre { font-size: 14px; font-weight: 500; color: var(--texto); margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px; margin-bottom: 14px;
  background: var(--lima-suave); border: 1px solid rgba(201, 255, 72, 0.3);
  font-size: 10px; font-weight: 600; color: var(--texto);
}
.chip em { font-style: normal; color: var(--lima); }
.chip-punto { width: 5px; height: 5px; border-radius: 50%; background: var(--lima); }
.ficha-linea { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--borde); font-size: 11px; color: var(--t60); }
.ficha-linea strong { font-size: 11px; font-weight: 500; }
.verde { color: var(--verde) !important; }
.ambar { color: var(--ambar) !important; }

/* ── Secciones y rasgos ───────────────────────────────────────────── */

.seccion { padding: 96px 0; }
.seccion.alterna { background: var(--fondo-2); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }

.rasgo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.rasgo.invertido .rasgo-texto { order: 2; }
.rasgo.invertido .rasgo-visual { order: 1; }
.rasgo-texto p { margin: 0 0 16px; color: var(--t60); }
.rasgo-texto p:last-child { margin-bottom: 0; }
.rasgo-visual { display: flex; justify-content: center; }

.icono-rasgo {
  width: 44px; height: 44px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--lima-suave); border: 1px solid rgba(201, 255, 72, 0.25);
  color: var(--lima);
}
.icono-rasgo svg { width: 22px; height: 22px; }

/* ── Tarjeta flotante (genérica) ──────────────────────────────────── */

.tarjeta-flotante {
  width: 100%; max-width: 400px; padding: 22px;
  background: var(--fondo-2); border-radius: var(--radio); box-shadow: var(--sombra);
  font-size: 13px;
}
.tf-titulo { font-size: 13px; font-weight: 600; color: var(--texto); margin-bottom: 14px; }
.tf-fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borde); color: var(--t80); }
.tf-fila .insignia { min-width: 30px; }
.tf-ok { margin-left: auto; color: var(--verde); font-weight: 700; }
.tf-nota { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--borde); font-size: 12px; color: var(--t40); line-height: 1.5; }

/* Presupuesto */
.presupuesto { max-width: 380px; }
.pr-cabecera { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--t40); margin-bottom: 14px; }
.pr-visto { color: var(--lima); font-weight: 600; }
.pr-linea { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borde); color: var(--t80); }
.pr-linea strong, .pr-total strong { font-variant-numeric: tabular-nums; }
.pr-total { display: flex; justify-content: space-between; padding: 14px 0 18px; border-top: 1px solid var(--borde-2); font-size: 15px; color: var(--texto); }
.pr-total strong { color: var(--lima); font-size: 18px; font-weight: 700; }
.pr-boton { padding: 12px; text-align: center; border-radius: 8px; background: var(--lima); color: #000; font-weight: 700; font-size: 13px; }

/* ── Maqueta: agenda ──────────────────────────────────────────────── */

.maqueta-agenda { width: 100%; max-width: 520px; padding: 18px; font-size: 11px; }
.agenda-cabecera {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--borde);
  font-size: 12px; font-weight: 600; color: var(--texto);
}
.leyenda { display: flex; align-items: center; gap: 4px 10px; font-size: 10px; font-weight: 400; color: var(--t40); }
.leyenda .s { margin-right: -6px; }

.agenda-grid {
  position: relative; margin-left: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px;
  gap: 0 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 63px, var(--borde) 63px 64px);
  background-position: 0 34px;
}
.agenda-grid .col-cab {
  grid-row: 1; height: 34px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; color: var(--t60);
}
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.hora-linea { position: absolute; left: -44px; width: 36px; text-align: right; font-size: 10px; color: var(--t40); padding-top: 2px; }

.bloque-cita {
  margin: 3px 0; padding: 7px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 78%, #000); border-left: 3px solid var(--c);
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.bc-titulo { font-size: 10.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sellos { display: inline-flex; gap: 3px; align-self: flex-end; padding: 2px 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); }

.s {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-style: normal; font-weight: 800; line-height: 1;
}
.s.lleno { background: var(--verde); border: 1px solid var(--verde); color: #0a0a0a; }
.s.contorno { background: transparent; border: 1px solid var(--ambar); color: var(--ambar); }

/* ── Maqueta: teléfono con el consentimiento ──────────────────────── */

.telefono {
  width: 290px; padding: 10px; border-radius: 40px;
  background: #1a1a1a; box-shadow: var(--sombra), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.telefono-pantalla {
  border-radius: 31px; padding: 30px 22px 22px; min-height: 520px;
  background: #f4f2ee; color: #1c1a17;
  font-family: Georgia, 'Times New Roman', serif; font-size: 13px;
  display: flex; flex-direction: column;
}
.doc-clinica { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8171; margin-bottom: 8px; }
.doc-titulo { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 22px; }
.doc-titulo span { display: block; font-weight: 400; font-size: 14px; color: #6f675a; margin-top: 4px; }
.doc-check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid #e5e0d7; font-size: 12.5px; line-height: 1.4; }
.doc-check i {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid #b5ad9f; border-radius: 4px; background: #fff;
}
.doc-check.marcado i { background: #1c1a17; border-color: #1c1a17; position: relative; }
.doc-check.marcado i::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #f4f2ee; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.doc-firma {
  margin-top: auto; padding: 8px 12px 6px; border: 1.5px dashed #b5ad9f; border-radius: 8px; background: #fff;
}
.doc-firma svg { width: 100%; height: 54px; display: block; }
.doc-firma span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; color: #8a8171; text-align: center; }
.doc-boton { margin-top: 14px; padding: 12px; border-radius: 8px; background: #1c1a17; color: #f4f2ee; text-align: center; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; }

/* ── Cómo funciona ────────────────────────────────────────────────── */

.pasos {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pasos li { padding: 26px; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--borde); }
.paso-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 18px;
  background: var(--lima); color: #000; font-weight: 800; font-size: 14px;
}
.pasos h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--texto); }
.pasos p { margin: 0; font-size: 15px; color: var(--t60); }

/* ── Quién está detrás ────────────────────────────────────────────── */

.quien { border-top: 1px solid var(--borde); }
.quien-interno { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.quien-texto p { margin: 0 0 16px; color: var(--t60); }

/* ── Contacto ─────────────────────────────────────────────────────── */

.contacto { position: relative; text-align: center; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--borde); }
.contacto .contenedor { position: relative; }
.contacto .entrada { margin-left: auto; margin-right: auto; }

/* ── Pie ──────────────────────────────────────────────────────────── */

.pie { padding: 34px 0; border-top: 1px solid var(--borde); font-size: 13px; color: var(--t40); }
.pie-interno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 20px; }
.pie-enlaces a { color: var(--t40); text-decoration: none; }
.pie-enlaces a:hover { color: var(--t80); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .bandeja { grid-template-columns: 220px 1fr; }
  .ficha { display: none; }
  .rasgo { gap: 40px; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .portada { padding-top: 64px; }
  .seccion { padding: 72px 0; }
  .rasgo { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; padding-bottom: 48px; }
  .rasgo.invertido .rasgo-texto { order: 1; }
  .rasgo.invertido .rasgo-visual { order: 2; }
  .pasos { grid-template-columns: 1fr; }
  .quien-interno { grid-template-columns: 1fr; gap: 20px; }
  .contacto { padding: 84px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .contenedor, .contenedor-ancho { padding: 0 20px; }
  .bandeja { grid-template-columns: 1fr; min-height: 0; }
  .hilo { display: none; }
  .lista { border-right: 0; }
  .telefono { width: 260px; }
  .pie-interno { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
