@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Semi Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Regular Obl.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: 'Compose';
  src: url('fonts/Compose Complete Family/Arkitype - Compose Semi Bold Obl.ttf') format('truetype');
  font-style: italic;
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* Debug visual    
  outline: solid red 1px;
 */
  
  
 

}

/* BODY Y LAYOUT GENERAL */
html,
body {
  min-height: 100dvh;
  width: 100%;
}

body {
  font-family: 'Compose', 'Montserrat', sans-serif;
  background-color: #f6f4f4;
  color: #0A3553;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
}


.page-wrapper {
  min-height: 100dvh;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.page-wrapper.hero-page {
  height: 100dvh;
}

.container {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1;
  min-height: 0;
  gap: clamp(1rem, 2vw, 2rem);
  
  padding-top: clamp(3rem, 10vh, 7.5rem);
  max-width: 1240px;
  width: 100%
  
}

main > * {
  width: 100%;
  max-width: 100%;
  height: auto;
}

main {
  min-height: 0;
  
  padding: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  justify-content: center;
  /*Prueba*/
  align-items: flex-start;
}


.bio-copy {
  column-count: 2;
  column-gap: clamp(1.8rem, 4vw, 3.25rem);
  padding-inline: clamp(1.4rem, 3.8vw, 3.4rem);
  color: #224864;
  max-width: 100%;
  /*Prueba*/
  height: auto;
}

.bio-copy p {
  break-inside: avoid;
  margin: 0 0 1.2rem;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

/*Cursiva*/
.bio-copy em {
  font-style: italic;
  font-weight: 600;
  color: #183a56;
  
}

.info-copy {
  width: 100%;
  padding-inline: clamp(1.4rem, 3.8vw, 3.4rem);
  max-width: 100%;
  color: #183a56;
  font-size: clamp(1.05rem, 1.8vw, 2rem);
  line-height: 1.35;
}

.info-copy p {
  margin: 0 0 1.4rem;
  font-weight:500;
  font-size: 18px;
  color:#163451;
}

.works-copy {
  width: 100%;
  padding-inline: clamp(1.4rem, 3.8vw, 3.4rem);
  column-count: 2;
  column-gap: clamp(1.8rem, 4vw, 3.25rem);
  max-width: 100%;
  color: #183a56;
  /*Prueba*/
  height: auto;
}

.works-copy h2 {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  break-after: avoid;
}

.works-copy p {
  margin: 0 0 0.95rem;
  font-size: 0.94rem;
  line-height: 1.28;
  break-inside: avoid;
  width: 100%;
}

/*Negrita*/
.works-copy strong {
  font-weight: 600;
}

/*Cursiva*/
.works-copy em {
  font-style: italic;
  font-weight: 600;
  color: #183a56;
  height: 100%;
}




/* SIDEBAR */
.sidebar {
  padding: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vh, 2.5rem);
  
}

/* LOGO */
.logo {
  background: #0A3553;
  color: white;
  padding: 1.5rem;
  width: fit-content;
  
  border-bottom-right-radius: 3rem;
}

.logo h1 {
  font-weight: 300;
  line-height: 1.2;
  font-size: 1.9rem;
}


.logo a {
  text-decoration: none;
  color: inherit; 
  display: block;  
}


.logo a:visited {
  color: inherit;
}

/* MENÚ */
nav ul {
  list-style: none;
}

.site-nav {
  width: fit-content;
}

.menu-toggle {
  display: none;
}

nav li {
  margin-bottom: 0.3rem;
}

nav a {
  text-decoration: none;
  color: #0A3553;
  font-size: 1.15rem;
 
}

nav a:hover,
nav a:focus-visible {
  font-weight: 600;
}

nav a.active {
  font-weight: 600;
  color: #0A3553;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* REDES SOCIALES */
.social {
  display: flex;
  gap: 0.4rem;
  margin-top: -1rem;
  
}

.social a {
  text-decoration: none;
  font-size: 0.875rem;
  background-color: #0A3553; 
  color: white;
  width: 1.7rem;  
  height: 1.7rem;
  border-radius: 50%;


  display: flex;
  justify-content: center;
  align-items: center;

  transition: background 0.3s ease;
}

i{
  font-size: 17px;
  
}

/* HERO (IMAGEN) */
.hero {
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: clamp(5rem, 21vh, 11rem);
  padding-right: clamp(5rem, 10vw, 12rem);
  padding-bottom: 0;
  padding-left:0;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
}

/* FOOTER */
footer {
  z-index: 10;
  min-height: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 0.8125rem;
  background: #0A3553;
  width: 100%;
  color:#ffff;
}

.page-wrapper.hero-page footer {
  
  bottom: 0;
}

footer div{

  max-width: 1240px;
  width:100%;
  
}

/* GALERÍA */
.gallery {
  width: 100%;
  padding-inline: clamp(1.4rem, 3.8vw, 3.4rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(10, 53, 83, 0.2);
}

  /* Modal   */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 31, 0.78);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90dvh;
  display: grid;
  place-items: center;
}

.lightbox-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88dvh;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 0.2rem;
}

