/* ═══════════════════════════════════════════════════════════
   style.css — Estilos compartidos del sitio Plan de Salud ATE
   Tokens · Reset · Header · Nav · Footer · Responsive
═══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --color-primary:   #2ea636;
  --color-secondary: #012720;
  --color-accent:    #53cf90;
  --color-bg:        #efeee6;
  --color-surface:   #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #4a4a4a;

  --font:   'Helvetica LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-w:  1100px;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .10);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:  var(--color-bg);
  color:       var(--color-text);
  min-height:  100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  background:    #e8e7de;
  border-top:    10px solid var(--color-primary);
  border-bottom: 1px solid #e0dfd7;
}

/* Franja superior: redes · logo · acciones */
.site-header__top {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   14px 24px;
  display:   grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--color-primary);
}

/* Íconos sociales */
.site-header__social { display: flex; gap: 7px; align-items: center; }

.social-icon {
  width:         30px;
  height:        30px;
  border-radius: 50%;
  background:    var(--color-text);
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
  transition:    background .15s;
}

.social-icon:hover { background: var(--color-primary); text-decoration: none; }

.social-icon svg {
  width:   14px;
  height:  14px;
  fill:    none;
  stroke:  #fff;
  stroke-width:    2;
  stroke-linecap:  round;
  stroke-linejoin: round;
  display: block;
}

.social-icon svg.filled { fill: #fff; stroke: none; }

/* Logo central */
.site-header__logo { display: flex; justify-content: center; }

.site-header__logo img {
  height:  135px;
  width:   auto;
  display: block;
}

/* Acciones */
.site-header__actions { display: flex; justify-content: flex-end; gap: 8px; }

.icon-btn {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  border:        1.5px solid #d0cfc6;
  background:    transparent;
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    border-color .15s;
}

.icon-btn:hover { border-color: var(--color-primary); }

.icon-btn svg {
  width:          16px;
  height:         16px;
  fill:           none;
  stroke:         var(--color-text);
  stroke-width:   2;
  stroke-linecap: round;
}

/* ── Barra de navegación ────────────────────────────────── */
.site-nav {}

.site-nav__inner {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   0 24px;
  display:   flex;
  justify-content: center;
}

.site-nav a {
  font-size:      .8rem;
  font-weight:    600;
  letter-spacing: .08em;
  color:          var(--color-text);
  padding:        13px 18px;
  border-bottom:  2px solid transparent;
  transition:     color .15s, border-color .15s;
  text-transform: uppercase;
  white-space:    nowrap;
}

.site-nav a:hover  { color: var(--color-primary); text-decoration: none; }
.site-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background:  var(--color-surface);
  border-top:  1px solid #e0dfd7;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   28px 24px;
  display:   flex;
  align-items:     center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__marca img {
  height:  109px;
  width:   auto;
  display: block;
}

.site-footer__partner {
  text-align: right;
}

.site-footer__partner img {
  display:          block;
  width:            auto;
  height:           auto;
  transform:        scale(0.7);
  transform-origin: right center;
}

.site-footer__bar-dark  { height: 7px;  background: #111111; }
.site-footer__bar-green { height: 11px; background: var(--color-primary); 
padding-top: 150px;}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .site-header__top {
    grid-template-columns: auto 1fr;
    grid-template-rows:    auto auto;
    padding: 12px 16px;
    gap:     10px;
  }

  .site-header__logo {
    grid-column:     1 / -1;
    justify-content: center;
    order: -1;
  }

  .site-header__logo img { height: 80px; }

  .site-header__social { display: none; }

  .site-header__actions { justify-content: flex-end; }

  .site-nav__inner {
    overflow-x:  auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav__inner::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 11px 12px; font-size: .72rem; }

  .site-footer__inner   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer__partner { text-align: left; }
  .site-footer__partner img { transform-origin: left center; }
}
