/* ==========================================================
   ITS SALUD - Nueva Home
   Diseño minimalista. No modifica la información existente.
   ========================================================== */

:root {
  --its-primary: #176b8f;
  --its-primary-dark: #0e4d68;
  --its-accent: #2b9ab8;
  --its-soft: #eef7fa;
  --its-text: #26343b;
  --its-muted: #66767e;
  --its-white: #ffffff;
  --its-border: #e1e9ec;
  --its-shadow: 0 14px 35px rgba(24, 60, 75, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--its-text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--its-border);
  box-shadow: 0 3px 18px rgba(0,0,0,.04);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand { display: block; }

.brand img {
  display: block;
  width: 170px;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 13px;
  text-decoration: none;
  color: var(--its-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--its-primary);
  background: var(--its-soft);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a,
.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--its-soft);
  transition: transform .2s ease, background .2s ease;
}

.social-links a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
  background: #dceff4;
}

.social-links img,
.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hero {
  background:
    linear-gradient(90deg, rgba(14,77,104,.94), rgba(23,107,143,.84)),
    url("../img/its.jpg") center/cover no-repeat;
  color: white;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 410px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 65px 0;
}

.hero-copy { max-width: 680px; }

.eyebrow,
.section-kicker,
.level-label,
.footer-title {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.eyebrow { opacity: .88; margin-bottom: 14px; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 700;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 18px;
  opacity: .94;
}

.hero-button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--its-primary);
  background: var(--its-primary);
  color: white;
  transition: transform .2s ease, background .2s ease;
}

.hero-button {
  background: white;
  color: var(--its-primary-dark);
  border-color: white;
}

.hero-button:hover,
.card-button:hover {
  transform: translateY(-2px);
}

.levels-section {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 80px 0 90px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-kicker { color: var(--its-primary); margin-bottom: 8px; }

.section-heading h2,
.info-section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--its-muted);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.level-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--its-border);
  border-radius: 12px;
  box-shadow: var(--its-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(24, 60, 75, .14);
}

.level-image {
  padding: 15px 15px 0;
}

.level-image img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.level-content { padding: 24px 25px 27px; }

.level-label { color: var(--its-primary); margin-bottom: 6px; }

.level-content h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.level-content p {
  min-height: 52px;
  margin: 0 0 20px;
  color: var(--its-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.card-link {
  color: var(--its-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.card-link:hover { text-decoration: underline; }

.level-new {
  border: 2px solid var(--its-accent);
}

.new-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 5px;
  background: var(--its-accent);
  color: white;
  font-size: 11px;
  letter-spacing: .8px;
  font-weight: 700;
}

.card-button.disabled {
  cursor: default;
  background: #edf1f2;
  border-color: #edf1f2;
  color: #65737a;
}

.info-section {
  background: var(--its-soft);
  border-top: 1px solid var(--its-border);
  border-bottom: 1px solid var(--its-border);
}

.info-inner {
  width: min(980px, calc(100% - 40px));
  margin: auto;
  padding: 65px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-section p {
  margin: 0;
  color: var(--its-muted);
  font-size: 16px;
}

.site-footer {
  background: #143f52;
  color: white;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}

.footer-brand img {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-title {
  margin-bottom: 10px;
  color: #9dd9e8;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-social > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  background: rgba(255,255,255,.12);
}

.footer-social a:hover { background: rgba(255,255,255,.2); }

.footer-bottom {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 12px;
  opacity: .8;
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .main-nav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .social-links { margin-left: auto; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .level-card:last-child { grid-column: 1 / -1; max-width: 520px; width: 100%; margin: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .header-inner,
  .hero-inner,
  .levels-section,
  .footer-inner { width: min(100% - 28px, 1180px); }

  .brand img { width: 145px; }
  .social-links { gap: 5px; }
  .social-links a { width: 30px; height: 30px; }
  .social-links img { width: 16px; height: 16px; }

  .main-nav { overflow-x: auto; justify-content: flex-start; }
  .main-nav a { white-space: nowrap; }

  .hero-inner { min-height: 360px; padding: 50px 0; }
  .hero p { font-size: 16px; }

  .levels-section { padding: 55px 0 65px; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-card:last-child { grid-column: auto; max-width: none; }

  .info-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 50px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0;
  }

  .footer-brand { grid-column: auto; }
}
