@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --tp-marino: #0b1e33;
  --tp-marino-2: #14324d;
  --tp-acento: #1d6fd8;
  --tp-acento-hover: #1557ad;
  --tp-acento-soft: rgba(29, 111, 216, 0.12);
  --tp-fondo: #fbfbfd;
  --tp-niebla: #f0f2f5;
  --tp-texto: #1e1e2a;
  --tp-muted: #3d4e5e;
  --tp-borde: #edf0f4;
  --tp-blanco: #ffffff;
  --tp-radio: 1rem;
  --tp-radio-lg: 1.75rem;
  --tp-pill: 60px;
  --tp-fuente: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --tp-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  /* compat paneles */
  --tp-cobre: var(--tp-acento);
  --tp-cobre-hover: var(--tp-acento-hover);
  --tp-arena: var(--tp-fondo);
}

body {
  font-family: var(--tp-fuente);
  color: var(--tp-texto);
  background-color: var(--tp-fondo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.tp-brand {
  font-family: var(--tp-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tp-marino);
  text-decoration: none;
  font-size: 1.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tp-brand:hover { color: var(--tp-marino); }
.tp-brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--tp-acento), #0b1e33);
  display: inline-block;
  flex-shrink: 0;
}

/* —— Cabecera pública —— */
.tp-nav-public {
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.tp-nav-public .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.tp-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-nav-links a {
  color: #2c3e4f;
  text-decoration: none;
}
.tp-nav-links a:hover {
  color: var(--tp-acento);
}
.tp-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tp-nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.tp-nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--tp-borde);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  color: var(--tp-marino);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.tp-btn-pill {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border-radius: var(--tp-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
}
.tp-btn-dark {
  background: var(--tp-marino);
  color: #fff;
}
.tp-btn-dark:hover {
  background: var(--tp-acento);
  color: #fff;
}
.tp-btn-outline-nav {
  color: var(--tp-marino);
  border: 1px solid transparent;
  background: transparent;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.tp-btn-outline-nav:hover { color: var(--tp-acento); }

@media (max-width: 991px) {
  .tp-nav-toggle { display: inline-flex; align-items: center; }
  .tp-nav-collapse {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.5rem;
    flex: 1 1 100%;
  }
  .tp-nav-collapse.is-open { display: flex; }
  .tp-nav-links { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .tp-nav-cta { width: 100%; }
}

/* —— Hero landing —— */
.tp-hero {
  padding: 3.5rem 0 2rem;
  background: transparent;
  color: var(--tp-texto);
}
.tp-hero-badge {
  display: inline-block;
  background: var(--tp-niebla);
  padding: 0.35rem 1rem;
  border-radius: var(--tp-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e2e3f;
  margin-bottom: 0.75rem;
}
.tp-hero h1 {
  font-family: var(--tp-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
  color: var(--tp-marino);
}
.tp-hero h1 .tp-accent {
  color: var(--tp-acento);
}
.tp-hero .lead {
  max-width: 42ch;
  color: var(--tp-muted);
  font-size: 1.15rem;
  margin-top: 0.75rem;
}
.tp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.tp-hero-pills span {
  background: var(--tp-niebla);
  padding: 0.45rem 1rem;
  border-radius: var(--tp-pill);
  font-size: 0.9rem;
  color: #1e2e3f;
}
.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-tp {
  background: var(--tp-acento);
  border-color: var(--tp-acento);
  color: #fff;
  font-weight: 600;
  border-radius: var(--tp-pill);
  padding: 0.65rem 1.5rem;
}
.btn-tp:hover {
  background: var(--tp-acento-hover);
  border-color: var(--tp-acento-hover);
  color: #fff;
}
.btn-tp-outline {
  border: 1px solid var(--tp-marino);
  color: var(--tp-marino);
  background: transparent;
  border-radius: var(--tp-pill);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-tp-outline:hover {
  background: var(--tp-marino);
  color: #fff;
}

.tp-card-feature {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 1.75rem;
  padding: 1.6rem 1.25rem;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tp-card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}
.tp-card-feature .tp-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--tp-acento-soft);
  color: var(--tp-acento);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.tp-card-feature strong,
.tp-card-feature h3 {
  display: block;
  color: var(--tp-marino);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.tp-card-feature p {
  color: var(--tp-muted);
  font-size: 0.95rem;
  margin: 0;
}

.tp-section {
  padding: 3rem 0;
}
.tp-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tp-marino);
  margin-bottom: 1.75rem;
}

.tp-step {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 1.75rem;
  border: 1px solid var(--tp-borde);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  height: 100%;
}
.tp-step .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--tp-acento);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.tp-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tp-marino);
  margin-bottom: 0.4rem;
}
.tp-step p {
  color: var(--tp-muted);
  margin: 0;
  font-size: 0.95rem;
}

.tp-banner-dark {
  background: var(--tp-marino);
  border-radius: 2.5rem;
  padding: 2.5rem;
  color: #fff;
  margin: 2rem 0;
}
.tp-banner-dark h2 {
  color: #fff;
  max-width: 28ch;
  margin-bottom: 0.5rem;
}
.tp-banner-dark p {
  color: #cbd5e1;
  max-width: 42ch;
  margin-bottom: 0;
}
.tp-banner-soft {
  background: #f3f6fa;
  border-radius: 2.5rem;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}

.tp-cta-final {
  text-align: center;
  padding: 2rem 0 1rem;
}
.tp-cta-final h2 {
  margin-bottom: 0.5rem;
}
.tp-cta-final > p {
  color: var(--tp-muted);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

/* —— Footer —— */
.tp-footer {
  border-top: 1px solid #e9edf2;
  padding: 2.5rem 0 2rem;
  margin-top: 2.5rem;
  background: #fff;
}
.tp-footer h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--tp-marino);
}
.tp-footer a {
  display: block;
  color: #4a5a6a;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.tp-footer a:hover { color: var(--tp-acento); }
.tp-footer-copy {
  color: #6b7a8a;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9edf2;
}

/* —— Paneles (empresa/admin) —— */
.tp-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
}

.tp-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.tp-sidebar {
  background: var(--tp-marino);
  color: #fff;
  padding: 1.5rem 1rem;
}

.tp-sidebar a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
}

