/* Una historia única Boudoir — estilos */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #747474;
  --heading: #333;
  --header-bg: #000;
  --footer-bg: #363839;
  --footer-border: #e9eaee;
  --copyright-bg: #282a2b;
  --footer-title: #ddd;
  --footer-link: #bfbfbf;
  --button-bg: #333;
  --container: 1100px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 400;
  margin: 0 0 20px;
}
h1 { font-size: 40px; line-height: 1.4; }
h2 { font-size: 30px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
h4 { font-size: 13px; line-height: 1.5; }

/* Clases para dar a un elemento el aspecto de otro nivel de título */
.h1 { color: var(--heading); font-size: 40px; line-height: 1.4; }
.h2 { font-size: 30px; }
.h4 { font-size: 13px; margin: 0; }

p {
  margin: 0 0 20px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

/* ---------- Cabecera ---------- */

.site-header {
  background: var(--header-bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}
.logo img {
  width: 200px;
  height: auto;
}

.nav ul {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 100px;
  text-decoration: none;
}
.nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav a:hover::before,
.nav a[aria-current="page"]::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo img {
    width: 150px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    width: 100%;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .nav a {
    line-height: 1;
    padding: 14px 0;
    border-top: 1px solid #222;
  }
  .nav a::before {
    display: none;
  }
  .nav a[aria-current="page"] {
    font-weight: 500;
  }
}

/* ---------- Contenido ---------- */

main {
  padding: 40px 0 60px;
}
main img {
  width: 100%;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  margin: 0 0 33px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
  align-items: start;
}

.lead {
  text-align: center;
}

.caption {
  text-align: center;
  margin-top: 10px;
}

ul.list {
  margin: 0 0 20px;
  padding-left: 35px;
}

.button {
  display: inline-block;
  background: var(--button-bg);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 2px;
  padding: 13px 29px;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 17px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover {
  background: #000;
}
.button-wrap {
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-bottom: 44px;
  align-items: start;
}

.cover-3-2 img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-note {
  margin: 8px 0 40px;
  font-size: 12px;
  text-align: center;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 56px;
  margin: -28px 0 0 -40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.2s;
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -12px 0 0 -8px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play {
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.masonry img {
  margin-bottom: 10px;
}

@media (max-width: 800px) {
  h1, .h1 { font-size: 30px; }
  h2, .h2 { font-size: 24px; }
  .split,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split .media {
    order: -1;
  }
  .masonry {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Portada ---------- */

.home main {
  padding: 0;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px var(--gutter);
  background-size: cover;
  background-position: 50% 0;
  background-attachment: fixed;
  text-align: center;
}
.hero:first-child {
  background-position: 50% 50%;
  background-attachment: scroll;
}
.hero h1,
.hero .h1 {
  margin: 0;
}
/* iOS y pantallas pequeñas no soportan bien el fondo fijo */
@media (max-width: 1024px), (hover: none) {
  .hero {
    background-attachment: scroll;
    background-position: 50% 50%;
  }
}

/* ---------- Formulario ---------- */

.form {
  max-width: 440px;
  margin: 0 auto;
}
.form label {
  display: block;
  margin-bottom: 20px;
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 4px 8px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  font: inherit;
  color: var(--heading);
  background: #fff;
}
.form textarea {
  height: 130px;
  resize: vertical;
}
.form .hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  margin-top: 16px;
}

/* ---------- Pie ---------- */

.site-footer {
  background: var(--footer-bg);
  border-top: 12px solid var(--footer-border);
  color: #8c8989;
  font-size: 14px;
}
.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 120px;
  padding-top: 43px;
  padding-bottom: 40px;
}
.footer-title {
  color: var(--footer-title);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin-bottom: 8px;
}
.footer-menu a {
  color: var(--footer-link);
  text-decoration: none;
}
.footer-menu a::before {
  content: "›";
  margin-right: 6px;
}
.footer-menu a:hover {
  color: #fff;
}
.copyright {
  background: var(--copyright-bg);
  color: var(--text);
  font-size: 12px;
  padding: 18px 0;
}
.copyright p {
  margin: 0;
}
