/* ÁLZARA — analizador de GEO: hoja propia de la landing (no carga el resto de la web) */

.an-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1.1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-12);
}
.an-top a { text-decoration: none; color: inherit; }
.an-top__vuelta { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-60); }
.an-top__vuelta:hover { color: var(--cream); }

.an-wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem); }
.an-hero { padding: clamp(2.6rem, 7vw, 4.6rem) 0 1.6rem; text-align: center; }
.an-hero h1 {
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(1.75rem, 5vw, 3.1rem); margin-bottom: 1rem;
}
.an-hero h1 em { font-style: normal; color: var(--acento); }
.an-hero__lead { color: var(--cream-60); font-size: clamp(.98rem, 1.5vw, 1.12rem); max-width: 60ch; margin: 0 auto 1.8rem; line-height: 1.6; }

/* ── el formulario ── */
.an-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; max-width: 620px; margin: 0 auto; }
.an-form__campo { position: relative; flex: 1 1 320px; }
.an-form input[type="url"], .an-form input[type="text"] {
  width: 100%; padding: 1.05rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--cream-12); background: var(--bg-2, var(--bg));
  color: var(--cream); font: inherit; font-size: .95rem;
}
.an-form input::placeholder { color: var(--cream-30); }
.an-form input:focus { outline: 2px solid var(--acento); outline-offset: 2px; border-color: transparent; }
.an-btn {
  padding: 1.05rem 1.7rem; border-radius: 999px; border: 1px solid var(--cream);
  background: var(--cream); color: var(--bg); cursor: pointer;
  font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .2s, transform .2s;
}
.an-btn:hover { opacity: .85; }
.an-btn[disabled] { opacity: .45; cursor: progress; }
.an-form__nota { width: 100%; text-align: center; font-size: .74rem; color: var(--cream-30); margin-top: .9rem; }

/* trampa anti-bots */
.an-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── estados ── */
.an-estado { text-align: center; padding: 2.4rem 0; color: var(--cream-60); }
.an-estado__barra { width: 100%; max-width: 380px; height: 2px; margin: 1.2rem auto 0; background: var(--cream-12); overflow: hidden; border-radius: 2px; }
.an-estado__barra i { display: block; height: 100%; width: 40%; background: var(--acento); animation: an-corre 1.1s ease-in-out infinite; }
@keyframes an-corre { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.an-error {
  border: 1px solid color-mix(in srgb, #c0392b 40%, var(--cream-12));
  border-radius: 14px; padding: 1.4rem 1.5rem; margin: 1.6rem 0;
  background: color-mix(in srgb, #c0392b 7%, transparent);
}
.an-error h3 { font-weight: 700; margin-bottom: .5rem; }
.an-error p { color: var(--cream-60); font-size: .92rem; line-height: 1.6; }
.an-error p + p { margin-top: .7rem; }

/* ── resultado ── */
.an-res { margin: 2rem 0 3rem; }
.an-nota {
  display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.2rem); flex-wrap: wrap;
  padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--cream-12); border-radius: 18px;
  background: var(--bg-2, transparent);
}
.an-aguja {
  --p: 0;
  position: relative; flex: 0 0 auto; width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--acento) calc(var(--p) * 1%), var(--cream-12) 0);
  display: grid; place-items: center;
}
.an-aguja::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg);
}
.an-aguja > * { position: relative; z-index: 1; text-align: center; }
.an-aguja b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.an-aguja span { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-30); }
.an-nota__txt { flex: 1 1 260px; }
.an-nota__txt h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.an-nota__txt p { color: var(--cream-60); line-height: 1.6; font-size: .95rem; }
.an-nota__url { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-30); margin-bottom: .6rem; word-break: break-all; }

.an-medidas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.an-medidas li {
  list-style: none; font-size: .7rem; letter-spacing: .06em; color: var(--cream-60);
  border: 1px solid var(--cream-12); border-radius: 999px; padding: .35rem .8rem;
}

/* arreglos primero: es lo accionable */
.an-plan { margin-top: 2rem; }
.an-plan h3, .an-detalle h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.01em; }
.an-plan__sub, .an-detalle__sub { color: var(--cream-30); font-size: .8rem; margin-bottom: 1.1rem; }
.an-plan ol { list-style: none; counter-reset: paso; }
.an-plan li {
  counter-increment: paso; position: relative;
  padding: .9rem 0 .9rem 2.6rem; border-top: 1px solid var(--cream-12);
}
.an-plan li::before {
  content: counter(paso); position: absolute; left: 0; top: .95rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: var(--bg); background: var(--acento);
}
.an-plan li.es-aviso::before { background: var(--cream-30); }
.an-plan b { display: block; font-weight: 600; margin-bottom: .2rem; }
.an-plan span { color: var(--cream-60); font-size: .9rem; line-height: 1.6; }

