/* ===================================================================
   Visor de perfiles de Instagram (/herramientas/ver-instagram-sin-cuenta)
   Mismo lenguaje editorial que /servicios y las páginas de pack.
   Móvil primero: el buscador entra en la primera pantalla.
   =================================================================== */
.igv-page {
  background: #fff;
  color: #14181f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.igv-page *, .igv-page *::before, .igv-page *::after { box-sizing: border-box; }
.igv-page img { max-width: 100%; }
.ib-hero--igv .ib-hero__title { max-width: 16ch; }
.ib-hero--igv.ib-hero--compact { padding-bottom: 44px; }
@media (min-width: 1024px) { .ib-hero--igv.ib-hero--compact { padding: 64px 0 56px; } }

.igv { padding: 28px 0 56px; }
.igv__inner { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* — Buscador — */
.igv-form {
  margin-top: 0;
  padding: 18px 16px 16px;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(20, 24, 31, .35);
}
.igv-form__label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 700; color: #14181f; }
.igv-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; position: relative; }
.igv-form__at { position: absolute; left: 14px; font-size: 1rem; font-weight: 700; color: #9ca3af; pointer-events: none; }
.igv-form__input {
  flex: 1; min-width: 0;
  padding: .85rem .95rem .85rem 2rem;
  border: 1.5px solid #e2e5ea; border-radius: 12px;
  font-family: inherit; font-size: 16px; color: #14181f; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.igv-form__input:focus { outline: none; border-color: #e61c72; box-shadow: 0 0 0 3px rgba(230, 28, 114, .12); }
.igv-form__btn {
  width: 100%; padding: .85rem 1.15rem; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%); color: #fff;
  font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(230, 28, 114, .75);
}
.igv-form__btn:hover { transform: translateY(-1px); }
.igv-form__help { margin: 10px 0 0; font-size: .78rem; line-height: 1.5; color: #6b7280; }
.igv-form__example {
  padding: 2px 8px; border: 1px solid #e8eaed; border-radius: 999px;
  background: #f8f9fb; color: #4b5563; font: inherit; font-size: .76rem; cursor: pointer;
}
.igv-form__example:hover { border-color: #e61c72; color: #a91258; }

/* — Aviso de error — */
.igv-alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 13px 15px;
  border: 1.5px solid #fde68a; border-radius: 14px; background: #fffbeb;
  color: #92400e; font-size: .9rem; font-weight: 600; line-height: 1.45;
}
.igv-alert svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }

/* — Ficha del perfil — */
.igv-card { margin-top: 18px; padding: 20px 16px; border: 1px solid #e8eaed; border-radius: 18px; background: #fff; }
.igv-card__head { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.igv-card__avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: #f3f4f6; border: 1px solid #e8eaed; }
.igv-card__avatar--empty { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #9ca3af; }
.igv-card__id { min-width: 0; }
.igv-card__user { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: #14181f; word-break: break-word; }
.igv-card__verified { display: inline-flex; width: 16px; height: 16px; color: #3897f0; }
.igv-card__name { margin: 2px 0 0; font-size: .92rem; color: #4b5563; }
.igv-card__cat { margin: 2px 0 0; font-size: .8rem; color: #9ca3af; }
.igv-card__state {
  grid-column: 1 / -1; justify-self: start;
  padding: 4px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.igv-card__state--public { background: #ecfdf5; color: #065f46; }
.igv-card__state--private { background: #fef2f2; color: #b91c1c; }
.igv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #eceef1; }
.igv-stats div { text-align: center; }
.igv-stats dt { overflow-wrap: anywhere; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; }
.igv-stats dd {
  margin: 4px 0 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; color: #14181f; font-feature-settings: "tnum";
}
.igv-card__bio { overflow-wrap: anywhere; margin: 14px 0 0; font-size: .92rem; line-height: 1.55; color: #4b5563; white-space: pre-line; }
.igv-card__link { margin: 8px 0 0; font-size: .88rem; }
.igv-card__link a { color: #e61c72; font-weight: 600; text-decoration: none; }
.igv-card__link a:hover { text-decoration: underline; }

.igv-private { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #f8f9fb; border: 1px solid #e8eaed; }
.igv-private strong { display: block; margin-bottom: 4px; color: #14181f; font-size: .95rem; }
.igv-private p { margin: 0; font-size: .88rem; line-height: 1.55; color: #6b7280; }

/* — Publicaciones — */
.igv-posts__title { margin: 20px 0 12px; font-size: 1rem; font-weight: 700; color: #14181f; }
.igv-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.igv-post { position: relative; }
.igv-post a { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #f3f4f6; }
.igv-post img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igv-post__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f3f4f6, #e8eaed); }
.igv-post__video { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.igv-post__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 14px 8px 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  color: #fff; font-size: .68rem; font-weight: 600;
}
.igv-posts__note { margin: 10px 0 0; font-size: .78rem; color: #9ca3af; }

/* — Llamada a la acción — */
.igv-cta {
  display: grid; gap: 14px; margin-top: 18px; padding: 20px 18px;
  border-radius: 18px; background: #101114; color: #fff;
}
.igv-cta__kicker { margin: 0 0 6px; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.igv-cta__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.igv-cta__text { margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.igv-cta__text a { color: #ff4d94; font-weight: 600; text-decoration: none; }
.igv-cta__text a:hover { text-decoration: underline; }
.igv-cta__btn {
  justify-self: start; padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%); color: #fff !important;
  font-size: .9rem; font-weight: 700; text-decoration: none !important;
}

/* — Contenido — */
.igv-content { margin-top: 34px; }
.igv-content h2 {
  margin: 28px 0 10px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.32rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: #14181f;
}
.igv-content h3 { margin: 20px 0 6px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; color: #14181f; }
.igv-content p { margin: 0 0 13px; font-size: .98rem; line-height: 1.7; color: #4b5563; }
.igv-content strong { color: #14181f; }
.igv-content blockquote {
  margin: 18px 0; padding: 14px 16px;
  border-left: 3px solid #e61c72; border-radius: 0 12px 12px 0;
  background: #fdecf4; font-size: .94rem; line-height: 1.6; color: #4b5563;
}
.igv-content blockquote strong { color: #a91258; }
.igv-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.igv-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .88rem; }
.igv-table th, .igv-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eceef1; vertical-align: top; }
.igv-table th { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; background: #f8f9fb; }
.igv-table td:first-child { color: #14181f; font-weight: 500; }
.igv-list, .igv-ol { margin: 0 0 14px; padding: 0 0 0 0; list-style: none; }
.igv-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; font-size: .95rem; line-height: 1.6; color: #4b5563; }
.igv-list__check { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #10b981; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.igv-list__check svg { width: 11px; height: 11px; }
.igv-ol { padding-left: 20px; list-style: decimal; }
.igv-ol li { margin-bottom: 10px; font-size: .95rem; line-height: 1.65; color: #4b5563; }

.igv-related { margin-top: 30px; padding-top: 18px; border-top: 1px solid #eceef1; }
.igv-related__label { display: block; margin-bottom: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9ca3af; }
.igv-related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.igv-related a {
  display: inline-block; padding: 7px 13px; border: 1px solid #e8eaed; border-radius: 999px;
  font-size: .82rem; color: #4b5563; text-decoration: none;
}
.igv-related a:hover { border-color: #e61c72; background: #fdecf4; color: #a91258; }

@media (min-width: 480px) {
  .igv-form__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .igv-form__btn { width: auto; }
}
@media (min-width: 640px) {
  .igv__inner { padding: 0 24px; }
  .igv { padding: 34px 0 64px; }
  .igv-form { padding: 22px 22px 20px; }
  .igv-card { padding: 26px 24px; }
  .igv-card__head { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .igv-card__avatar { width: 88px; height: 88px; }
  .igv-card__state { grid-column: auto; justify-self: end; }
  .igv-card__user { font-size: 1.3rem; }
  .igv-stats dd { font-size: 1.4rem; }
  .igv-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .igv-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 24px; }
  .igv-content h2 { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .igv-form__btn:hover { transform: none; }
}
