/* TOPE Web Audit — generado desde topedesde0/assets/css/styles.css */
.tope-audit .web-audit-form .field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.75rem; }
.tope-audit .web-audit-form .input { width: 100%; box-sizing: border-box; }
.tope-audit .web-audit-form .privacy-check { display: flex; gap: 0.5rem; align-items: flex-start; }
.tope-audit .web-audit-form .btn.primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ff8400; color: #fff; border: none; cursor: pointer; font-weight: 600;
}
.tope-audit .audit-upsell { margin-top: 2rem; padding: 1.25rem; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.tope-audit .audit-upsell__title { margin: 0 0 0.5rem; }
.tope-audit .form-status { color: #b45309; margin-top: 0.75rem; }
.tope-audit .tope-lead { font-size: 1.15rem; line-height: 1.55; }
.tope-audit .microcopy { font-size: 0.95rem; opacity: 0.92; margin: 0.35rem 0; }
/* Contenido del análisis un poco más grande (formulario + resultados) */
.tope-audit #contenido {
  font-size: 1.075rem;
}

.tope-audit #contenido .microcopy {
  font-size: 1.06rem;
}

.tope-audit main .section-head h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
}

.tope-audit main .section-head .lead {
  font-size: clamp(1.2rem, 2.15vw, 1.55rem);
  line-height: 1.55;
}

.tope-audit .web-audit-form .label {
  font-size: 1.28rem;
}

.tope-audit .web-audit-form input[type="text"],
.tope-audit .web-audit-form input[type="email"] {
  font-size: 1.62rem;
  padding: 14px 14px;
}

.tope-audit .web-audit-form .privacy-check span {
  font-size: 1.32rem;
}

.tope-audit .web-audit-form .btn.primary {
  font-size: 1.52rem;
  padding: 14px 20px;
}

.tope-audit .web-audit-form .form-status {
  font-size: 1.1rem;
}

.tope-audit #auditResultsWrap .section-head h2 {
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
}

.tope-audit #auditResultsWrap .audit-cta-actions .btn.outline {
  font-size: 1.48rem;
  padding: 13px 18px;
}

.audit-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.web-audit-form {
  max-width: 42rem;
  margin-top: 1.5rem;
}

/* Sin marco: anula el recuadro global de .form solo en el análisis web */
.tope-audit .form.web-audit-form {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0.95rem;
}

.tope-audit .web-audit-form .field {
  gap: 0.45rem;
}

.tope-audit .web-audit-form .label {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.tope-audit .web-audit-form input[type="text"],
.tope-audit .web-audit-form input[type="email"] {
  min-height: 3.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tope-audit .web-audit-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.tope-audit .web-audit-form input[type="text"]:focus,
.tope-audit .web-audit-form input[type="email"]:focus {
  border-color: rgba(0, 193, 181, 0.78);
  box-shadow:
    0 0 0 3px rgba(0, 193, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tope-audit .web-audit-form .privacy-check {
  margin-top: 0.15rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.tope-audit .web-audit-form .privacy-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--secundary-color);
}

.tope-audit .web-audit-form .btn.primary {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(255, 132, 0, 0.32);
}

.tope-audit .web-audit-form .btn.primary:hover {
  box-shadow: 0 14px 30px rgba(255, 132, 0, 0.42);
}

.audit-fineprint {
  font-size: 0.92rem;
  opacity: 0.9;
}

.audit-deep-scope {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.audit-summary-lead {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  font-size: 1.08rem;
  line-height: 1.58;
  color: inherit;
}

[data-theme="dark"] .audit-summary-lead {
  background: rgba(245, 158, 11, 0.14);
  border-left-color: #fbbf24;
}

/* Resultados del análisis: tarjetas claras dentro de .section (fondo negro del sitio). */
#auditResultsWrap .audit-scoreboard,
#auditResultsWrap .audit-section-wrap {
  color: #0f172a;
}

/* Resumen lead: superficie clara legible (el ámbar al 12 % sobre negro no da contraste con texto oscuro). */
#auditResultsWrap .audit-summary-lead {
  color: #422006;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-left: 4px solid #d97706;
}

#auditResultsWrap .audit-score-numeric,
#auditResultsWrap .audit-score-bar-label,
#auditResultsWrap .audit-section-summary {
  color: #0f172a;
}

#auditResultsWrap .audit-score-denom,
#auditResultsWrap .audit-score-tagline {
  color: #334155;
}