/* bloques */
.an-bloque { border: 1px solid var(--cream-12); border-radius: 14px; margin-bottom: .8rem; overflow: hidden; }
.an-bloque > summary {
  display: flex; align-items: center; gap: .9rem; cursor: pointer; list-style: none;
  padding: 1rem 1.2rem; font-weight: 600;
}
.an-bloque > summary::-webkit-details-marker { display: none; }
.an-bloque__nota { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--cream-60); }
.an-barra { width: 74px; height: 4px; border-radius: 4px; background: var(--cream-12); overflow: hidden; flex: 0 0 auto; }
.an-barra i { display: block; height: 100%; background: var(--acento); }
.an-bloque__lista { padding: 0 1.2rem 1.1rem; }
.an-item { display: flex; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--cream-12); }
.an-item__marca { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; border-radius: 50%; margin-top: .15rem; display: grid; place-items: center; font-size: .62rem; font-weight: 700; }
.es-ok    .an-item__marca { background: color-mix(in srgb, #2e7d32 22%, transparent); color: #2e7d32; }
.es-aviso .an-item__marca { background: color-mix(in srgb, #b8860b 22%, transparent); color: var(--acento); }
.es-fallo .an-item__marca { background: color-mix(in srgb, #c0392b 20%, transparent); color: #c0392b; }
.es-info  .an-item__marca { background: var(--cream-12); color: var(--cream-30); }
.an-item b { font-weight: 600; display: block; margin-bottom: .15rem; }
.an-item p { color: var(--cream-60); font-size: .88rem; line-height: 1.6; }
.an-item .an-arreglo { display: block; margin-top: .35rem; color: var(--cream-30); font-size: .85rem; }
.an-item .an-arreglo::before { content: "→ "; color: var(--acento); }

/* ── contenido de la página ── */
.an-sec { padding: 2.6rem 0; border-top: 1px solid var(--cream-12); }
.an-sec h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: .9rem; }
.an-sec h3 { font-size: 1.02rem; font-weight: 600; margin: 1.4rem 0 .4rem; }
.an-sec p { color: var(--cream-60); line-height: 1.7; margin-bottom: .9rem; font-size: .95rem; }
.an-sec strong { color: var(--cream); font-weight: 600; }
.an-lista { list-style: none; margin: .6rem 0 1.2rem; }
.an-lista li { color: var(--cream-60); padding: .35rem 0 .35rem 1.2rem; position: relative; font-size: .95rem; line-height: 1.6; }
.an-lista li::before { content: "·"; position: absolute; left: .3rem; color: var(--acento); font-weight: 700; }

.an-cuadros { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.an-cuadro { border: 1px solid var(--cream-12); border-radius: 14px; padding: 1.1rem 1.2rem; }
.an-cuadro b { display: block; font-weight: 600; margin-bottom: .35rem; }
.an-cuadro p { font-size: .88rem; margin: 0; }

.an-faq details { border-top: 1px solid var(--cream-12); }
.an-faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; position: relative; list-style: none; }
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); color: var(--acento); font-size: 1.1rem; }
.an-faq details[open] summary::after { content: "−"; }
.an-faq p { color: var(--cream-60); line-height: 1.7; padding-bottom: 1rem; font-size: .93rem; }

.an-cta { text-align: center; padding: 3rem 0; border-top: 1px solid var(--cream-12); }
.an-cta h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .7rem; }
.an-cta p { color: var(--cream-60); max-width: 52ch; margin: 0 auto 1.5rem; line-height: 1.6; }
.an-cta__botones { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.an-btn--linea { background: transparent; color: var(--cream); border-color: var(--cream-12); text-decoration: none; display: inline-block; }
a.an-btn { text-decoration: none; display: inline-block; }

.an-pie { padding: 2rem 0 3rem; border-top: 1px solid var(--cream-12); text-align: center; }
.an-pie nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; justify-content: center; margin-top: .8rem; }
.an-pie a { color: var(--cream-30); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.an-pie a:hover { color: var(--cream); }
.an-pie p { color: var(--cream-30); font-size: .75rem; }

@media (max-width: 560px) {
  .an-form { flex-direction: column; }
  /* en columna, el flex-basis de 320px pasa a ser ALTURA y abre un hueco enorme */
  .an-form__campo { flex: 0 0 auto; width: 100%; }
  .an-btn { width: 100%; }
  .an-aguja { width: 104px; height: 104px; }
  .an-aguja b { font-size: 1.7rem; }
}
