/* ===========================================================
   Músicos en la Naturaleza — Landing 2027
   =========================================================== */

@font-face {
  font-family: 'Monument Extended';
  src: url('../fonts/MonumentExtended-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------
   Este CSS solo se carga en la página que contiene [mn_landing],
   así que estas reglas no afectan a ninguna otra página del sitio
   aunque no vayan "scopeadas" letra por letra.
   --------------------------------------------------------------- */
#main-header,
#et-secondary-nav,
#top-header,
.entry-title,
#sidebar,
.et_pb_sidebar,
#main-footer,
.et-l--footer,
footer#footer,
#footer-bottom {
  display: none !important;
}

/* Fuerza a TODOS los contenedores habituales de Divi a ancho completo,
   sin padding ni max-width, para que nada le reste sitio a la imagen. */
html, body,
#page-container,
#main-content,
#main-content .container,
#left-area,
#content-area,
.et_pb_row,
article,
.entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
}
html, body { overflow-x: hidden !important; }

/* Quita cualquier <p> vacío que el editor clásico añade automáticamente
   alrededor del shortcode: si tienen margen, dejan una franja visible
   por debajo de la imagen al hacer scroll. */
#main-content .container > p:empty,
article > p:empty,
.entry-content > p:empty {
  display: none !important;
  margin: 0 !important;
}

/* Red de seguridad: si por lo que sea queda algún resquicio de fondo
   blanco (columna o margen), que al menos sea del mismo tono oscuro
   que el borde de la foto y no rompa la estética. */
body { background: #14101c !important; }

.mn-hero {
  --accent: #f4e73f;
  --overlay-top: rgba(20, 10, 5, .15);
  --overlay-bottom: rgba(10, 5, 10, .55);

  /* Rompe cualquier contenedor centrado que aún quede (ej. si Divi
     fija el ancho vía estilo inline con "Website Content Width").
     Combinado con overflow-x:hidden en html/body de arriba, no genera
     scroll horizontal. */
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* 100dvh = alto de pantalla "real" en móvil, descontando la barra
     del navegador. Con fallback a 100vh para navegadores antiguos. */
  min-height: 100vh;
  min-height: 100dvh;

  background-image: var(--mn-bg-image);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
  box-sizing: border-box;
  color: #fff !important;
}

.mn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay-bottom), var(--overlay-top) 55%);
  pointer-events: none;
}

.mn-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.mn-hero__logo img {
  max-width: 300px;
  width: 68%;
  margin: 0 auto 1.4rem;
  display: block;
}
.mn-hero__logo a { display: inline-block; }

.mn-hero__pretext {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(.65rem, 1.2vw, .8rem);
  letter-spacing: .03em;
  color: #ffffff !important;
  opacity: .9;
  margin: 0 0 .7rem !important;
}

.mn-hero__title {
  font-family: 'Monument Extended', Impact, sans-serif !important;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 5.4rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .8rem !important;
  padding: 0 !important;
  line-height: 1;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff; /* algunos temas fuerzan degradados de color en h1 */
}

.mn-hero__subtitle {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(.75rem, 1.6vw, 1.05rem);
  letter-spacing: .03em;
  line-height: 1.5;
  margin: 0 0 1.4rem !important;
  color: #ffffff !important;
}
/* Cada frase del subtítulo es su propio bloque, así el espacio entre
   frases (margin) se controla aparte del interlineado interno de cada
   una (line-height), sin depender de un <br> suelto. */
.mn-hero__subtitle-line { display: block; }

