/* ══════════════════════════════════════
   especialidad-detail.css
   Specialty Detail Page
   ══════════════════════════════════════ */

/* ════════════════════════
   HERO BANNER
════════════════════════ */
.hero-banner {
  background: linear-gradient(90deg, #0b3f78 0%, #0b6fb3 45%, #0aa2df 100%);
  padding: 28px 24px 26px;
  border-radius: 0 0 28px 28px;
  margin-bottom: 32px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-pre {
  color: rgba(255, 255, 255, .72);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

/* ════════════════════════
   SEARCH BOX (in hero)
════════════════════════ */
.hero-banner .search-box {
  display: flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50px;
  padding: 5px 7px 5px 18px;
  gap: 8px;
  min-width: 260px;
  max-width: 340px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}

.hero-banner .search-box:focus-within {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .25);
}

.hero-banner .search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #fff;
  background: transparent;
  min-width: 0;
}

.hero-banner .search-box input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.hero-banner .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, transform .15s;
}

.hero-banner .search-btn:hover {
  background: #c01010;
  transform: scale(1.05);
}

.hero-banner .search-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ════════════════════════
   DETAIL MAIN
════════════════════════ */
.detail-main {
  padding: 0 24px 48px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 48% 48%;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ════════════════════════
   BREADCRUMB
════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a6272;
  margin-bottom: 16px;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0d2d6b;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: #1a56c4;
}

.breadcrumb a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.breadcrumb span {
  color: #5a6272;
}

.breadcrumb strong {
  color: #1a1a2e;
}

/* ════════════════════════
   TITLE BLOCK
════════════════════════ */
.detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: #3a3a4a;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}

.detail-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: #5a5a6a;
  line-height: 1.25;
  margin-bottom: 18px;
}

.detail-body {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6272;
  margin-bottom: 12px;
  max-width: 480px;
}

/* ════════════════════════
   IMAGES
════════════════════════ */
.detail-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.img-main {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
  aspect-ratio: 16 / 10;
}

.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.img-main:hover img {
  transform: scale(1.03);
}

.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.img-small {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
  aspect-ratio: 4 / 3;
}

.img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.img-small:hover img {
  transform: scale(1.04);
}

/* ══════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════ */
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-body {
    max-width: 100%;
  }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════ */
@media (max-width: 768px) {
  .hero-banner {
    padding: 22px 16px 20px;
    margin-bottom: 24px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-banner .search-box {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    box-sizing: border-box;
  }

  .detail-main {
    padding: 0 16px 40px;
  }

  .detail-title {
    font-size: 22px;
  }

  .detail-subtitle {
    font-size: 18px;
  }

  .img-main {
    aspect-ratio: 16 / 9;
  }
}
