/* ==========================================================================
   horoscopo.com.ar — base
   Ilustración vectorial plana. Sin gradientes, sin desenfoques, sin 3D.
   Las únicas sombras son offsets duros: la sombra proyectada de una figura
   recortada, no una sombra de interfaz.
   ========================================================================== */

:root {
  /* Paleta ------------------------------------------------------------- */
  --arena:  #E9E0CE;  /* fondo base */
  --crema:  #F5EFE1;  /* superficie */
  --lila:   #A18BD1;  /* masa ilustrada, bloques */
  --uva:    #5B3F8C;  /* acción, links, títulos de acento */
  --tinta:  #241C33;  /* texto y contorno */
  --limon:  #C7D14A;  /* acento focal — sólo sobre tinta o uva */

  --linea:  #241C33;
  --tenue:  rgba(36, 28, 51, 0.62);   /* texto secundario: 6.9:1 sobre arena */
  --hairline: rgba(36, 28, 51, 0.18);

  /* Tipografía --------------------------------------------------------- */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --texto:   'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Ritmo -------------------------------------------------------------- */
  --ancho: 1180px;
  --medida: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --trazo: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--arena);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

/* Tipografía ---------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

h1, h2 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.25rem, 6.2vw, 4rem); font-optical-sizing: none; font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }

h3 {
  font-family: var(--texto);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--uva); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

strong, b { font-weight: 700; }

/* Meta: minúscula, espaciado normal. Nunca versalitas ni mayúsculas. */
.meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tenue);
  line-height: 1.4;
}

.medida { max-width: var(--medida); }

/* Estructura ----------------------------------------------------------- */

.envoltorio {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.banda { padding-block: clamp(3rem, 7vw, 5.5rem); }
.banda--lila  { background: var(--lila); }
.banda--tinta { background: var(--tinta); color: var(--crema); }
.banda--tinta h1, .banda--tinta h2, .banda--tinta h3 { color: var(--crema); }
.banda--tinta .meta { color: rgba(245, 239, 225, 0.72); }
.banda--tinta a:not(.boton) { color: var(--limon); }
.banda--tinta .boton--limon { color: var(--tinta); }

/* Foco ----------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--uva);
  outline-offset: 3px;
}
.banda--tinta :focus-visible,
.pie :focus-visible { outline-color: var(--limon); }

.saltar {
  position: absolute;
  left: var(--gutter); top: 0;
  transform: translateY(-120%);
  z-index: 100;
  background: var(--tinta); color: var(--crema);
  padding: 0.7rem 1.1rem;
  font-weight: 600; text-decoration: none;
}
.saltar:focus { transform: translateY(0); }

/* Ilustración de signo -------------------------------------------------- */

.zi {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1;
  --zi-line: var(--tinta);
  --zi-fill: transparent;
  --zi-acc: var(--tinta);
}
.zi--solida { --zi-fill: var(--lila); --zi-acc: var(--limon); }
.zi--clara  { --zi-line: var(--crema); --zi-acc: var(--limon); }

/* El fondo tinta se ve a través del gap: las líneas son el fondo, no bordes. */
.rueda {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--trazo);
  background: var(--tinta);
  border: var(--trazo) solid var(--tinta);
}

.signo-celda {
  background: var(--crema);
  color: var(--tinta);
  text-decoration: none;
  padding: 1.25rem 0.75rem 1rem;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  transition: translate 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.signo-celda .zi { width: clamp(52px, 8vw, 68px); }

.signo-celda__nombre { font-weight: 600; font-size: 0.9375rem; line-height: 1; }
.signo-celda__fechas { font-size: 0.75rem; color: var(--tenue); line-height: 1; }

/* El único movimiento del sitio: la ilustración pasa de contorno a masa
   y la celda se despega dejando ver su propia sombra recortada. */
.signo-celda:hover,
.signo-celda:focus-visible {
  translate: -3px -3px;
  box-shadow: 3px 3px 0 var(--uva);
  position: relative;
  z-index: 1;
  outline-offset: 0;
}
.signo-celda:hover .zi,
.signo-celda:focus-visible .zi {
  --zi-fill: var(--lila);
  --zi-acc: var(--limon);
}

/* Lista de notas ------------------------------------------------------- */

.notas__lista { border-top: var(--trazo) solid var(--tinta); }

.nota {
  display: grid;
  grid-template-columns: 5.5rem 6rem minmax(0, 1fr);
  gap: 0 1.5rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--tinta);
}
.nota:hover { background: var(--crema); }
.nota:hover .nota__titulo { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }

.nota__fecha { font-size: 0.8125rem; color: var(--tenue); white-space: nowrap; }
.nota__tipo  { font-size: 0.8125rem; font-weight: 600; color: var(--uva); }
.nota__titulo { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }

@media (max-width: 680px) {
  .nota { grid-template-columns: auto auto; gap: 0.25rem 1rem; }
  .nota__titulo { grid-column: 1 / -1; }
}

/* Botones -------------------------------------------------------------- */

.boton {
  display: inline-block;
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border: var(--trazo) solid var(--tinta);
  background: var(--uva);
  color: var(--crema);
  text-decoration: none;
  cursor: pointer;
  transition: translate 120ms ease, box-shadow 120ms ease;
}
.boton:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--tinta); }
.boton:active { translate: 0 0; box-shadow: none; }

.boton--limon { background: var(--limon); color: var(--tinta); }
.boton--hueco { background: transparent; color: var(--tinta); }
.banda--tinta .boton--hueco { border-color: var(--crema); color: var(--crema); }

/* Cabecera ------------------------------------------------------------- */

.cabecera {
  background: var(--crema);
  border-bottom: var(--trazo) solid var(--tinta);
  position: sticky; top: 0; z-index: 50;
}
.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.marca {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  color: var(--tinta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.marca__disco { width: 22px; height: 22px; flex: none; display: block; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-block: 0.5rem;
  border-bottom: var(--trazo) solid transparent;
}
.nav a:hover { border-bottom-color: var(--uva); }
.nav a[aria-current="page"] { border-bottom-color: var(--tinta); font-weight: 600; }

.nav__cta {
  border: var(--trazo) solid var(--tinta) !important;
  background: var(--limon);
  padding: 0.6rem 1.1rem !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--lila); }

.menu-boton {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: var(--trazo) solid var(--tinta);
  cursor: pointer;
  color: var(--tinta);
}
.menu-boton span,
.menu-boton span::before,
.menu-boton span::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  margin-inline: auto;
  content: '';
}
.menu-boton span::before { transform: translateY(-6px); }
.menu-boton span::after  { transform: translateY(4px); }
.menu-boton[aria-expanded="true"] span { background: transparent; }
.menu-boton[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] span::after  { transform: translateY(-2px) rotate(-45deg); }

@media (max-width: 800px) {
  .menu-boton { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--crema);
    border-bottom: var(--trazo) solid var(--tinta);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.abierto { display: flex; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--hairline); }
  .nav__cta { margin-top: 0.9rem; text-align: center; }
}

/* Pie ------------------------------------------------------------------ */

.pie {
  background: var(--tinta);
  color: var(--crema);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.pie__fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: start;
}
.pie .marca { color: var(--crema); }
.pie__bajada { color: rgba(245, 239, 225, 0.72); font-size: 0.95rem; max-width: 34ch; margin: 0.8rem 0 0; }
.pie__enlaces { display: grid; gap: 0.6rem; }
.pie__enlaces a { color: var(--crema); font-size: 0.9rem; text-decoration: none; }
.pie__enlaces a:hover { text-decoration: underline; }
.pie__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 239, 225, 0.2);
  font-size: 0.8125rem;
  color: rgba(245, 239, 225, 0.6);
}
@media (max-width: 640px) {
  .pie__fila { grid-template-columns: 1fr; }
}

/* Movimiento ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
