/* Un martes a las 10 am — v1 */

:root {
  --negro: #1d1d1b;
  --crema: #f0ebe4;
  --gris: #848585;
  --lavanda: #d3d5e1;

  --fuente-texto: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fuente-logo: "Gantari", sans-serif;

  --margen: clamp(1.25rem, 5vw, 6rem);

  /* Escala 1.25 desde 1.0625rem */
  --t-0: 1.0625rem;
  --t-1: 1.328rem;
  --t-2: 1.66rem;
  --t-3: 2.076rem;
  --t-4: 2.594rem;
  --t-5: 3.24rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* El lienzo se ve al rebasar el scroll: arriba debe ser crema (hero) y abajo
     negro (footer). Mitad superior del viewport crema, el resto negro. */
  background-color: var(--negro);
  background-image: linear-gradient(var(--crema), var(--crema));
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 50%;
  background-position: top;
}

body {
  position: relative;
  background: var(--crema);
  color: var(--negro);
  font-family: var(--fuente-texto);
  font-size: var(--t-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Cubre el overscroll superior con crema (queda por encima del lienzo negro). */
body::before {
  content: "";
  position: absolute;
  top: -100vh;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--crema);
}

:focus-visible {
  outline: 1px solid var(--negro);
  outline-offset: 3px;
}

/* ————— Hero ————— */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.reloj {
  position: absolute;
  height: 95vh;
  width: 92.5vh;
  left: calc(75vw - 46.25vh);
  top: 2.5vh;
  transform-origin: 50% 50%;
  animation: asentar 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reloj-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reloj-svg .numeral {
  font-family: var(--fuente-logo);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: 60.91px;
  fill: var(--gris);
}

.isotipo-10am path,
.isotipo-10am .isotipo-am {
  fill: var(--negro);
}

.isotipo-10am .isotipo-am {
  font-family: var(--fuente-logo);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: 13.26px;
}

.isotipo-foco {
  fill: transparent;
}

.isotipo-enlace {
  cursor: pointer;
  outline: none;
}

.isotipo-enlace:focus-visible .isotipo-foco {
  stroke: var(--negro);
  stroke-width: 1.5;
}

/* Numerales: fade escalonado en orden de reloj desde el 12 */
.reloj-svg [data-hour] {
  animation: aparecer 0.3s linear both;
}

[data-hour="12"] { animation-delay: 0ms; }
[data-hour="1"]  { animation-delay: 40ms; }
[data-hour="2"]  { animation-delay: 80ms; }
[data-hour="3"]  { animation-delay: 120ms; }
[data-hour="4"]  { animation-delay: 160ms; }
[data-hour="5"]  { animation-delay: 200ms; }
[data-hour="6"]  { animation-delay: 240ms; }
[data-hour="7"]  { animation-delay: 280ms; }
[data-hour="8"]  { animation-delay: 320ms; }
[data-hour="9"]  { animation-delay: 360ms; }
[data-hour="10"] { animation-delay: 400ms; }
[data-hour="11"] { animation-delay: 440ms; }

.hero-texto {
  position: absolute;
  left: var(--margen);
  top: 50%;
  transform: translateY(-50%);
  max-width: 46vw;
  animation: aparecer 0.6s linear 0.9s both;
}

.frase {
  font-size: clamp(2.25rem, 4.7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@keyframes asentar {
  from { transform: rotate(10deg) scale(1.04); }
  to   { transform: none; }
}

@keyframes aparecer {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ————— Proyectos ————— */

.proyectos {
  padding: 30vh var(--margen) 0;
}

.proyectos-titulo {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

.proyecto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.proyectos .proyecto:first-of-type {
  padding-top: 0;
}

.proyectos .proyecto:last-of-type {
  padding-bottom: 0;
}

.filete {
  height: 1px;
  background: var(--lavanda);
}

.proyecto-logo {
  display: block;
  width: max-content;
  text-decoration: none;
  margin: -8px;
  padding: 8px;
}

.proyecto-logo img {
  display: block;
  width: auto;
}

.logo-silia {
  height: 38px;
}

.logo-kuvra {
  height: 36px;
}

.proyecto > p {
  max-width: 60ch;
}

p.proyecto-nombre-texto {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

/* ————— Podcast ————— */

.podcast {
  padding: 30vh var(--margen) 0;
}

.podcast-titulo {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  max-width: 18ch;
}

.boton-spotify {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--negro);
  color: var(--crema);
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-size: var(--t-0);
  line-height: 1.2;
}

.boton-spotify:hover {
  color: var(--lavanda);
}

.boton-spotify svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ————— Footer ————— */

.pie {
  margin-top: 30vh;
  background: var(--negro);
  color: var(--crema);
  padding: 4rem var(--margen) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pie-logo {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  overflow: visible;
  margin: 6px 0;
}

.pie-am {
  font-family: var(--fuente-logo);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: 19.9px;
}

.pie-wordmark {
  font-family: var(--fuente-logo);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: 92.49px;
}

.pie-bajo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 3rem;
}

.pie-redes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.pie-redes a {
  display: block;
  color: var(--crema);
  text-decoration: none;
}

.pie-redes svg {
  display: block;
  width: 22px;
  height: 22px;
}

.pie-redes a:hover {
  color: var(--lavanda);
}

.pie-redes a:focus-visible {
  outline: 1px solid var(--crema);
  outline-offset: 3px;
}

.pie-copyright {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}

/* ————— Móvil ————— */

@media (max-width: 768px) {
  .reloj {
    height: 54vh;
    width: 52.58vh;
    left: calc(58vw - 26.29vh);
    top: 4vh;
    height: 54svh;
    width: 52.58svh;
    left: calc(58vw - 26.29svh);
    top: 4svh;
  }

  .hero-texto {
    top: 67vh;
    top: 67svh;
    transform: none;
    max-width: none;
    right: var(--margen);
  }

  .frase {
    font-size: 2.25rem;
  }

  .hora-linea {
    margin-top: 1.25rem;
  }

  .pie {
    padding: 3rem var(--margen) 2rem;
  }
}

/* ————— Motion reducido ————— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reloj,
  .reloj-svg [data-hour],
  .hero-texto {
    animation: none;
  }
}
