/* -------- Base -------- */
:root{
  --blue:#0048A8;
  --green:#63bb46;
  --bg:#f6f9fc;
  --ink:#203040;
  --muted:#6b7a90;
  --radius:16px;
  --shadow:0 6px 20px rgb(0 0 0 / 8%);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color:var(--ink);
  background: white;
  line-height:1.55;
}

.container{width:min(1100px, 92%); margin-inline:auto}
h1,h2,h3{line-height:1.2; margin:0 0 .6rem}
h1{font-size:clamp(1.8rem, 2vw + 1.4rem, 2.6rem)}
h2{font-size:clamp(1.4rem, 1.4vw + 1rem, 2rem)}
h3{font-size:1.15rem; color:var(--blue)}

p{margin:.5rem 0 1rem}
ul{margin:.5rem 0 1rem; padding-left:1.1rem}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; display:block}
.skip-link{position:absolute; left:-9999px}
.skip-link:focus{left:8px; top:8px; background:#fff; padding:.5rem .75rem; border-radius:.5rem; box-shadow:var(--shadow); z-index:1000}

.btn{
  display:inline-block; border:1px solid var(--blue); color:var(--blue);
  padding:.7rem 1rem; border-radius:999px; font-weight:600; text-decoration:none;
  transition: all .2s ease; background:transparent
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow); text-decoration:none}
.btn-primary{background:var(--blue); color:#fff; border-color:var(--blue)}
.btn-primary:hover{background:#ffffff}

/* -------- Header -------- */
.site-header{
  position:sticky; top:0; background:#fff; border-bottom:1px solid #eef1f6; z-index:10
}
.header-wrap{display:flex; align-items:center; justify-content:space-between; padding:.6rem 0}
.logo{height:95px; width:auto}
.nav-toggle{display:none; background:transparent; border:0; font-size:1.5rem}
.menu{display:flex; gap:1rem; list-style:none; padding:0; margin:0}
.menu a{display:block; padding:.6rem .4rem; border-radius:.5rem}
.menu a:hover{background:rgba(31,95,182,.06); text-decoration:none}

/* -------- Hero -------- */
.hero{
  background: linear-gradient(135deg, rgba(31,95,182,.08), rgba(99,187,70,.08));
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.hero-text p{color:var(--muted); max-width:52ch}

/* -------- Sections -------- */
.section{padding: clamp(2rem, 6vw, 3rem) 0; background:#fff}
.section.alt{background:var(--bg)}
.details summary{cursor:pointer}
.note{color:var(--muted); font-size:.95rem}

.grid{display:grid; gap:1rem}
.grid.two{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3, minmax(0,1fr))}

.cards .card{
  background:#fff; border:1px solid #e8eef6; border-radius:var(--radius);
  padding:1rem; box-shadow:var(--shadow);
}

/* Imágenes de tarjetas */
.card-img{
  width:100%;
  border-radius:12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom:.5rem;
  display:block;
  border:1px solid #e8eef6;
}

.list{padding-left:1.2rem}
.list.columns{columns:2; gap:2rem}

.site-footer{border-top:1px solid #eef1f6; background:#fff; padding:1rem 0; margin-top:2rem}
.footer-wrap{display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap}
.site-footer nav a{margin-right:.8rem}

/* -------- Responsive -------- */
@media (max-width: 820px){
  .grid.two{grid-template-columns:1fr}
  .grid.three{grid-template-columns:repeat(2, minmax(0,1fr))}
  .list.columns{columns:1}
  .nav-toggle{display:block}
  .menu{display:none; flex-direction:column; gap:.2rem; background:#fff; position:absolute; right:1rem; top:64px; padding:.6rem; border:1px solid #eef1f6; border-radius:.6rem}
  .menu.open{display:flex}
}
@media (max-width: 540px){
  .grid.three{grid-template-columns:1fr}
  .logo{height:36px}
}
/* Ajuste de encuadre para la tarjeta de Equipo médico */
.card-img--equipo {
  object-position: center 20%; /* prueba 15% o 25% si deseas más/menos arriba */
}

/* ====== Header azul con logo (override) ====== */
.site-header{
  position: sticky;
  top: 0;
  background: var(--blue, #1f5fb6);
  border-bottom: 0;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.logo{
  height: 42px;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.25));
}
.menu a{ color:#fff; }
.menu a:hover{ background: rgba(255,255,255,.12); text-decoration:none; }
.nav-toggle{ display:none; background:transparent; border:0; font-size:1.5rem; color:#fff; }

@media (max-width: 820px){
  .nav-toggle{ display:block; }
  .menu{
    display:none;
    flex-direction:column;
    gap:.2rem;
    background: var(--blue, #1f5fb6);
    position:absolute;
    right:1rem;
    top:64px;
    padding:.6rem;
    border:1px solid rgba(255,255,255,.25);
    border-radius:.6rem;
  }
  .menu.open{ display:flex; }
}

/* ===== Hero azul Pharmacy Market (override) ===== */
.hero{
  background: var(--blue, #1f5fb6);
  color: #fff;
  padding: clamp(2.5rem, 7vw, 4rem) 0;
}
.hero h1{ color:#fff; }
.hero-text p{ color: rgba(255,255,255,.92); }

/* Botones dentro del hero */
.hero .btn-primary{
  background:#fff;
  color: var(--blue, #1f5fb6);
  border-color:#fff;
}
.hero .btn-primary:hover{
  filter: brightness(.95);
}

/* Botón secundario tipo ghost */
.hero .btn-ghost{
  border-color:#fff;
  color:#fff;
}
.hero .btn-ghost:hover{
  background: rgba(255,255,255,.12);
  text-decoration: none;
}

/* ===== Logo más grande en header ===== */
.logo{
  height: 56px;        /* antes 42px */
  width: auto;
}
.header-wrap{ padding: .75rem 0; }

@media (max-width: 820px){
  .logo{ height: 48px; }
}
@media (max-width: 540px){
  .logo{ height: 40px; }  /* cuidamos el espacio en pantallas pequeñas */
}


/* === Overrides: Header size to mimic Copa Airlines, larger/clearer logo === */
:root{ --header-h: 80px; }                    /* desktop */
@media (max-width: 820px){ :root{ --header-h: 64px; } }  /* tablet */
@media (max-width: 540px){ :root{ --header-h: 48px; } }  /* phone */

.site-header .logo{ height: var(--header-h); width:auto; }
.header-wrap{ padding: .6rem 0; }

@media (max-width: 820px){
  .menu{ top: calc(var(--header-h) + 8px) !important; }
}

/* Slight white glow to improve contrast on blue headers */
.site-header .logo{
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
}

/* ===== Hero con logo a la derecha ===== */
.hero .hero-wrap{
  display: grid;
  grid-template-columns: 1.1fr .9fr; /* texto | logo */
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.hero-logo{
  display: flex;
  justify-content: flex-end;
}

.hero-logo-img{
  width: auto;
  max-width: clamp(220px, 30vw, 420px);
  width: 100%;
  /* grande en desktop */
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
}

/* Stack en pantallas pequeñas */
@media (max-width: 820px){
  .hero .hero-wrap{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-logo{
    justify-content: flex-start;
  }
  .hero-logo-img{
  width: auto;
  max-width: clamp(220px, 30vw, 420px);
    }
}
