/* ===== Fuente de pincel ===== */
@font-face {
  font-family: "Osake";
  src: url("../fuentes/Osake.otf") format("opentype"),
       url("../fuentes/Osake.ttf") format("truetype");
  font-display: swap;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tinta: #141414;
  --rosa: #f0145a;
  --verde: #3BB54C;
  --grot: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pincel: "Osake", "Impact", sans-serif;
  --chino: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  /* La portada se diseñó a 1024 px de ancho: todo se mide en vw
     para que la composición se mantenga igual a cualquier ancho. */
  --texto-chico: clamp(9px, 1.27vw, 20px);
  --orilla: 1.76vw;
}

body {
  font-family: var(--grot);
  color: var(--tinta);
  background: var(--verde);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== Menú en las esquinas (fijo) ===== */
.esquina {
  position: fixed;
  z-index: 20;
  display: flex;
  gap: 4.4vw;
  font-weight: 800;
  font-size: var(--texto-chico);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.esquina a { display: flex; flex-direction: column; align-items: center; }
.esquina a span {
  font-family: var(--chino);
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.esquina a:hover { color: var(--rosa); }

.arriba-izq { top: 0.8vw; left: var(--orilla); }
.arriba-der { top: 0.8vw; right: var(--orilla); }

.info { display: flex; flex-direction: column; gap: 0; }
.abajo-izq    { bottom: var(--orilla); left: var(--orilla); }
.abajo-centro { bottom: var(--orilla); left: 50%; transform: translateX(-50%); align-items: center; text-align: center; }
.abajo-der    { bottom: var(--orilla); right: var(--orilla); align-items: flex-end; text-align: right; }

.hamburguesa { display: none; }

/* ===== Portada (proporción fija, como el fondo) ===== */
.portada {
  position: relative;
  height: 56.35vw;           /* misma proporción que la imagen de fondo */
  overflow-x: clip;
}

.fondo {
  position: absolute;
  inset: 0;
  background: url("../img/fondo.webp") center top / cover no-repeat;
}

/* Título (imagen) centrado arriba */
.logo {
  position: absolute;
  top: 0.4vw;
  left: 50%;
  transform: translateX(-50%);
  width: 38vw;
  z-index: 5;
  pointer-events: none;
}
.logo img { display: block; width: 100%; height: auto; }

/* Lemas a media altura, pegados a las orillas */
.lema {
  position: absolute;
  top: 26.4vw;
  z-index: 5;
  font-weight: 800;
  font-size: clamp(10px, 1.62vw, 28px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lema-izq { left: 2vw; }
.lema-der { right: 2vw; }

/* Ilustración: un poco a la izquierda del centro, debajo del título */
.figura {
  position: absolute;
  left: 32vw;
  top: 11.4vw;
  width: 32.2vw;
  z-index: 4;
}

/* Estrella "¡Dale play!" abajo a la derecha, saliéndose de la portada */
.estrella {
  position: absolute;
  left: 73.5vw;
  top: 37.5vw;
  width: 24vw;
  aspect-ratio: 1;
  z-index: 6;
  display: grid;
  place-items: center;
  transform: rotate(14deg);
  transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1);
}
.estrella svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: girar 22s linear infinite;
}
.estrella polygon { fill: var(--rosa); }
.estrella span {
  position: relative;
  font-weight: 900;
  font-size: 3vw;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-align: center;
}
.estrella:hover { transform: rotate(4deg) scale(1.06); }
@keyframes girar { to { transform: rotate(360deg); } }

/* ===== Sección siguiente ===== */
.intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 4vw;
  padding: 6vw var(--orilla) 12vw;
  background: var(--verde);
}
.intro-grande {
  font-weight: 600;
  font-size: clamp(18px, 2.75vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.intro-cols {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  font-weight: 600;
  font-size: clamp(10px, 1.1vw, 17px);
  line-height: 1.3;
}

/* ===== Teléfonos (pantalla táctil): diseño centrado ===== */
@media (hover: none) and (pointer: coarse) {
  .esquina.info { display: none; }

  .hamburguesa {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 5vw;
    left: 6vw;
    z-index: 30;
    width: 6vw;
    height: 5vw;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .hamburguesa i {
    display: block;
    height: 1.1vw;
    border-radius: 1vw;
    background: var(--tinta);
    transition: transform 0.25s, opacity 0.25s;
  }
  .menu-abierto .hamburguesa i:nth-child(1) { transform: translateY(1.95vw) rotate(45deg); }
  .menu-abierto .hamburguesa i:nth-child(2) { opacity: 0; }
  .menu-abierto .hamburguesa i:nth-child(3) { transform: translateY(-1.95vw) rotate(-45deg); }

  /* El menú se vuelve un panel que baja desde arriba */
  .arriba-izq, .arriba-der {
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 6vw;
    font-size: 8vw;
    background: #f6d3c0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .arriba-izq { top: 0; padding: 24vw 0 6vw; z-index: 25; }
  .arriba-der { top: calc(24vw + 2 * 8vw * 2.15 + 6vw * 2); padding: 0 0 10vw; z-index: 25; }
  .menu-abierto .arriba-izq, .menu-abierto .arriba-der { opacity: 1; pointer-events: auto; }

  .portada { height: 181vw; }

  .logo { top: 5vw; width: 54vw; }

  .lema {
    top: 35vw;
    left: 0 !important;
    right: 0 !important;
    text-align: center;
    font-size: 5.8vw;
    line-height: 1.1;
  }
  .lema-der { top: 41.5vw; }

  .figura { left: 0.6vw; top: 48vw; width: 93.7vw; }

  .estrella { left: 36vw; top: 150vw; width: 60vw; }
  .estrella span { font-size: 8.5vw; }

  .intro { grid-template-columns: 1fr; padding: 22vw 6vw 16vw; }
  .intro-grande { font-size: 7vw; }
  .intro-cols { font-size: 4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .estrella svg { animation: none; }
}
