/* ============================================
   BlueTail Medical · main.css
   Tokens de diseño + reset + tipografía base + utilidades
   ============================================ */

/* === Tokens === */
:root {
  /* Paleta navy */
  --bt-navy-900: #0A1633; /* fondo principal */
  --bt-navy-800: #0F1B3C; /* superficies elevadas */
  --bt-navy-700: #1A2851; /* borders, hover surfaces */
  --bt-navy-600: #243562; /* dividers sutiles */

  /* Acento teal */
  --bt-teal-500: #2BB8A6;
  --bt-teal-400: #2BD4C0;

  /* Verde WhatsApp oficial (solo para el botón flotante) */
  --bt-whatsapp: #25D366;
  --bt-whatsapp-hover: #1EBE57;

  /* Neutros tintados (chroma sutil hacia el navy) */
  --bt-white: #FFFFFF;
  --bt-gray-300: #C5CCDB;
  --bt-gray-400: #8993AD;

  /* Tipografía */
  --bt-font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --bt-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Radius */
  --bt-radius-sm: 8px;
  --bt-radius-md: 16px;
  --bt-radius-lg: 24px;
  --bt-radius-full: 9999px;

  /* Spacing scale */
  --bt-space-1: 4px;
  --bt-space-2: 8px;
  --bt-space-3: 12px;
  --bt-space-4: 16px;
  --bt-space-5: 24px;
  --bt-space-6: 32px;
  --bt-space-7: 48px;
  --bt-space-8: 64px;
  --bt-space-9: 96px;
  --bt-space-10: 128px;

  /* Easing */
  --bt-ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --bt-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --bt-container-max: 1280px;
  --bt-container-padding: clamp(1rem, 5vw, 2rem);

  /* Layout */
  --bt-navbar-height: 64px;
}

/* === Reset moderno === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--bt-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bt-white);
  background-color: var(--bt-navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--bt-teal-500);
  text-decoration: none;
  transition: color 150ms var(--bt-ease-out-quart);
}

a:hover {
  color: var(--bt-teal-400);
}

.bt-link-inline {
  color: var(--bt-teal-400);
  text-decoration: underline;
  text-decoration-color: rgba(43, 212, 192, 0.4);
  text-underline-offset: 3px;
  font-weight: inherit;
  transition:
    color 150ms var(--bt-ease-out-quart),
    text-decoration-color 150ms var(--bt-ease-out-quart);
}

.bt-link-inline:hover {
  color: var(--bt-white);
  text-decoration-color: rgba(43, 212, 192, 0.8);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bt-font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bt-white);
}

h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

p {
  max-width: 70ch;
}

/* === Display utilities (mismas escalas que h1/h2/h3 pero aplicables a cualquier elemento) === */
.bt-display-1 {
  font-family: var(--bt-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bt-white);
}

.bt-display-2 {
  font-family: var(--bt-font-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--bt-white);
}

.bt-display-3 {
  font-family: var(--bt-font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bt-white);
}

/* === Focus visible === */
:focus-visible {
  outline: 2px solid var(--bt-teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Selección === */
::selection {
  background: var(--bt-teal-500);
  color: var(--bt-navy-900);
}

/* === Container y layout utils === */
.bt-container {
  width: 100%;
  max-width: var(--bt-container-max);
  margin-inline: auto;
  padding-inline: var(--bt-container-padding);
}

.bt-section {
  padding-block: clamp(var(--bt-space-7), 8vw, var(--bt-space-9));
}

/* Offset bajo el navbar fijo, para páginas cuyo primer bloque no es .bt-hero */
.bt-main-offset {
  padding-top: var(--bt-navbar-height);
}

.bt-stack > * + * {
  margin-top: var(--bt-space-4);
}

/* === Tipografía utilitaria === */
.bt-lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bt-gray-300);
  max-width: 65ch;
}

.bt-caption {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bt-gray-300);
  letter-spacing: 0.02em;
}

.bt-eyebrow {
  display: inline-block;
  font-family: var(--bt-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bt-teal-500);
}

/* === Helpers accesibilidad === */
.bt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Estado mobile menú abierto === */
body.bt-menu-open {
  overflow: hidden;
}

/* ============================================
   BlueTail Medical · Responsive Móvil
   Añadido: 15 jun 2026
   ============================================ */

@media (max-width: 768px) {

  /* ─── NAVBAR: Hamburguesa ─── */
  .bt-nav {
    display: none !important;
  }

  .bt-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    flex-shrink: 0;
  }

  .bt-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bt-white);
    border-radius: 2px;
    transition: transform 0.3s var(--bt-ease-out-quart), opacity 0.3s var(--bt-ease-out-quart);
  }

  .bt-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .bt-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .bt-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .bt-navbar-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  /* ─── DRAWER MÓVIL ─── */
  .bt-nav-drawer {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bt-navy-900);
    border-left: 1px solid var(--bt-navy-700);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s var(--bt-ease-out-quart);
    overflow-y: auto;
    padding: 72px 24px 48px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .bt-nav-drawer[data-open="true"] {
    transform: translateX(0);
  }

  .bt-nav-drawer-section {
    border-bottom: 1px solid var(--bt-navy-700);
    padding: 12px 0;
  }

  .bt-nav-drawer-section:last-child {
    border-bottom: none;
    padding-top: 20px;
  }

  .bt-nav-drawer-section > a {
    display: block;
    color: var(--bt-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--bt-font-display);
    padding: 8px 0;
    transition: color 150ms var(--bt-ease-out-quart);
  }

  .bt-nav-drawer-section > a:hover {
    color: var(--bt-teal-400);
  }

  .bt-nav-drawer-sublist {
    padding-left: 12px;
    margin-top: 4px;
  }

  .bt-nav-drawer-sublist a {
    display: block;
    color: var(--bt-gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 6px 0;
    transition: color 150ms var(--bt-ease-out-quart);
  }

  .bt-nav-drawer-sublist a:hover {
    color: var(--bt-teal-400);
  }

  .bt-nav-drawer .bt-btn-primary {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 14px 20px;
  }

  /* ─── LOGOS DE CLIENTES ─── */
  .bt-clientes-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: center;
    gap: 20px 24px;
    overflow: visible !important;
  }

  .bt-clientes-grid > *:nth-child(n+9) {
    display: none !important;
  }

  .bt-clientes-grid img {
    width: auto;
    max-width: 110px;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* ─── HERO: Texto primero, imagen después ─── */
  .bt-hero .bt-hero-inner,
  section.bt-hero .bt-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--bt-space-6);
    grid-template-columns: none !important;
    grid-template-areas: none !important;
  }

  .bt-hero .bt-hero-text {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
  }

  .bt-hero .bt-hero-visual {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
  }

  .bt-svc-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--bt-radius-md);
    display: block;
  }

  .bt-hero-cta-row {
    flex-direction: column !important;
    align-items: center;
    gap: var(--bt-space-3);
  }

  .bt-hero-cta-row .bt-btn {
    width: 100%;
    text-align: center;
  }

  .bt-trust-strip {
    justify-content: center;
  }

}
