/* ══════════════════════════════════════════════════════════════════════════
   HOME.CSS
   Nota: .section-header, .section-tag, .section-title, .section-line
   y .enf-icon viven en style.css (globales).
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1C4A6E 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(57, 178, 190, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Lado izquierdo ── */
.hero-left {
  padding: 50px 56px 50px 64px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 178, 190, 0.12);
  border: 1px solid rgba(57, 178, 190, 0.3);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 em { color: var(--teal); font-style: normal; }

.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat { flex: 1; }

.hero-stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 6px;
}

/* ── Lado derecho ── */
.hero-right {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px 0 20px;
}

.hero-photo {
  width: 100%;
  max-width: 550px;
  height: 700px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cert-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(10px);
}

.cert-dot {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.cert-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.2;
}

.cert-text span {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   STRIP DE ESTADÍSTICAS
   ══════════════════════════════════════════════════════════════ */
.strip {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--gray-mid);
}

.strip-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--gray-mid);
}

.strip-item:last-child { border-right: none; }

.strip-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.strip-label {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   ENFERMEDADES QUE TRATAMOS
   ══════════════════════════════════════════════════════════════ */
.enfermedades {
  padding: 96px 64px;
  background: var(--gray-light);
}

.enf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.enf-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: block;
}

.enf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.enf-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.enf-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.enf-link {
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   TRATAMIENTOS DESTACADOS
   ══════════════════════════════════════════════════════════════ */
.tratamientos-dest {
  padding: 96px 64px;
  background: var(--white);
}

.trat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.trat-card {
  background: var(--gray-light);
  padding: 40px 32px;
  border-radius: 12px;
  text-align: center;
  transition: all .3s;
}

.trat-card:hover {
  background: var(--teal-light);
  transform: translateY(-4px);
}

.trat-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.trat-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.trat-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: 70px;
}

/* ══════════════════════════════════════════════════════════════
   BLOG DESTACADO
   ══════════════════════════════════════════════════════════════ */
.blog-dest { padding: 96px 64px; background: var(--gray-light); }

.blog-grid-dest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.blog-card-dest {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: block;
}

.blog-card-dest:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-img-dest {
  height: 200px;
  background: var(--gray-mid);
  overflow: hidden;
}

.blog-img-dest img { width: 100%; height: 100%; object-fit: cover; }

.blog-content-dest { padding: 28px; }

