/* Identidad de la máquina: mármol rosa, sakura, oro y pagoda. Sin dependencias externas. */
@font-face { font-family: 'Cormorant Garamond'; src: url('fuentes/cormorant-garamond-latin.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fuentes/cormorant-garamond-italic-latin.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fuentes/hanken-grotesk-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --marmol: #F7E4E5;
  --perla: #FFFAF8;
  --sakura: #E8A5B3;
  --oro: #C9A15A;
  --oro-texto: #8F6A2A;
  --pagoda: #A2434F;
  --tinta: #3D2528;
  --tinta-suave: #6F5155;
}

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

html { background: var(--marmol); }

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: var(--tinta);
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Capa de fondo: no depende del contenido ---- */
.fondo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--marmol) url('fondo/marmol.svg') center / cover no-repeat;
  pointer-events: none;
}

.fondo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Contenido ---- */
.tarjeta {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 7vw, 4.75rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  background: var(--perla);
  border: 1px solid var(--oro);
  border-radius: 3px;
  box-shadow: 0 30px 60px -32px rgba(150, 64, 66, .45);
  animation: aparecer 1s cubic-bezier(.16, 1, .3, 1) both;
}

/* Marco dorado interior, como el cartel de la máquina */
.tarjeta::before {
  content: '';
  position: absolute;
  inset: .6rem;
  border: 1px solid rgba(201, 161, 90, .45);
  border-radius: 2px;
  pointer-events: none;
}

.marca {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--pagoda);
}

.submarca {
  margin-top: .55rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--oro-texto);
}

.filete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  margin: 2rem 0;
  background: linear-gradient(var(--oro), var(--oro)) center / 100% 1px no-repeat;
}

.filete span {
  width: .5rem;
  height: .5rem;
  background: var(--oro);
  box-shadow: 0 0 0 .3rem var(--perla);
  transform: rotate(45deg);
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.06;
}

.aviso {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta-suave);
}

.correo {
  position: relative;
  margin-top: 2rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--pagoda);
  border-radius: 2px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--pagoda);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .25s, color .25s;
}

.correo:hover { background: var(--pagoda); color: #fff; }
.correo:focus-visible { outline: 2px solid var(--oro-texto); outline-offset: 3px; }

/* Pétalos de cerezo (parte del fondo) */
.petalos span {
  position: absolute;
  top: -2rem;
  width: .8rem;
  height: 1rem;
  background: var(--sakura);
  border-radius: 80% 10% 80% 10%;
  opacity: .55;
  animation: caer 20s linear infinite;
}

.petalos span:nth-child(1) { left: 6%; animation-delay: -2s; }
.petalos span:nth-child(2) { left: 22%; animation-delay: -11s; animation-duration: 25s; }
.petalos span:nth-child(3) { left: 41%; animation-delay: -6s; animation-duration: 18s; }
.petalos span:nth-child(4) { left: 63%; animation-delay: -15s; animation-duration: 23s; }
.petalos span:nth-child(5) { left: 81%; animation-delay: -4s; animation-duration: 21s; }
.petalos span:nth-child(6) { left: 94%; animation-delay: -9s; animation-duration: 27s; }

@keyframes caer {
  to { transform: translate3d(4rem, 110vh, 0) rotate(300deg); }
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 30rem) {
  .aviso br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta { animation: none; }
  .petalos { display: none; }
}
