/* Estilos compartidos por las paginas interiores (contacto y enlaces).
   La portada lleva los suyos dentro porque tiene el video y las
   animaciones, que no se usan en ningun otro sitio. */

:root {
  --ink: #00060e;
  --orange: #e35303;
  --paper: #fa6729;   /* el naranja encendido del centro del vinneteado */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--orange); color: var(--ink);
  font-family: "Zalando Sans", "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Mismo grano que la portada, sobre toda la pagina. El gris medio del
   ruido no altera el color en modo overlay; solo actuan sus desviaciones. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: url("media/grain.webp") repeat;
  mix-blend-mode: overlay; opacity: .5;
  pointer-events: none;
}

.pagina {
  position: relative; z-index: 1;
  max-width: 44rem; margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 10rem) 1.5rem 5rem;
}

/* Cabecera, igual que en la portada */
.logo {
  position: absolute; top: 0; left: 0; z-index: 3;
  padding: clamp(1rem, 2.6vw, 2.2rem); line-height: 0;
}
.logo svg {
  display: block; height: clamp(1.6rem, 2.8vw, 2.6rem); width: auto;
  fill: var(--ink);
}
nav {
  position: absolute; top: 0; right: 0; z-index: 3;
  display: flex; gap: .75rem;
  padding: clamp(1rem, 2.6vw, 2.2rem);
}
nav a {
  display: inline-block; padding: .55em 1.5em;
  border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(.62rem, .82vw, .9rem);
  letter-spacing: .06em; white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
nav a:hover, nav a:focus-visible { background: var(--ink); color: var(--orange); }
nav a[aria-current="page"] { background: var(--ink); color: var(--orange); }

h1 {
  margin: 0 0 .4em;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: .9; letter-spacing: -.035em;
}
.intro { margin: 0 0 2.5rem; max-width: 34rem; font-size: 1.05rem; }

/* Formulario */
form { display: grid; gap: 1.1rem; max-width: 34rem; }
label {
  display: block; font-weight: 700; text-transform: uppercase;
  font-size: .72rem; letter-spacing: .08em; margin-bottom: .4rem;
}
input, textarea {
  width: 100%; padding: .8rem 1rem;
  font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, .18);
  border: 2px solid var(--ink); border-radius: 6px;
}
input:focus, textarea:focus {
  outline: none; background: rgba(255, 255, 255, .34);
}
textarea { min-height: 9rem; resize: vertical; }
button {
  justify-self: start;
  padding: .7em 2.2em; font: inherit;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--orange); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
button:hover { background: transparent; color: var(--ink); }

/* El campo trampa: invisible para una persona, apetecible para un robot
   que rellena todo lo que encuentra. Se oculta asi y no con display:none
   porque algunos rellenadores automaticos saltan lo que no se pinta. */
.trampa {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.aviso {
  margin: 0 0 2rem; padding: .9rem 1.1rem;
  border: 2px solid var(--ink); border-radius: 6px;
  background: rgba(255, 255, 255, .22); font-weight: 600;
}
.aviso.mal { background: rgba(0, 0, 0, .18); }

.nota {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 2px solid rgba(0, 6, 14, .35);
  max-width: 34rem;
}
.nota strong { font-weight: 700; }

/* Lista de enlaces */
.enlaces {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .9rem; max-width: 34rem;
}
.enlaces a {
  display: flex; align-items: baseline; gap: .9rem;
  padding: 1.1rem 1.4rem;
  border: 2px solid var(--ink); border-radius: 8px;
  color: var(--ink); text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.enlaces a:hover {
  background: var(--ink); color: var(--orange);
  transform: translateX(4px);
}
.enlaces b {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em;
}
.enlaces span { font-size: .92rem; opacity: .85; }

/* currentColor y no un color fijo: asi el logotipo se invierte solo
   cuando la fila se pone en negativo al pasar el raton. */
.icono {
  width: 1.6rem; height: 1.6rem; flex: none;
  fill: currentColor; align-self: center;
}
/* Este va dentro de la frase, asi que se comporta como una letra mas:
   em en vez de rem para que crezca con el texto que lo rodea, y el
   desplazamiento vertical justo para que su centro caiga a la altura del
   centro de las mayusculas en lugar de sentarse sobre la linea base. */
.icono.chico {
  width: 1.05em; height: 1.05em;
  vertical-align: -.19em;
  margin-right: .12em;
}

footer {
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 2px solid rgba(0, 6, 14, .35);
  font-size: .85rem;
}
footer a { color: inherit; }

@media (max-width: 700px) {
  nav { gap: .4rem; padding: 1rem .8rem; }
  .enlaces a { flex-direction: column; gap: .2rem; }
}