.lightbox-close {
  position: absolute;
  top: -2.25rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}







/*MEDIA QUERIES*/













/* Pantallas con poca altura */
@media (max-height: 900px) {
  .container {
    padding-top: clamp(1.25rem, 4.2vh, 2.4rem);
  }

  .sidebar {
    gap: clamp(0.8rem, 2vh, 1.4rem);
  }

  .hero {
    padding-top: clamp(1.8rem, 8vh, 4.4rem);
    padding-right: clamp(2.5rem, 6vw, 6rem);
  }
}

@media (max-height: 760px) {
  .container {
    padding-top: 1rem;
  }

  .sidebar {
    padding-top: 0.7rem;
  }

  .logo {
    padding: 1rem 1.1rem;
    border-bottom-right-radius: 2.2rem;
  }

  .logo h1 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  nav a {
    font-size: 1rem;
  }

  .social {
    margin-top: 0.7rem;
  }

  .hero {
    padding-top: 1rem;
    padding-right: clamp(1.6rem, 4vw, 3rem);
  }

  footer {
    min-height: 2.5rem;
    height: 2.5rem;
  }
}

/*Pantallas de menos de 1200px*/

@media (max-width: 1200px) {
  .container {
    width: 92vw;
  }

  footer div {
    width: 92vw;
  }
}

/*Pantallas de menos de 1024px*/

