/* ================================================
   SERVICIO DETALLE — CSS reutilizable
   Usar en todas las páginas de especialidad
   ================================================ */

/* ── LINK ACTIVO EN NAV ── */
.nav-active {
    color: var(--primary) !important;
    background: var(--primary-light);
    border-radius: 8px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); font-weight: 500; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb i { font-size: 0.65rem; color: var(--text-gray); }

/* ── HERO ── */
.detalle-hero {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fb 60%, #dbeafe 100%);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--border-color);
}
.detalle-hero-inner { max-width: 900px; }
.detalle-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
.detalle-icon-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.detalle-icon { width: 52px; height: 52px; object-fit: contain; }

.detalle-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--dark);
    margin: 8px 0 14px;
}
.detalle-hero h1 .highlight { color: var(--primary); }
.detalle-hero-sub {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 560px;
}
.detalle-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.badge-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}
.badge-info i { color: var(--primary); }

/* ── LAYOUT PRINCIPAL ── */
.detalle-section { padding: 64px 0 80px; }
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* ── CARDS DE CONTENIDO ── */
.detalle-main { display: flex; flex-direction: column; gap: 24px; }
.detalle-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.detalle-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.detalle-card h2 i { color: var(--primary); font-size: 1rem; }
.detalle-card p { color: var(--text-gray); line-height: 1.7; margin-bottom: 12px; }
.detalle-card p:last-child { margin-bottom: 0; }

/* ── LISTA DE INCLUYE ── */
.detalle-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detalle-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}
.detalle-lista i { color: var(--primary); font-size: 0.9rem; flex-shrink: 0; }

/* ── MÉDICOS MINI ── */
.medicos-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.medico-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
}
.medico-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid rgba(10,102,194,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.medico-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.medico-foto--monica   { object-position: center 18%; }
.medico-foto--mildred  { object-position: center 8%;  }
.medico-foto--bastian  { object-position: center 28%; }
.medico-foto--castro   { object-position: center 8%;  }
.medico-mini div { display: flex; flex-direction: column; gap: 2px; }
.medico-mini strong { font-size: 0.85rem; color: var(--dark); font-weight: 700; line-height: 1.3; }
.medico-mini span { font-size: 0.75rem; color: var(--text-gray); }

/* ── SIDEBAR ── */
.detalle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}
.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card h3 i { color: var(--primary); }
.sidebar-card p { font-size: 0.88rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 14px; }

/* Horarios */
.sidebar-card--primary { border-top: 3px solid var(--primary); }
.sidebar-horario {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.87rem;
    gap: 12px;
}
.sidebar-horario:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-horario span:first-child { font-weight: 600; color: var(--dark); flex-shrink: 0; }
.sidebar-horario span:last-child { color: var(--text-gray); text-align: right; line-height: 1.4; }
.sidebar-horario--closed span:last-child { color: #ef4444; font-weight: 600; }

/* Sucursales */
.sidebar-sucursal { display: flex; flex-direction: column; gap: 6px; }
.sidebar-sucursal strong { font-size: 0.9rem; color: var(--dark); }
.sidebar-sucursal p { font-size: 0.83rem; color: var(--text-gray); margin: 0; }
.sidebar-sucursal--border { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.sidebar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--primary);
    font-weight: 600;
    transition: opacity 0.2s;
}
.sidebar-phone:hover { opacity: 0.75; }
.sidebar-phone i { font-size: 0.75rem; }
.sidebar-btn {
    margin-top: 8px;
    padding: 9px 16px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
}

/* WhatsApp card */
.sidebar-card--whatsapp {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.sidebar-card--whatsapp h3 { color: #15803d; }
.sidebar-card--whatsapp h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--whatsapp);
    border-radius: 50%;
    margin-right: 4px;
}
.sidebar-card--whatsapp .btn-whatsapp { width: 100%; justify-content: center; }

/* Botón volver */
.sidebar-back {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.88rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .detalle-grid { grid-template-columns: 1fr; }
    .detalle-sidebar { position: static; }
    .medicos-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .detalle-hero-content { flex-direction: column; gap: 20px; }
    .detalle-icon-wrap { width: 72px; height: 72px; }
    .detalle-icon { width: 42px; height: 42px; }
    .detalle-card { padding: 22px; }
}