/* ---------- Formulario ---------- */
.mn-hero__form {
  --field-h: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.mn-hero__input {
  height: var(--field-h);
  width: 100%;
  box-sizing: border-box;
  padding: 0 1.6rem;
  background: rgba(0, 0, 0, .55) !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .8rem;
  text-transform: uppercase;
}
.mn-hero__input::placeholder { color: rgba(255, 255, 255, .8); }
.mn-hero__input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.mn-hero__input:invalid:not(:placeholder-shown) { border-color: #ff8a8a !important; }

.mn-hero__button {
  height: var(--field-h);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.8rem;
  background: var(--accent);
  color: #111;
  border: none;
  font-family: 'Monument Extended', Impact, sans-serif;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, opacity .15s ease;
}
.mn-hero__button:hover { filter: brightness(1.08); }
.mn-hero__button:disabled { opacity: .6; cursor: not-allowed; }

/* A partir de escritorio pequeño, campo y botón vuelven a ir en fila */
@media (min-width: 560px) {
  .mn-hero__form { flex-direction: row; align-items: center; }
  .mn-hero__input { flex: 1 1 auto; }
  .mn-hero__button { flex: 0 0 auto; width: auto; }
}

.mn-hero__message {
  min-height: 1.4em;
  margin: .8rem 0 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
  font-weight: 700;
}
.mn-hero__message[data-state="success"] { color: var(--accent); }
.mn-hero__message[data-state="error"] { color: #ff9d9d; }

.mn-hero__social {
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin-top: .4rem;
}
.mn-hero__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.mn-hero__social a:hover { transform: translateY(-2px); }
.mn-hero__social svg { width: 18px; height: 18px; }

.mn-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Foco visible por teclado (accesibilidad) */
.mn-hero a:focus-visible,
.mn-hero button:focus-visible,
.mn-hero input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Desktop: título en una sola línea + campo más bajo y ancho ---------- */
@media (min-width: 641px) {
  .mn-hero__content { max-width: 1150px; }
  .mn-hero__title { white-space: nowrap; }
  .mn-hero__form { --field-h: 46px; max-width: 720px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .mn-hero { padding: 4vh 6vw; }
  .mn-hero__logo img { width: 42%; margin-bottom: 1.5rem; } /* más aire respecto al título */
  .mn-hero__title {
    margin-bottom: 1.3rem !important; /* más aire respecto al subtítulo */
    line-height: 1.1; /* evita que los acentos (Ó, É) se solapen al partir en dos líneas */
  }
  .mn-hero__subtitle {
    font-size: .85rem; /* ligeramente más grande que el clamp de base en móvil */
    margin-bottom: 1.8rem !important; /* más aire respecto al formulario */
  }
  .mn-hero__subtitle-line {
    line-height: 1.3; /* interlineado más ajustado dentro de cada frase */
  }
  .mn-hero__subtitle-line + .mn-hero__subtitle-line {
    margin-top: .85em; /* más aire entre una frase y la otra */
  }
  .mn-hero__message { margin: .8rem 0 1.6rem; } /* más aire respecto al bloque de RRSS */
  .mn-hero__pretext-line {
    display: block; /* "¿Prefieres no compartir tu correo?" y "Síguenos en RRSS:" en líneas separadas */
  }
  .mn-hero__pretext-line + .mn-hero__pretext-line {
    margin-top: .05em; /* casi pegadas, van juntas como una sola idea */
  }
  .mn-hero__social { margin-top: .2rem; }
}

/* Pantallas muy bajas (móvil en horizontal, marcos pequeños): prioriza
   que quepan título + formulario + RRSS aunque haya que sacrificar
   el subtítulo, para que nunca se corte el pie de la landing.
   Se añade max-width para que esto SOLO afecte a dispositivos móviles:
   sin ese límite, un portátil con la ventana no maximizada o con
   escalado de pantalla (125%/150%, muy común en Windows) puede tener
   menos de 640px de alto en píxeles CSS y disparaba esta regla en
   pleno escritorio, ocultando el subtítulo sin motivo. */
@media (max-height: 500px) and (max-width: 900px) {
  .mn-hero { padding-top: 3vh; padding-bottom: 3vh; }
  .mn-hero__logo img { width: 32%; margin-bottom: .5rem; }
  .mn-hero__subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-hero__social a { transition: none; }
}
