/* ════════════════════════════════════════════════════
   OFTALMOLOGO.CSS — estilos de la página de especialistas
   Extiende estilos.css
   ════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────── */
.doc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a2560 60%, #0f1a4a 100%);
  padding: clamp(7rem, 11vw, 10rem) 0 clamp(4rem, 6vw, 7rem);
  overflow: hidden;
}

/* Anillos decorativos */
.doc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dh-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.dh-r1 { width: 700px; height: 700px; top: -300px; right: -200px; }
.dh-r2 { width: 400px; height: 400px; bottom: -150px; left: -80px; border-color: rgba(201,168,76,.1); }

/* Cuadrícula de puntos */
.dh-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.doc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.doc-hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.18);
  color: #f5e4b3;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.doc-hero-label i { color: var(--gold); font-size: .75rem; }

.doc-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.doc-hero-title em { font-style: italic; color: var(--gold); }

.doc-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
}

.doc-hero-pills {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.doc-hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  border-radius: 50px;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.doc-hero-pills i { color: var(--gold); font-size: .75rem; }

/* Ola de transición */
.doc-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
}
.doc-hero-wave svg { width: 100%; height: 100%; }

/* ── DOCTORES ─────────────────────────────────────── */
.doctores .container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.doctor-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
}
.doctor-row--reverse { grid-template-columns: 1fr 380px; }
.doctor-row--reverse .dr-photo-col { order: 2; }
.doctor-row--reverse .dr-info-col  { order: 1; }

/* Foto */
.dr-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.dr-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(42,56,144,.15);
  animation: ringPulse 5s ease-in-out infinite;
  pointer-events: none;
}
.dr-photo-ring--gold {
  border-color: rgba(201,168,76,.2);
}

.dr-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--blue-light);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.dr-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .6s ease;
}
.dr-photo-frame:hover img { transform: scale(1.04); }

/* Fallback sin foto */
.dr-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--gray-300);
  font-size: 5rem;
}
.dr-photo-frame.no-photo img { display: none; }
.dr-photo-frame.no-photo .dr-photo-fallback { display: flex; }

/* Badge sobre foto */
.dr-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--blue);
  color: white;
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
}
.dr-badge i { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; }

.dr-badge--gold {
  background: var(--gold);
  color: #3a2a00;
}
.dr-badge--gold i { color: #3a2a00; }

/* Info del doctor */
.dr-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}
.dr-tag--gold {
  color: #7a5500;
  background: var(--gold-light);
}

.dr-name {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: .5rem;
}

.dr-specialty {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.dr-specialty i { color: var(--blue); }

.dr-bio {
  font-size: .97rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* Habilidades / especialidades */
.dr-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 2rem;
}
.dr-skill {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}
.dr-skill:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: translateX(3px);
}
.dr-skill i {
  color: var(--blue);
  font-size: .85rem;
  width: 16px;
  flex-shrink: 0;
}

/* CTA doctor */
.dr-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: #25d366;
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
}
.dr-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.45);
}

.dr-cta--gold {
  background: var(--blue);
  box-shadow: 0 6px 24px rgba(42,56,144,.3);
}
.dr-cta--gold:hover {
  box-shadow: 0 10px 32px rgba(42,56,144,.45);
}

.dr-cta-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.dr-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.dr-cta-text strong { font-size: .92rem; font-weight: 700; }
.dr-cta-text small  { font-size: .75rem; opacity: .82; }

.dr-cta-arrow { font-size: .85rem; opacity: .7; transition: transform var(--trans); }
.dr-cta:hover .dr-cta-arrow { transform: translateX(4px); opacity: 1; }

/* Separador entre doctores */
.dr-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--gray-300);
  padding: 1rem 0;
}
.dr-divider span {
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}
.dr-divider i {
  font-size: 1.1rem;
  color: var(--blue-light);
  background: var(--white);
  border: 1px solid var(--gray-100);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── PROCESO ──────────────────────────────────────── */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 1rem;
}

.proceso-step {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--trans), box-shadow var(--trans);
}
.proceso-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.ps-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  border: 3px solid var(--cream);
}

.ps-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  transition: background var(--trans), color var(--trans);
}
.proceso-step:hover .ps-icon { background: var(--blue); color: white; }

.proceso-step h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: .65rem;
}
.proceso-step p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Conector entre pasos */
.ps-connector {
  position: absolute;
  top: 50%;
  right: -1.1rem;
  width: 2.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-100), var(--blue-light));
  z-index: 1;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .doctor-row,
  .doctor-row--reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .doctor-row--reverse .dr-photo-col,
  .doctor-row--reverse .dr-info-col { order: unset; }

  .dr-photo-frame { max-width: 360px; margin: 0 auto; }
  .dr-badge { right: 0; }

  .proceso-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ps-connector { display: none; }
}

@media (max-width: 640px) {
  .doc-hero-pills { flex-direction: column; align-items: flex-start; }
  .dr-skills { grid-template-columns: 1fr; }
  .dr-photo-frame { max-width: 280px; }
  .dr-badge { position: static; margin-top: 1rem; border-radius: var(--radius-sm); }
  .dr-photo-ring { display: none; }
}
