/* Tu Ángel de la Guarda V2 — portal celeste, sello y lectura editorial. */
.ang {
  --ang-gold: #e7c87e;
  --ang-gold-deep: #b9893f;
  --ang-ink: #090d1b;
  --ang-night: #10162a;
  --ang-ivory: #f8f1df;
  width: min(100%, 1040px);
  margin: 0 auto;
  color: var(--ang-ivory);
  font-size: 1rem;
}
.ang * { box-sizing: border-box; }
.ang [hidden] { display: none !important; }
.ang button, .ang select { font: inherit; }

.ang .ang-f1,
.ang .ang-f2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(231, 200, 126, .28);
  border-radius: clamp(18px, 3vw, 28px);
  background-color: var(--ang-ink);
  box-shadow: 0 28px 70px rgba(4, 5, 15, .35), inset 0 1px rgba(255, 255, 255, .07);
}

/* ── Consulta ────────────────────────────────────────────────────── */
.ang .ang-f1 {
  display: flex;
  min-height: clamp(500px, 60vw, 610px);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.8rem);
  background-image: var(--ang-hero);
  background-size: cover;
  background-position: center center;
}
.ang .ang-f1::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgba(5, 8, 19, .97) 0%, rgba(7, 10, 22, .91) 35%, rgba(7, 10, 22, .48) 59%, rgba(7, 10, 22, .04) 82%),
    linear-gradient(0deg, rgba(5, 8, 19, .42), transparent 45%);
}
.ang .ang-f1::after {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 5%;
  width: 32rem;
  height: 32rem;
  max-width: 65vw;
  content: '';
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 61, 152, .15), transparent 68%);
  pointer-events: none;
}
.ang .ang-consulta { width: min(100%, 34rem); }
.ang .ang-kicker {
  margin: 0 0 .7rem;
  color: var(--ang-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ang .ang-title {
  margin: 0;
  color: #fffaf0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.01;
  text-wrap: balance;
}
.ang .ang-intro {
  max-width: 31rem;
  margin: 1.15rem 0 1.55rem;
  color: rgba(248, 241, 223, .84);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.65;
}
.ang .ang-form {
  width: min(100%, 31rem);
  padding: 1rem;
  border: 1px solid rgba(231, 200, 126, .22);
  border-radius: 18px;
  background: rgba(11, 14, 28, .76);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}
.ang .ang-fecha { display: grid; grid-template-columns: .8fr 1.4fr; gap: .7rem; }
.ang .ang-campo { display: flex; flex-direction: column; gap: .38rem; text-align: left; }
.ang .ang-campo span {
  color: rgba(248, 241, 223, .68);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ang .ang-campo select {
  width: 100%;
  min-height: 3rem;
  padding: .65rem 2.25rem .65rem .8rem;
  border: 1px solid rgba(231, 200, 126, .42);
  border-radius: 11px;
  color: #fffaf0;
  color-scheme: dark;
  background-color: #14192c;
  cursor: pointer;
}
.ang .ang-campo select option { color: #fffaf0; background: #14192c; }
.ang .ang-campo select option:checked { color: #24180a; background: #e7c87e; }
.ang .ang-date-hint {
  margin: .65rem 0 .9rem;
  color: rgba(248, 241, 223, .57);
  font-size: .78rem;
  line-height: 1.4;
}
.ang .ang-btn {
  min-height: 3rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #211708;
  background: linear-gradient(145deg, #f4dfa5, #d2aa5d 54%, #b98234);
  box-shadow: 0 9px 24px rgba(185, 137, 63, .27), inset 0 1px rgba(255, 255, 255, .55);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ang .ang-revelar { width: 100%; }
.ang .ang-btn:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(185, 137, 63, .4); }
.ang .ang-btn:focus-visible,
.ang .ang-campo select:focus-visible { outline: 3px solid #fff2bf; outline-offset: 3px; }

/* ── Revelación ──────────────────────────────────────────────────── */
.ang .ang-f2 {
  display: grid;
  grid-template-columns: minmax(19rem, .82fr) minmax(0, 1.18fr);
  min-height: 590px;
  background:
    radial-gradient(circle at 65% -15%, rgba(132, 91, 190, .17), transparent 44%),
    linear-gradient(145deg, #10162a, #080c18 72%);
}
.ang .ang-f2:focus { outline: none; }
.ang .ang-visual {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background-image: var(--ang-hero);
  background-size: cover;
  background-position: 75% center;
}
.ang .ang-visual::before {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgba(5, 8, 18, .18), rgba(5, 8, 18, .57)),
    linear-gradient(0deg, rgba(5, 8, 18, .78), rgba(5, 8, 18, .12) 55%, rgba(5, 8, 18, .28));
}
.ang .ang-halo {
  position: absolute;
  z-index: 1;
  width: min(82%, 21rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 227, 155, .34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 16, 29, .9) 0 38%, rgba(82, 57, 118, .57) 60%, rgba(231, 200, 126, .08) 72%, transparent 73%);
  box-shadow: 0 0 70px rgba(231, 200, 126, .18), inset 0 0 46px rgba(231, 200, 126, .11);
}
.ang .ang-halo::before,
.ang .ang-halo::after {
  position: absolute;
  inset: 6%;
  content: '';
  border: 1px solid rgba(231, 200, 126, .23);
  border-radius: inherit;
}
.ang .ang-halo::after { inset: 13%; border-style: dotted; }
.ang .ang-sello {
  position: relative;
  z-index: 2;
  width: min(76%, 19rem);
  filter: drop-shadow(0 0 25px rgba(231, 200, 126, .35));
}
.ang .ang-sello img { display: block; width: 100%; height: auto; }
.ang .ang-resultado {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.ang .ang-rotulo {
  margin: 0 0 .75rem;
  color: rgba(248, 241, 223, .58);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.5;
  text-transform: uppercase;
}
.ang .ang-nombre {
  margin: 0;
  color: #fff4d6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}
.ang .ang-atributo {
  margin: .6rem 0 1rem;
  color: var(--ang-gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-style: italic;
}
.ang .ang-regencia { margin: 0 0 1.35rem; color: rgba(248, 241, 223, .7); font-size: .9rem; }
.ang .ang-reg-fechas { color: #f0d593; }
.ang .ang-lectura {
  max-width: 38rem;
  color: rgba(248, 241, 223, .91);
  font-size: 1.02rem;
  line-height: 1.7;
}
.ang .ang-consejo {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(231, 200, 126, .16);
  border-left: 3px solid var(--ang-gold-deep);
  border-radius: 0 12px 12px 0;
  color: rgba(248, 241, 223, .82);
  background: rgba(231, 200, 126, .07);
  font-size: .92rem;
  line-height: 1.55;
}
.ang .ang-consejo b { color: var(--ang-gold); }
.ang .ang-acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.45rem; }
.ang .ang-btn-sec {
  color: rgba(248, 241, 223, .85);
  border-color: rgba(231, 200, 126, .28);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}
.ang .ang-btn-sec:hover { border-color: rgba(231, 200, 126, .58); box-shadow: none; }
.ang .ang-share-status { min-height: 1.3em; margin: .65rem 0 0; color: #d9c48e; font-size: .82rem; }

.ang .ang-entra .ang-halo { animation: ang-halo 1.15s cubic-bezier(.2, .7, .2, 1) both; }
.ang .ang-entra .ang-sello { animation: ang-sello .8s .18s ease both; }
.ang .ang-entra .ang-resultado > * { animation: ang-brota .55s ease both; }
.ang .ang-entra .ang-resultado > *:nth-child(2) { animation-delay: .06s; }
.ang .ang-entra .ang-resultado > *:nth-child(3) { animation-delay: .12s; }
.ang .ang-entra .ang-resultado > *:nth-child(4) { animation-delay: .18s; }
.ang .ang-entra .ang-resultado > *:nth-child(5) { animation-delay: .24s; }
.ang .ang-entra .ang-resultado > *:nth-child(6) { animation-delay: .3s; }
.ang .ang-entra .ang-resultado > *:nth-child(7) { animation-delay: .36s; }
@keyframes ang-halo { from { opacity: 0; transform: scale(.75) rotate(-9deg); } to { opacity: 1; transform: none; } }
@keyframes ang-sello { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ang-brota { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .ang .ang-f1 { min-height: 600px; align-items: flex-end; padding: 1.1rem; background-position: 68% center; }
  .ang .ang-f1::before {
    background: linear-gradient(0deg, rgba(5, 8, 19, .98) 0%, rgba(5, 8, 19, .88) 47%, rgba(5, 8, 19, .16) 78%);
  }
  .ang .ang-consulta { width: 100%; }
  .ang .ang-title { max-width: 22rem; font-size: clamp(2.05rem, 10vw, 3.2rem); }
  .ang .ang-intro { margin: .8rem 0 1rem; font-size: .95rem; line-height: 1.5; }
  .ang .ang-form { width: 100%; padding: .85rem; }
  .ang .ang-f2 { grid-template-columns: 1fr; }
  .ang .ang-visual { min-height: 370px; background-position: 73% 40%; }
  .ang .ang-resultado { padding: 1.7rem 1.2rem 2rem; }
  .ang .ang-nombre { font-size: clamp(2.4rem, 14vw, 3.7rem); }
}

@media (max-width: 410px) {
  .ang .ang-fecha { grid-template-columns: .75fr 1.25fr; gap: .55rem; }
  .ang .ang-campo select { padding-left: .65rem; }
  .ang .ang-visual { min-height: 320px; }
  .ang .ang-acciones .ang-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ang .ang-entra .ang-halo,
  .ang .ang-entra .ang-sello,
  .ang .ang-entra .ang-resultado > * { animation: none; }
  .ang .ang-btn { transition: none; }
}

@media (forced-colors: active) {
  .ang .ang-f1, .ang .ang-f2, .ang .ang-form, .ang .ang-consejo { border: 1px solid CanvasText; }
  .ang .ang-btn { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
}
