/* ══════════════════════════════════════
   servicios.css
   Servicios Médicos — Clean & Compact
   ══════════════════════════════════════ */

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.srv-header {
  padding: 44px 24px 40px;
  background: #fff;
}

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

.srv-header-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: #0d2d6b;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.srv-header-text p {
  margin-top: 10px;
  font-size: 15px;
  color: #6b7a90;
  font-weight: 600;
  max-width: 480px;
}

/* ══════════════════════════════
   SEARCH BOX
══════════════════════════════ */
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid #c5d0e2;
  border-radius: 50px;
  padding: 5px 6px 5px 18px;
  gap: 8px;
  min-width: 280px;
  max-width: 340px;
  background: #fff;
  transition: border-color .2s;
}

.search-box:focus-within {
  border-color: #1a56c4;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 13.5px;
  color: #2a2a3a;
  background: transparent;
}

.search-box input::placeholder {
  color: #9aa5bb;
}

.search-btn {
  background: #e02020;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.search-btn:hover {
  background: #c01010;
}

.search-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ══════════════════════════════
   SECTION
══════════════════════════════ */
.srv-section {
  padding: 56px 24px 64px;
  background: #fff;
}

.srv-section:nth-child(even) {
  background: #f5f7fb;
}

.srv-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.srv-section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #0d2d6b;
  margin-bottom: 8px;
}

.srv-section-header p {
  font-size: 14px;
  color: #6b7a90;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ══════════════════════════════
   GRID
══════════════════════════════ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ══════════════════════════════
   CARD — Clean, no overlay
══════════════════════════════ */
.srv-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6ecf3;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}

.srv-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
}

/* Card image — separated from text */
.srv-card-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #e2eaff;
}

.srv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card body */
.srv-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.srv-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0d2d6b;
  margin-bottom: 6px;
  line-height: 1.3;
}

.srv-card-desc {
  font-size: 12.5px;
  color: #6b7a90;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Checklist — simple blue ✓ */
.srv-card-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.srv-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #3a4252;
  line-height: 1.4;
}

.srv-check {
  color: #1a56c4;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* CTA button — compact */
.srv-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  align-self: flex-start;
  transition: background .2s, transform .15s;
  background: linear-gradient(135deg, #1a56c4 0%, #0ea5d8 100%);
  color: #fff;
}

.srv-card-btn:hover {
  background: linear-gradient(135deg, #0d2d6b 0%, #0a8ab8 100%);
  transform: translateY(-1px);
}

.srv-card-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════ */
@media (max-width: 1024px) {
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .srv-card-img {
    height: 150px;
  }
}

/* ══════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════ */
@media (max-width: 700px) {
  .srv-header {
    padding: 32px 16px 28px;
  }

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

  .search-box {
    min-width: 100%;
    max-width: 100%;
  }

  .srv-section {
    padding: 40px 16px 48px;
  }

  .srv-section-header {
    margin-bottom: 24px;
  }

  .srv-grid {
    grid-template-columns: 1fr;
  }

  .srv-card-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .srv-header-text h1 {
    font-size: 24px;
  }

  .srv-card-btn {
    width: 100%;
    justify-content: center;
  }
}