.tp-sidebar a:hover,
.tp-sidebar a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tp-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.footer-clinica {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid rgba(11, 31, 51, 0.08);
}

.tp-panel-card {
  background: #fff;
  border-radius: var(--tp-radio);
  border: 1px solid rgba(11, 31, 51, 0.08);
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.tp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--tp-niebla);
}

.tp-badge-pendiente { background: #fff3cd; }
.tp-badge-verificado { background: #d1e7dd; }
.tp-badge-rechazado { background: #f8d7da; }

.tp-admin .tp-sidebar { background: #0f172a; }

.tp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border-top: 2px solid var(--tp-marino);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
  padding: 1rem 0;
}
.tp-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tp-cookie-modal-box {
  background: #fff;
  max-width: 420px;
  width: 100%;
  padding: 1.25rem;
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tp-acento);
  box-shadow: 0 0 0 0.2rem rgba(29, 111, 216, 0.2);
}

.tp-pasos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-paso {
  flex: 1 1 auto;
  min-width: 2.5rem;
}
.tp-paso a,
.tp-paso > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--tp-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 31, 51, 0.08);
}
.tp-paso a:hover {
  color: var(--tp-marino);
  border-color: var(--tp-acento);
}
.tp-paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  background: var(--tp-niebla);
  color: var(--tp-marino);
}
.tp-paso-activo a,
.tp-paso-activo > span {
  border-color: var(--tp-acento);
  background: #fff;
  color: var(--tp-marino);
  font-weight: 600;
}
.tp-paso-activo .tp-paso-num {
  background: var(--tp-acento);
  color: #fff;
}
.tp-paso-hecho a,
.tp-paso-hecho > span {
  color: var(--tp-marino);
}
.tp-paso-hecho .tp-paso-num {
  background: #d1e7dd;
  color: #0f5132;
}
.tp-paso-pendiente {
  opacity: 0.72;
}
.tp-paso-info {
  background: rgba(255, 255, 255, 0.95) !important;
}