#auditResultsWrap .audit-item,
#auditResultsWrap .audit-item-implication {
  color: #1e293b;
}

#auditResultsWrap .audit-section-ring-label {
  color: #334155;
}

#auditResultsWrap .audit-score-grade-inline {
  color: #0f172a;
}

#auditResultsWrap #auditFinalUrl {
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] #auditResultsWrap .audit-scoreboard,
[data-theme="dark"] #auditResultsWrap .audit-section-wrap {
  color: #f1f5f9;
}

[data-theme="dark"] #auditResultsWrap .audit-summary-lead {
  color: #fffbeb;
  background: rgba(55, 40, 28, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 4px solid #fbbf24;
}

[data-theme="dark"] #auditResultsWrap .audit-score-numeric,
[data-theme="dark"] #auditResultsWrap .audit-score-bar-label,
[data-theme="dark"] #auditResultsWrap .audit-section-summary {
  color: #f8fafc;
}

[data-theme="dark"] #auditResultsWrap .audit-score-denom,
[data-theme="dark"] #auditResultsWrap .audit-score-tagline {
  color: #cbd5e1;
}

[data-theme="dark"] #auditResultsWrap .audit-item,
[data-theme="dark"] #auditResultsWrap .audit-item-implication {
  color: #e2e8f0;
}

[data-theme="dark"] #auditResultsWrap .audit-section-ring-label {
  color: #cbd5e1;
}

[data-theme="dark"] #auditResultsWrap .audit-score-grade-inline {
  color: #f8fafc;
}

.audit-scoreboard {
  margin: 0 0 1.65rem;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(248, 250, 252, 0.9));
}

[data-theme="dark"] .audit-scoreboard {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(28, 32, 38, 0.92), rgba(22, 26, 32, 0.88));
}

.audit-scoreboard-inner {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr);
}

/* Anillos arriba a todo el ancho; nota global y barras debajo (no columna izquierda) */
.audit-score-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.audit-section-rings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem 0.35rem;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

@media (max-width: 520px) {
  .audit-section-rings {
    gap: 0.5rem 0.25rem;
  }

  .audit-grade-ring--section {
    width: 3.1rem;
    height: 3.1rem;
    border-width: 2px;
  }

  .audit-section-rings .audit-grade-letter {
    font-size: 1rem;
  }

  .audit-section-ring-label {
    font-size: 0.65rem;
    line-height: 1.2;
    max-width: 100%;
  }
}

.audit-section-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.audit-grade-ring--section {
  width: 3.75rem;
  height: 3.75rem;
  border-width: 3px;
}

.audit-section-rings .audit-grade-letter {
  font-size: 1.18rem;
}

.audit-section-ring-label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
  max-width: 7.25rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.audit-score-grade-inline {
  margin-left: 0.45rem;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0.95;
}

.audit-grade-ring {
  flex-shrink: 0;
  width: 5.65rem;
  height: 5.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.6);
}

