/*
Theme Name: Inversora Médica El Paraíso
Theme URI: http://inversora-medica-el-paraiso.local
Author: Catalina
Author URI: http://inversora-medica-el-paraiso.local
Description: Tema base personalizado, migrado desde HTML + Tailwind.
Version: 1.0
*/

/* WP Admin Bar: evita que el header sticky quede tapado al hacer scroll */

/* FIX escala base: Tailwind asume 16px = 1rem */
html {
  font-size: 16px !important;
}

body {
  font-size: 16px;
}

  

  :root {
    --sky:   #0E5A8A;
    --sky-d: #273A59;
    --teal:  #0f766e;
    --slate: #0f172a;
  }

  /* ── HEADER BASE ─────────────────────────────────────── */
  #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14,90,138,.12);
  font-family: 'DM Sans', sans-serif;
  transition: box-shadow .3s;
}

/* ✅ Fix: cuando estás logueada existe la Admin Bar y puede “tapar” el sticky */
body.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar #site-header { top: 46px; }
}
  #site-header.scrolled {
    box-shadow: 0 4px 24px rgba(15,23,42,.08);
  }

  .header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: .75rem clamp(1rem,3vw,2rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }

  /* ── MARCA ───────────────────────────────────────────── */
  .header-brand {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; min-width: 0;
  }
  .header-brand img {
    height: 36px; width: 36px;
    object-fit: contain; flex-shrink: 0;
  }
  .brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .brand-name {
    font-size: .95rem; font-weight: 600;
    color: var(--slate); letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: #94A3B8; margin-top: .05rem;
  }

  /* ── NAV DESKTOP ─────────────────────────────────────── */
  .header-nav {
    display: flex; align-items: center; gap: .25rem;
  }
  @media (max-width: 860px) { .header-nav { display: none; } }

  .nav-link {
    position: relative;
    padding: .45rem .85rem; border-radius: 8px;
    font-size: .85rem; color: #475569;
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
  }
  .nav-link:hover { color: var(--sky); background: rgba(14,90,138,.06); }

  /* Línea activa inferior */
  .nav-link.active {
    color: var(--sky); font-weight: 500;
    background: rgba(14,90,138,.07);
  }
  .nav-link.active::after {
    content: '';
    position: absolute; bottom: 0; left: .85rem; right: .85rem;
    height: 2px; border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, var(--sky), #7DD3FC);
  }

  /* CTA contacto en nav */
  .nav-cta {
    margin-left: .5rem;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem; border-radius: 8px;
    font-size: .82rem; font-weight: 500;
    background: var(--sky); color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(14,90,138,.3);
    transition: background .2s, transform .15s, box-shadow .2s;
  }
  .nav-cta:hover { background: var(--sky-d); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,90,138,.4); }

  /* ── BOTÓN MENÚ MÓVIL ────────────────────────────────── */
  .menu-btn {
    display: none;
    align-items: center; gap: .5rem;
    padding: .5rem .9rem; border-radius: 8px;
    border: 1px solid rgba(14,90,138,.2);
    background: transparent;
    font-size: .82rem; font-family: 'DM Sans', sans-serif;
    color: var(--slate); cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .menu-btn:hover { background: rgba(14,90,138,.05); border-color: rgba(14,90,138,.35); }
  @media (max-width: 860px) { .menu-btn { display: inline-flex; } }

  /* ── MENÚ MÓVIL ──────────────────────────────────────── */
  #mobile-menu {
    display: none;
    position: fixed;
    left: 0; right: 0;
    /* top se calcula por JS para coincidir justo bajo el header */
    border-bottom: 1px solid rgba(14,90,138,.12);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 49;
    box-shadow: 0 8px 24px rgba(15,23,42,.1);
  }
  #mobile-menu.open { display: block; }

  .mobile-nav {
    max-width: 1120px; margin: 0 auto;
    padding: 1rem clamp(1rem,3vw,2rem);
    display: flex; flex-direction: column; gap: .25rem;
  }
  .mobile-nav-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .7rem 1rem; border-radius: 10px;
    font-size: .9rem; color: #475569;
    text-decoration: none;
    transition: background .18s, color .18s;
  }
  .mobile-nav-link i { width: 16px; text-align: center; font-size: .8rem; color: #94A3B8; transition: color .18s; }
  .mobile-nav-link:hover { background: rgba(14,90,138,.06); color: var(--sky); }
  .mobile-nav-link:hover i { color: var(--sky); }
  .mobile-nav-link.active {
    background: rgba(14,90,138,.08); color: var(--sky); font-weight: 500;
    border-left: 2px solid var(--sky); padding-left: calc(1rem - 2px);
  }
  .mobile-nav-link.active i { color: var(--sky); }

  /* Separador + CTA móvil */
  .mobile-nav-sep {
    height: 1px; background: rgba(14,90,138,.1);
    margin: .5rem 0;
  }
  .mobile-nav-cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1rem; border-radius: 10px;
    background: var(--sky); color: #fff;
    font-size: .9rem; font-weight: 500;
    text-decoration: none; margin-top: .25rem;
    transition: background .2s;
  }
  .mobile-nav-cta:hover { background: var(--sky-d); }

  /* Overlay */
  #mobile-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,.25);
    z-index: 48;
    backdrop-filter: blur(2px);
  }
  #mobile-overlay.open { display: block; }
 /* Fix clases Tailwind no compiladas — cards institución */
.border-sky-700\/25 {
  border-color: rgba(3, 105, 161, 0.25);
}
.bg-amber-50 {
  background-color: #fffbeb;
}
.text-amber-800 {
  color: #92400e;
}
.border-amber-200\/60 {
  border-color: rgba(253, 230, 138, 0.60);
}
 /* Fix pill Reseña */
.bg-sky-50 {
  background-color: #f0f9ff;
}
.text-sky-800 {
  color: #075985;
}
.border-sky-700\/15 {
  border-color: rgba(3, 105, 161, 0.15);
}
