/* ═══════════════════════════════════════════════════════════════
   ES: Estilos de /inspecciones/tipos/:slug — detalle de tipo de inspección
   EN: Styles for /inspecciones/tipos/:slug — inspection type detail page
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero mini ──────────────────────────────────────────────── */
/* ES: Banda navy compacta con breadcrumb, título y credencial  */
/* EN: Compact navy band with breadcrumb, title, credential     */
.td-hero {
  background: var(--navy, #0B1F33);
  padding: 40px 24px 44px;
}

.td-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ES: Ruta de navegación (breadcrumb) */
/* EN: Navigation breadcrumb */
.td-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}

.td-breadcrumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}

.td-breadcrumb a:hover { color: #fff; }

.td-breadcrumb-sep { opacity: .4; }

.td-badge-seguro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,107,74,.15);
  color: var(--coral, #FF6B4A);
  border: 1px solid rgba(255,107,74,.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ES: Título principal del tipo de inspección */
/* EN: Main title for the inspection type */
.td-titulo {
  font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.15 var(--font-head, Archivo, sans-serif);
  color: #fff;
  margin: 0 0 16px;
}

/* ES: Línea de credencial con ícono de escudo */
/* EN: Credential line with shield icon */
.td-credencial {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.td-credencial svg {
  width: 16px;
  height: 16px;
  color: var(--coral, #FF6B4A);
  flex-shrink: 0;
}

/* ── Layout principal ───────────────────────────────────────── */
/* ES: Contenido principal + sidebar sticky en dos columnas     */
/* EN: Main content + sticky sidebar in two columns             */
.td-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  align-items: start;
}

/* ── Sección "Qué incluye" ──────────────────────────────────── */
.td-section { margin-bottom: 48px; }

.td-section-title {
  font: 700 1.3rem/1.2 var(--font-head, Archivo, sans-serif);
  color: var(--navy, #0B1F33);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2ddd5;
}

/* ES: Lista de ítems de "Qué incluye" con checkmarks corales   */
/* EN: "What's included" item list with coral checkmarks        */
.td-incluye-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-incluye-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #374151;
  line-height: 1.55;
}

.td-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255,107,74,.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.td-check svg {
  width: 11px;
  height: 11px;
  stroke: var(--coral, #FF6B4A);
}

/* ── Sección "Para quién es" ────────────────────────────────── */
.td-para-quien {
  background: #f9f8f5;
  border-left: 4px solid var(--coral, #FF6B4A);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  font-size: 15px;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ── CTA intermedio WhatsApp ────────────────────────────────── */
/* ES: Llamada a la acción hacia WhatsApp entre secciones       */
/* EN: Mid-page WhatsApp call-to-action                         */
.td-cta-mid {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy, #0B1F33);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.td-cta-mid-text {
  flex: 1;
  min-width: 200px;
}

.td-cta-mid-title {
  font: 700 1rem/1.2 var(--font-head, Archivo, sans-serif);
  color: #fff;
  margin: 0 0 4px;
}

.td-cta-mid-sub {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.td-cta-mid-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font: 700 14px/1 var(--font-head, Archivo, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}

.td-cta-mid-btn:hover { background: #1EBE58; }
.td-cta-mid-btn svg { width: 18px; height: 18px; }

/* ── Sidebar ────────────────────────────────────────────────── */
/* ES: Panel lateral sticky con datos del inspector             */
/* EN: Sticky sidebar panel with inspector info                 */
.td-aside {
  position: sticky;
  top: calc(var(--nav-h, 70px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ES: Tarjeta de credenciales del inspector */
/* EN: Inspector credentials card           */
.td-inspector-card {
  background: var(--navy, #0B1F33);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.td-inspector-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral, #FF6B4A);
  color: #fff;
  font: 700 20px/1 var(--font-head, Archivo, sans-serif);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.td-inspector-name {
  font: 700 16px/1.2 var(--font-head, Archivo, sans-serif);
  margin: 0 0 4px;
}

.td-inspector-lic {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
}

.td-inspector-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.td-inspector-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-align: left;
}

.td-inspector-badge svg {
  width: 14px;
  height: 14px;
  color: var(--coral, #FF6B4A);
  flex-shrink: 0;
}

.td-aside-cta {
  display: block;
  background: var(--coral, #FF6B4A);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font: 700 14px/1 var(--font-head, Archivo, sans-serif);
  transition: background .2s;
}

.td-aside-cta:hover { background: #e85a39; }

/* ES: Lista de otros tipos de inspección en el sidebar */
/* EN: Other inspection types list in the sidebar       */
.td-otros-card {
  background: #fff;
  border: 1px solid #e2ddd5;
  border-radius: 14px;
  padding: 20px;
}

.td-otros-title {
  font: 700 14px/1 var(--font-head, Archivo, sans-serif);
  color: var(--navy, #0B1F33);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}

.td-otros-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-otros-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.td-otros-list a:hover {
  background: var(--cream, #F7F5F0);
  color: var(--navy, #0B1F33);
}

.td-otros-list a.is-active {
  background: rgba(255,107,74,.08);
  color: var(--coral, #FF6B4A);
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .td-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 60px;
  }
  .td-aside { position: static; }
}

@media (max-width: 600px) {
  .td-hero { padding: 32px 16px 36px; }
  .td-cta-mid { flex-direction: column; align-items: flex-start; gap: 12px; }
  .td-cta-mid-btn { width: 100%; justify-content: center; }
}
