* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #eff6fa;
  color: #1c2f3a;
  line-height: 1.45;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.main-header {
  background: linear-gradient(120deg, #0b5e6b 0%, #1f8a6e 100%);
  color: white;
  padding: 1.8rem 0 1.5rem;
  border-radius: 0 0 38px 38px;
  box-shadow: 0 12px 28px -8px rgba(0, 32, 32, 0.2);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 5px;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* TABS */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 28px;
  border-bottom: 2px solid #cde3ec;
  padding-bottom: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  color: #1d6c6e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #daf0f5;
  color: #0b5e6b;
}

.tab-btn.active {
  background: #1f8a6e;
  color: white;
  box-shadow: 0 6px 12px rgba(31, 138, 110, 0.25);
}

/* CONTENIDO TABS */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  background: white;
  border-radius: 38px;
  padding: 36px 30px;
  margin-bottom: 48px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.tab-content.active-tab {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TARJETAS Y ELEMENTOS COMUNES */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 24px 0 20px;
}

.card {
  background: #ffffff;
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  transition: all 0.25s;
  border: 1px solid #e3eef5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-5px);
  border-color: #bcdbe6;
  box-shadow: 0 20px 30px -12px rgba(0, 70, 60, 0.1);
}

.card-icon {
  font-size: 2.4rem;
  color: #1f8a6e;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0c5660;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
  color: #0a5b61;
}

.sub {
  color: #467785;
  margin-bottom: 1.8rem;
  font-weight: 500;
  border-left: 4px solid #2c9c8a;
  padding-left: 14px;
}

hr {
  margin: 32px 0;
  border: none;
  height: 2px;
  background: linear-gradient(to right, #d5eaf0, transparent);
}

/* NOTICIAS */
.news-block {
  margin-top: 20px;
}

.news-item {
  display: flex;
  gap: 18px;
  border-left: 3px solid #2c9c8a;
  padding-left: 20px;
  margin-bottom: 28px;
}

.news-date {
  font-weight: 700;
  color: #2c9c8a;
  min-width: 85px;
  font-size: 0.85rem;
}

.news-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.info-highlight {
  background: #e5f3f5;
  border-radius: 28px;
  padding: 16px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #0f6a60;
}

/* REPOSITORIO */
.list-docs {
  list-style: none;
  padding: 0;
}

.list-docs li {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef3f7;
  padding: 16px 0;
}

.list-docs li i {
  width: 32px;
  font-size: 1.5rem;
  color: #2c9c8a;
}

.doc-info {
  flex: 1;
  font-weight: 500;
}

.tag {
  background: #e5f2f5;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #146b5e;
}

.btn-sim {
  color: #1f7a6b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.btn-sim i {
  font-size: 0.8rem;
  margin-right: 4px;
}

.repo-note {
  margin-top: 24px;
  background: #f8fdfe;
  border-radius: 20px;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
}

/* CAPACITACIÓN - botones inscripción */
.btn-inscripcion {
  display: inline-block;
  margin-top: 16px;
  background: #1f8a6e;
  color: white;
  padding: 8px 18px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.2s;
}

.btn-inscripcion:hover {
  background: #0e6d55;
}

/* PROTOCOLOS */
.protocol-footer {
  background: #eef4f9;
  border-radius: 24px;
  padding: 18px;
  margin-top: 24px;
  font-size: 0.9rem;
  text-align: center;
}

/* INSTITUCIONAL */
.certificaciones {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
}

.certificaciones span {
  background: #eff7f5;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* ENFERMERÍA */
.buenas-practicas {
  background: #e4f2ef;
  border-radius: 28px;
  padding: 20px;
  margin: 24px 0 16px;
}

.buenas-practicas ul {
  margin-left: 28px;
  margin-top: 12px;
}

.evento-webinar {
  background: #ffffff;
  border: 1px solid #cce7e2;
  border-radius: 28px;
  padding: 16px 20px;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: #0b4852;
  color: #dcf0f0;
  text-align: center;
  padding: 32px 20px;
  border-radius: 36px 36px 0 0;
  margin-top: 20px;
}

.footer-content p {
  margin: 8px 0;
}

.footer-content .small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* MEDIA QUERIES */
@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .tab-content {
    padding: 24px 18px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .header-flex {
    flex-direction: column;
    align-items: start;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .news-item {
    flex-direction: column;
    gap: 6px;
  }
}