@media (max-width: 1024px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-wrapper {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .container {
    grid-template-columns: minmax(16rem, 16rem) 1fr;
    width: 95vw;
    padding-top: clamp(1.5rem, 5vh, 3rem);
  }

  main {
    padding: clamp(0.8rem, 2.5vw, 1.5rem);
  }
  

  

  .bio-copy,
  .info-copy,
  .works-copy {
    max-width: 100%;
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .bio-copy,
  .works-copy {
    column-count: 1;
  }

  .hero {
    align-items: flex-end;
  }

  .hero img {
    height: auto;
  }


  footer {
    width: 100%;
  }

  footer div {
    width: 95vw;
  }

  
}

/*Pantallas de menos de 768px TABLETS PREDET*/

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr; 

    gap: 0;
    width: min(94vw, 640px);
    padding-top: 1rem;
    overflow: visible;
    
  }

  .sidebar {
    position: relative;
    z-index: 3;
    padding: 0;
    gap: 0.8px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "menu social"
      "logo logo";
    
    
  }

  .logo {
    position: relative;
    z-index: 1;
    grid-area: logo;
    border-bottom-right-radius: 2.3rem;
    width: fit-content;
    margin-top: 5rem;
  }

    
  .logo h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  /*Controla altura menu desplegable*/
  .site-nav {
    grid-area: menu;
    position: relative;
    display: flex;
    height:4rem;
  }

  .menu-toggle {
    
    
    
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
    gap: 0.28rem;
    
    padding: 0;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 2.5rem;
    height: 8px;
    
    background: #0A3553;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 4;
    flex-direction: column;
    gap: 3px;
  
    
   
    
  }

  .site-nav.is-open ul {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    grid-area: menu;

    justify-self: start;
  }

  .site-nav.is-open .menu-toggle {
    display: none;
  }

  nav li {
    margin-bottom: 0;
    
  }

  nav a {
    display: block;
    min-width: 2.5rem;
    padding:3px;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: #6e6e6e;
    
  }

  nav a:hover,
  nav a:focus-visible,
  nav a.active {
    color: #ffffff;
    background: #0A3553;
  }

  nav a:hover,
  nav a:focus-visible {
    font-weight: 400;
  }

  nav a.active {
    font-weight: 400;
  }

  .social {
    grid-area: social;
    justify-content: flex-end;
    margin-top: 0;
    gap: 0.45rem;
    align-self: flex-start;
    padding-top: 0.2rem;
  }

  .social a {
    width: 2rem;
    height: 2rem;
  }

  main {
  
    padding: 0;
    padding-bottom: 2rem;
    margin-top: 2rem;
    
  }

  .bio-copy,
  .info-copy,
  .works-copy {
    padding-inline: 0;
  }

  .bio-copy p,
  .info-copy p,
  .works-copy p {
    font-size: 0.97rem;
    line-height: 1.5;
  }



  .works-copy h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero {
    position: relative;
    z-index: 1;
    padding: 0;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
  }

  .hero img {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    height: auto;
    max-height: none;
    
  }

  footer {
    min-height: 2.6rem;
    height: auto;
    padding: 0.5rem 0;
  }

  footer div {
    width: 94vw;
    text-align: center;
  }

  .gallery {
    padding-inline: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

}

@media (max-width: 480px) {
  .container {
    width: 92vw;
  }

  .hero {
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 0;
    height: auto;
    position: relative;
    z-index: 1;
  }

  .hero img {
    width: min(70vw, 320px);
    height: auto;
    position: relative;
    z-index: 1;
    margin-left: auto;
  }

  .logo {
    padding: 0.82rem 0.95rem;
    border-bottom-right-radius: 3rem;
    width: fit-content;
    max-width: 62vw;
  }

  .logo h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.15rem);
    line-height: 1.22;
    letter-spacing: 0.02em;
    font-weight: 300;
    height: 100%;
    padding: 0.25rem;
    
  }

  nav a {
    font-size: 0.88rem;
  }

  .bio-copy p,
  .info-copy p,
  .works-copy p {
    font-size: 0.93rem;
  }


  i {
    font-size: 17px;
  }
}

@media (max-width: 480px) and (max-height: 900px) {
  .hero img {
    max-height: 70dvh;
    width: auto;
    max-width: min(66vw, 300px);
  }
}


/*Pantallas de menos de 375px MÓVILES PREDET*/
@media (max-width: 376px) {
  .container {
    width: 92vw;
    gap: 0;
    align-content: start;
  }

  .sidebar {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns:  1fr auto;
    grid-template-areas:
      "menu social"
      "logo logo";
    align-items: start;
    height: auto;
  }

  .site-nav {
    grid-area: menu;
    display: flex;
    align-self: center;
    
    
    
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6.5px;
    height:auto;
  }

  .menu-toggle span:not(.sr-only) {
    
    width: 2.05rem;
    height: 6px;
    background: #0A3553;
  }

  .logo {
    grid-area: logo;
    margin-top: 3rem;
    padding: 1.60rem 1.05rem;
    border-bottom-right-radius: 2.5rem;
    width: fit-content;
    min-width: 56vw;
    max-width: 74vw;
    height: auto;
    position: relative;
    z-index: 4;
  }

  .logo h1 {
    font-size: clamp(1.95rem, 9.2vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 300;
    height: 100%;
    padding: 0.2rem 0.2rem 0.2rem 0.5rem;
    
  }
  
  .logo a {
    height: 100%;
    width: 100%;
  }

  .social {
    grid-area: social;
    gap: 0.4rem;
    align-self: flex-start;
    
    
  }

  .social a {
    width: 1.6rem;
    height: 1.6rem;
  }

  i {
    font-size: 16px;
  }

  main{
    margin-top:4rem;
  }

  .hero {
    justify-content: flex-end;
    margin-top: 0;
    height: auto;
    position: relative;
    z-index: 1;
    
  }

  .hero img {
    width: min(68vw, 280px);
    height: auto;
    position: relative;
    z-index: 1;
    margin-left: auto;
    
    
  }

  .bio-copy p,
  .info-copy p,
  .works-copy p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .works-copy h2 {
    font-size: 0.92rem;
    margin-top:0;
  }

  footer {
    font-size: 0.74rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

}