.mk-estado { font-weight: 600; min-width: 8.2rem; }
.mk-estado-nuevo, .mk-estado-new { background: #cfe2ff; color: #084298; border-color: #9ec5fe; }
.mk-estado-contactado, .mk-estado-contacted { background: #d1e7dd; color: #0f5132; border-color: #75b798; }
.mk-estado-descartado, .mk-estado-closed { background: #e2e3e5; color: #41464b; border-color: #c6c7c8; }
.mk-estado-calificado { background: #fff3cd; color: #664d03; border-color: #ffecb5; }
.mk-estado-cliente { background: #e0cffc; color: #432874; border-color: #c5b3e6; }

.mk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.mk-cal-day { background: #fff; border: 1px solid #dbe4ee; border-radius: 12px; min-height: 10rem; padding: .55rem; }
.mk-cal-day.is-today { border-color: #0d6efd; box-shadow: 0 0 0 1px #0d6efd; }
.mk-cal-day.is-weekend { background: #f8fafb; }
.mk-cal-head { display: flex; justify-content: space-between; gap: .25rem; margin-bottom: .4rem; font-size: .85rem; }
.mk-cal-ev { font-size: .75rem; border-radius: 6px; padding: .25rem .4rem; margin-bottom: .3rem; line-height: 1.3; }
.mk-cal-ev a { color: inherit; font-weight: 600; }
.mk-cal-ev.is-hecho { opacity: .62; }
.mk-cal-ev-llamada { background: #cfe2ff; color: #084298; }
.mk-cal-ev-email { background: #d1e7dd; color: #0f5132; }
.mk-cal-ev-comentario { background: #fff3cd; color: #664d03; }
.mk-cal-ev-reunion { background: #e0cffc; color: #432874; }
.mk-cal-ev-planificado { background: #f8d7da; color: #842029; }
@media (max-width: 991px) { .mk-cal { grid-template-columns: 1fr 1fr; } }
.mk-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.mk-month-dow { text-align: center; font-size: .75rem; font-weight: 700; color: #64748b; padding: .2rem 0; }
.mk-month-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; min-height: 3.4rem; padding: .35rem .15rem; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; color: inherit; text-decoration: none; }
.mk-month-day.is-out { opacity: .38; }
.mk-month-day.is-today { box-shadow: 0 0 0 2px #0d6efd; }
.mk-month-day.has-ev { font-weight: 700; cursor: pointer; }
.mk-month-day.has-ev-llamada { background: #cfe2ff; color: #084298; border-color: #9ec5fe; }
.mk-month-day.has-ev-email { background: #d1e7dd; color: #0f5132; border-color: #75b798; }
.mk-month-day.has-ev-comentario { background: #fff3cd; color: #664d03; border-color: #ffecb5; }
.mk-month-day.has-ev-reunion { background: #e0cffc; color: #432874; border-color: #c5b3e6; }
.mk-month-day.has-ev-planificado { background: #f8d7da; color: #842029; border-color: #f1aeb5; }
.mk-month-day.has-ev-mix { background: #cff4fc; color: #055160; border-color: #9eeaf9; }
.mk-month-day.is-sel { outline: 2px solid #0d6efd; outline-offset: 1px; }
.mk-month-day.has-ev:hover { filter: brightness(.96); }
.mk-month-num { font-size: 1rem; line-height: 1.1; }
.mk-month-count { font-size: .7rem; opacity: .85; }
.mk-tabla { font-size: .75rem; }
.mk-tabla td, .mk-tabla th { padding: .28rem .4rem; }
.mk-tabla .btn { font-size: .7rem; padding: .1rem .35rem; }
.mk-tabla .form-select { font-size: .72rem; padding: .15rem .35rem; min-height: 1.7rem; }
.mk-tabla .badge { font-size: .65rem; }
.mk-wysiwyg { border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; }
.mk-wysiwyg-bar { display: flex; flex-wrap: wrap; gap: .2rem; padding: .25rem .4rem; border-bottom: 1px solid #e9ecef; background: #f8fafc; }
.mk-wysiwyg-bar button { border: 1px solid #dee2e6; background: #fff; border-radius: .25rem; font-size: .75rem; padding: .1rem .4rem; line-height: 1.2; }
.mk-wysiwyg-ed { min-height: 8rem; padding: .5rem .6rem; font-size: .875rem; outline: none; }
.mk-preview-body { border: 1px solid #e9ecef; border-radius: .375rem; padding: .75rem; min-height: 6rem; background: #fff; font-size: .875rem; }

@media (max-width: 768px) {
  .tp-shell {
    grid-template-columns: 1fr;
  }
  .tp-sidebar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .tp-hero h1 { max-width: none; }
  .tp-banner-dark,
  .tp-banner-soft { border-radius: 1.5rem; padding: 1.5rem; }
}
