/*
Theme Name: Ambient Minimal
Theme URI: http://catnievas.local/
Description: Tema hijo minimalista
Author: Lolo Capodanno
Template: twentytwentyone
Version: 1.0
*/

/* ===============================
   FUENTE
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* ===============================
   BASE
   =============================== */
   /* ===============================
   ALTURA COMPLETA DEL VIEWPORT
   =============================== */

html,
body {
  min-height: 100vh;
}

#page {
  min-height: 100vh;
}
   

/* home */
.home {
  background-image: url('/wp-content/themes/ambient-minimal/img/home-bg.jpg');
}

/* fondo compartido · páginas internas */
body:not(.home) {
  background-image: url('/wp-content/themes/ambient-minimal/img/all-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

body {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: 0.08em;
}

:root {
  --global--font-primary: 'Space Grotesk', sans-serif;
}

/* ===============================
   UI GLOBAL FIJA
   =============================== */

.site-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* nombre */
.nombre-site {
  position: fixed;
  top: 60px;
  left: 32px;

  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;

  pointer-events: auto;

  transition: 
    opacity 0.35s ease,
    transform 0.35s ease,
    letter-spacing 0.35s ease,
    text-shadow 0.35s ease;
}

.nombre-site:hover {
  opacity: 1;
  transform: scale(1.03);
  letter-spacing: 0.38em;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.25);
}

/* rol */
.rol {
  position: fixed;
  bottom: 32px;
  left: 32px;

  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.65;

  pointer-events: auto;
}

/* menú */
.menu-home {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);

  pointer-events: auto;
}

.menu-home a {
  display: block;
  margin: 12px 0;

  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  opacity: 0.6;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.menu-home a:hover {
  opacity: 1;
  transform: scale(1.08);
  text-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* ===============================
   HOME
   =============================== */

.home {
  min-height: 100vh;
  background-image: url('/wp-content/themes/ambient-minimal/img/home-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* liberar layout solo en home */
.home #page,
.home #content,
.home .site,
.home .site-main,
.home .site-content,
.home .content-area,
.home .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===============================
   PÁGINAS INTERNAS
   =============================== */

 /* texto editorial · páginas internas */
.page .entry-content p {
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}
  

.page .entry-header {
  display: none;
}

.page .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 6vw;
}

.page .entry-content p + p {
  margin-top: 1.4em;
}

/* ===============================
   PAGINACIÓN CUSTOM
   =============================== */

.custom-pagination {
  margin-bottom: 60px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-pagination a {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.custom-pagination a:hover {
  opacity: 1;
}

.custom-pagination span {
  font-weight: 600;
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {
  .nombre-site {
    top: 16px;
    left: 16px;
    font-size: 1.1rem;
  }

  .menu-home {
    right: 16px;
  }

  .rol {
    left: 16px;
  }
}

/* ===============================
   TIPOGRAFÍA GLOBAL · FORZADA
   =============================== */

/* todo el sitio */
html,
body,
.site,
.site-content,
.site-main,
.entry-content,
.entry-content * {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* títulos */
h1, h2, h3, h4, h5, h6,
.entry-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500;
}

/* links y navegación */
a,
nav a,
.menu-home a {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* paginación custom */
.custom-pagination,
.custom-pagination a,
.custom-pagination span {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* inputs por si aparecen */
button,
input,
textarea,
select {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* ===============================
   GRID DE IFRAMES · WORK / SOBRE
   =============================== */

.grid-iframes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 60px;
}



.grid-iframes iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}


/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {
  .grid-iframes {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}



/* ===============================
   LIMPIEZA WORDPRESS
   =============================== */

.wp-block-embed,
.wp-block-embed__wrapper,
figure {
  margin: 0 !important;
  padding: 0 !important;
}

.grid-iframes iframe {
  aspect-ratio: 1 / 1;
}

figure.wp-block-embed {
  margin-left: auto !important;
  margin-right: auto !important;
}

figure.wp-block-embed iframe {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

/* centrar imágenes de workshops */
figure.wp-block-image {
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

figure.wp-block-image img {
  display: block;
  height: auto;
  max-width: 100%;
}


/* ===============================
   MOBILE GENERAL
   =============================== */

@media (max-width: 768px) {

  .menu-home {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .menu-home a {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .nombre-site {
    top: 16px;
    left: 16px;
    font-size: 1.1rem;
  }

  .rol {
    bottom: 90px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.25em;
  }

  .page .entry-content {
    padding: 120px 8vw 120px 8vw;
  }

  body:not(.home),
  .home {
    background-position: center top;
  }

}