.audit-grade-ring--high {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.audit-grade-ring--mid {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.audit-grade-ring--low {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .audit-grade-ring {
  background: rgba(22, 26, 32, 0.6);
  border-color: rgba(148, 163, 184, 0.45);
}

.audit-grade-letter {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.audit-grade-ring--high .audit-grade-letter {
  color: #15803d;
}

.audit-grade-ring--mid .audit-grade-letter {
  color: #b45309;
}

.audit-grade-ring--low .audit-grade-letter {
  color: #b91c1c;
}

[data-theme="dark"] .audit-grade-ring--high .audit-grade-letter {
  color: #4ade80;
}

[data-theme="dark"] .audit-grade-ring--mid .audit-grade-letter {
  color: #fbbf24;
}

[data-theme="dark"] .audit-grade-ring--low .audit-grade-letter {
  color: #f87171;
}

.audit-score-hero-text {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.audit-score-numeric {
  margin: 0 0 0.4rem;
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.audit-score-denom {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 0.15rem;
}

.audit-score-tagline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.92;
}

.audit-score-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.audit-score-bar-row {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: min(32rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.audit-score-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.audit-score-bar-title {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-score-bar-grade {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0.85;
}

.audit-score-bar-track {
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

[data-theme="dark"] .audit-score-bar-track {
  background: rgba(255, 255, 255, 0.1);
}

.audit-score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.audit-score-bar-fill--high {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.audit-score-bar-fill--mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.audit-score-bar-fill--low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.audit-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-section-wrap {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

[data-theme="dark"] .audit-section-wrap {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(22, 26, 32, 0.55);
}

.audit-section-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  font-size: 1.14rem;
  font-weight: 700;
}

.audit-section-summary::-webkit-details-marker {
  display: none;
}

.audit-section-summary::marker {
  content: "";
}

.audit-section-summary-title {
  min-width: 0;
}

.audit-section-summary-badge {
  flex-shrink: 0;
  min-width: 1.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  background: rgba(245, 158, 11, 0.2);
  color: inherit;
}

[data-theme="dark"] .audit-section-summary-badge {
  background: rgba(251, 191, 36, 0.18);
}

.audit-section-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .audit-section-body {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.audit-section {
  padding: 1.35rem 1.45rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .audit-section {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(22, 26, 32, 0.55);
}

.audit-section-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.audit-item {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .audit-item {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.audit-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.audit-item-text {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.58;
}

.audit-item-implication {
  font-size: 1rem;
  line-height: 1.52;
  opacity: 0.92;
}

.audit-item-implication p {
  margin: 0;
}

.audit-item--ok .audit-item-text {
  border-left: 3px solid #22c55e;
  padding-left: 0.65rem;
}

.audit-item--warn .audit-item-text {
  border-left: 3px solid #f59e0b;
  padding-left: 0.65rem;
}

.audit-item--bad .audit-item-text {
  border-left: 3px solid #ef4444;
  padding-left: 0.65rem;
}

.audit-upsell {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 132, 0, 0.35);
  background: linear-gradient(155deg, rgba(255, 132, 0, 0.12) 0%, rgba(0, 193, 181, 0.08) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.audit-upsell__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
}

.audit-upsell__body {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.86);
  max-width: 52rem;
}

.audit-upsell__actions {
  margin: 0;
}

.audit-upsell__actions .btn.primary {
  font-size: 1.48rem;
  padding: 13px 20px;
}

[data-theme="dark"] .audit-upsell {
  border-color: rgba(255, 180, 100, 0.38);
  background: linear-gradient(155deg, rgba(255, 132, 0, 0.14) 0%, rgba(0, 193, 181, 0.1) 100%);
}

.audit-cta-block {
  margin-top: 2.15rem;
}

.audit-cache-note {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.audit-cta-lead {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.58;
  max-width: 42rem;
}

.audit-cta-actions {
  margin: 0;
}

.audit-screenshots-wrap {
  margin: 0 0 1.35rem;
}

.audit-screenshots-error {
  margin: 0 0 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 200, 160, 0.95);
}

.audit-screenshots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;
}

@media (min-width: 900px) {
  .audit-screenshots {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.42fr);
    align-items: start;
    gap: 1.25rem;
  }
}

.audit-screenshot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 100%;
}

.audit-screenshot-cap {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  width: 100%;
}

/* Misma anchura máxima que el mockup para centrar el título encima de la imagen */
.audit-screenshot--desktop .audit-screenshot-cap {
  max-width: 560px;
}

.audit-screenshot--mobile .audit-screenshot-cap {
  max-width: 180px;
}

.audit-screenshot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #141a22 0%, #090d13 100%);
  line-height: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.audit-screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  max-height: 380px;
}

.audit-screenshot-frame--laptop {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 14px 26px;
  border-radius: 16px;
  position: relative;
}

.audit-screenshot-frame--laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 78%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.audit-screenshot-frame--laptop img {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 280px;
}

.audit-screenshot--mobile {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.audit-screenshot-frame--phone {
  max-width: 180px;
  margin: 0 auto;
  padding: 12px 10px 16px;
  border-radius: 28px;
  position: relative;
}

.audit-screenshot-frame--phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.audit-screenshot-frame--phone img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 320px;
}

@media (max-width: 899px) {
  .audit-screenshot-frame--laptop {
    max-width: 440px;
  }
  .audit-screenshot--desktop .audit-screenshot-cap {
    max-width: 440px;
  }
  .audit-screenshot--mobile {
    max-width: 200px;
  }
  .audit-screenshot-frame--phone {
    max-width: 165px;
  }
  .audit-screenshot--mobile .audit-screenshot-cap {
    max-width: 165px;
  }
}

#auditFinalUrl {
  word-break: break-all;
  color: #334155;
}