.blog-cat {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.blog-content-dest h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content-dest p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-meta-dest {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--teal);
  padding: 52px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band-text strong {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.cta-band-text span {
  color: rgba(13, 33, 55, 0.65);
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   DOCTOR SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.home-doctor-showcase {
  background: #F3F7FA;
  padding: 82px 64px 78px;
}

.home-doctor-wrap {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 70px;
  align-items: center;
}

.home-doctor-photo-col { position: relative; }

.home-doctor-photo-main {
  min-height: 560px;
  border: 2px dashed rgba(57, 178, 190, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: #EEF6F8;
  position: relative;
}

.home-doctor-photo-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-doctor-exp-badge {
  position: absolute;
  left: -16px;
  bottom: -16px;
  background: linear-gradient(135deg, #39B2BE 0%, #2E8F9A 100%);
  color: #08253E;
  border-radius: 14px;
  padding: 18px 18px 16px;
  min-width: 128px;
  box-shadow: 0 16px 35px rgba(57, 178, 190, 0.28);
}

.home-doctor-exp-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: #08253E;
  margin-bottom: 4px;
}

.home-doctor-exp-badge span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(8, 37, 62, 0.88);
  font-weight: 500;
}

.home-doctor-info-col { max-width: 680px; }

.home-mini-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.home-doctor-title {
  font-family: var(--serif);
  font-size: 60px;
  line-height: .98;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}

.home-doctor-title em { color: var(--teal); font-style: normal; }

.home-doctor-line {
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  margin: 20px 0 26px;
}

.home-center-line { margin-left: auto; margin-right: auto; }

.home-doctor-copy {
  color: #5A6B7A;
  font-size: 18px;
  line-height: 1.75;
  max-width: 760px;
}

.home-doctor-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.home-doctor-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #DCE6EC;
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.home-doctor-point-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EAF6F8;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.home-doctor-point strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-doctor-point span {
  display: block;
  color: #627383;
  font-size: 14px;
  line-height: 1.45;
}

.home-doctor-actions { margin-top: 28px; }

/* ══════════════════════════════════════════════════════════════
   HOSPITALES
   ══════════════════════════════════════════════════════════════ */
.home-hospitales {
  background: #FAFBFC;
  padding: 64px 64px 74px;
  border-top: 1px solid rgba(13, 33, 55, 0.04);
}

.home-hospitales-head {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
}

.home-hospitales-title {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.08;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}

.home-hospitales-title em { font-style: normal; color: var(--teal); }

.home-hospitales-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.home-hospital-card {
  background: #fff;
  border: 1px solid #D9E5EC;
  border-radius: 16px;
  min-height: 170px;
  padding: 34px 22px 28px;
  text-align: center;
  text-decoration: none;
  transition: all .25s ease;
  color: inherit;
}

.home-hospital-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 33, 55, 0.08);
}

.home-hospital-card.featured {
  background: #F4FBFC;
  border-color: rgba(57, 178, 190, 0.35);
}

.home-hospital-ico {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  color: #9AD7DF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hospital-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 29px;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 4px;
  font-weight: 600;
}

.home-hospital-card span {
  display: block;
  color: #617180;
  font-size: 17px;
  margin-bottom: 10px;
}

.home-hospital-card small {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero h1      { font-size: 46px; }
  .hero-photo   { max-width: 480px; height: 620px; }

  .home-doctor-wrap       { grid-template-columns: 1fr; gap: 36px; }
  .home-doctor-info-col   { max-width: 100%; }
  .home-doctor-title      { font-size: 52px; }
  .home-hospitales-title  { font-size: 46px; }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left  { padding: 50px 40px 30px; }
  .hero-right { height: auto; padding: 20px 40px 60px; }
  .hero-photo { max-width: 500px; height: 600px; margin: 0 auto; }

  .enf-grid,
  .trat-grid,
  .blog-grid-dest { grid-template-columns: repeat(2, 1fr); }

  .strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .home-doctor-showcase,
  .home-hospitales { padding-left: 28px; padding-right: 28px; }

  .home-doctor-points,
  .home-hospitales-grid { grid-template-columns: 1fr; }

  .home-doctor-photo-main { min-height: 420px; }
  .home-doctor-exp-badge  { left: 14px; bottom: 14px; }
}

@media (max-width: 768px) {
  .hero       { padding-top: 64px; }
  .hero-left  { padding: 40px 24px 30px; }
  .hero h1    { font-size: 38px; }
  .hero-right { padding: 20px 24px 50px; }
  .hero-photo { height: 500px; }

  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .enf-grid,
  .trat-grid,
  .blog-grid-dest,
  .strip { grid-template-columns: 1fr; }

  .cta-band { flex-direction: column; text-align: center; }

  .enfermedades,
  .tratamientos-dest,
  .blog-dest { padding: 64px 24px; }
}

@media (max-width: 640px) {
  .home-doctor-showcase { padding-top: 58px; padding-bottom: 54px; }
  .home-hospitales      { padding-top: 54px; padding-bottom: 58px; }
  .home-doctor-title    { font-size: 42px; }
  .home-hospitales-title { font-size: 36px; }
  .home-doctor-copy     { font-size: 16px; }
  .home-hospital-card strong { font-size: 24px; }
  .home-hospital-card span   { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero h1          { font-size: 32px; }
  .hero-sub         { font-size: 15px; }
  .hero-photo       { height: 450px; }
  .hero-cert-badge  { padding: 14px 16px; }
  .cert-text strong { font-size: 12px; }
  .cert-text span   { font-size: 10px; }
}