:root{
  --ivory:#FAF8F3;
  --graphite:#2F2F2F;
  --bronze:#8E6A45;
  --sand:#EFE7DB;
  --muted:#66625C;
  --line:rgba(47,47,47,.16);
  --max:1440px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  background:var(--ivory);
  color:var(--graphite);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.5;
}

a{
  color:inherit;
  text-decoration:none;
}

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

button,
input,
textarea,
select{
  font:inherit;
}

.page{
  max-width:var(--max);
  margin:auto;
}


/* ========================================
   NAVIGATION
======================================== */

.nav{
  padding:24px 5vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line);
}

.brand{
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  letter-spacing:3px;
  text-transform:uppercase;
  white-space:nowrap;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-links{
  display:flex;
  gap:22px;
}

.nav-links a,
.lang-btn{
  font-size:10px;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.lang-switch{
  display:flex;
  gap:5px;
}

.lang-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:5px;
  cursor:pointer;
}

.lang-btn.active{
  color:var(--graphite);
  text-decoration:underline;
  text-underline-offset:5px;
}


/* ========================================
   TYPOGRAPHY
======================================== */

.eyebrow{
  font-size:11px;
  letter-spacing:2.7px;
  text-transform:uppercase;
  color:var(--bronze);
  margin-bottom:18px;
}

h1,
h2,
h3{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
}

h1{
  font-size:clamp(54px,7vw,104px);
  line-height:.92;
  letter-spacing:-3px;
}

.lead{
  font-size:17px;
  line-height:1.85;
  color:var(--muted);
  max-width:720px;
  margin-top:24px;
}


/* ========================================
   BUTTONS
======================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:1px solid var(--graphite);
  background:transparent;
  color:var(--graphite);
  font-size:10px;
  letter-spacing:1.8px;
  text-transform:uppercase;
  cursor:pointer;
}

.btn.primary{
  background:var(--graphite);
  color:var(--ivory);
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:32px;
}


/* ========================================
   LEGACY HOME
======================================== */

.hero{
  min-height:calc(100vh - 84px);
  padding:70px 5vw;
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:5vw;
  align-items:center;
}

.hero-image{
  height:72vh;
  min-height:520px;
  overflow:hidden;
  background:var(--sand);
}

.hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
}

.cards{
  padding:90px 5vw;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.card{
  border:1px solid var(--line);
  padding:30px;
  min-height:240px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card p{
  color:var(--muted);
  line-height:1.75;
  margin-top:15px;
}


/* ========================================
   INTERNAL PAGES
======================================== */

.page-head{
  padding:90px 5vw 55px;
}


/* ========================================
   PORTFOLIO
======================================== */

.gallery{
  padding:0 5vw 100px;
  column-count:2;
  column-gap:22px;
}

.art{
  display:inline-block;
  width:100%;
  margin-bottom:22px;
  break-inside:avoid;
}


/* ========================================
   ARTIST / BOOK / PROJECT / CONTACT
======================================== */

.artist,
.book,
.project,
.contact{
  padding:80px 5vw 110px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:8vw;
  align-items:start;
}

.artist-photo{
  min-height:650px;
  overflow:hidden;
  background:var(--sand);
}

.artist-photo img{
  width:100%;
  height:100%;
  min-height:650px;
  object-fit:cover;
}

.locations{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:11px;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.bio{
  margin-top:34px;
  border-top:1px solid var(--line);
  padding-top:28px;
}

.bio[hidden]{
  display:none;
}

.bio p{
  color:var(--muted);
  font-size:16px;
  line-height:1.9;
  margin-bottom:20px;
}


/* ========================================
   LIXTEO
======================================== */

.cover{
  min-height:620px;
  background:var(--sand);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px;
}

.cover strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(52px,7vw,88px);
  font-weight:400;
}

.cover span{
  display:block;
  margin-top:18px;
  color:var(--bronze);
  font-size:11px;
  letter-spacing:2.4px;
  text-transform:uppercase;
}


/* ========================================
   PROJECT FORM
======================================== */

.project{
  grid-template-columns:.7fr 1.3fr;
}

.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.field.full{
  grid-column:1/-1;
}

label{
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--muted);
}

input,
textarea,
select{
  width:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.25);
  padding:14px 13px;
  outline:none;
  border-radius:0;
}

textarea{
  min-height:150px;
}


/* ========================================
   CONTACT
======================================== */

.contact-card{
  border:1px solid var(--line);
  padding:32px;
}

.contact-card + .contact-card{
  margin-top:18px;
}


/* ========================================
   MULTIPAGE HEADER FIX
======================================== */

.site-header{
  width:100%;
  padding:24px 5vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  border-bottom:1px solid var(--line);
}

.site-header > .nav{
  width:auto;
  padding:0;
  position:static;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:28px;
}

.site-header > .nav > a{
  font-size:10px;
  letter-spacing:1.8px;
  text-transform:uppercase;
}


/* ========================================
   PORTFOLIO PAGE — ALTERNATIVE CLASSES
======================================== */

.featured-project{
  max-width:1440px;
  margin:0 auto;
  padding:25px 5vw 110px;
}

.featured-project-head{
  max-width:780px;
  margin-bottom:48px;
}

.featured-project-head h2{
  margin:10px 0 24px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(44px,5vw,72px);
  line-height:1;
  font-weight:400;
}

.featured-project-head > p:not(.eyebrow):not(.featured-project-meta){
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
}

.featured-project-meta{
  margin-top:22px;
  color:var(--bronze);
  font-size:10px;
  line-height:1.7;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.featured-project-grid{
  display:grid;
  grid-template-columns:1.45fr 1fr 1fr;
  gap:18px;
  align-items:stretch;
}

.featured-project-grid figure{
  margin:0;
  min-height:0;
  overflow:hidden;
  background:#ddd4c7;
}

.featured-project-grid .featured-project-main{
  grid-row:span 2;
}

.featured-project-grid figure:nth-child(4){
  grid-column:2/4;
}

.featured-project-grid img{
  display:block;
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:cover;
}

.featured-project-grid .featured-project-main img{
  min-height:700px;
  object-position:center top;
}

.page-hero{
  max-width:1440px;
  margin:0 auto;
  padding:80px 5vw 55px;
}

.page-hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(54px,6vw,88px);
  line-height:1;
  font-weight:400;
  letter-spacing:-2px;
  margin-top:10px;
}

.page-hero p{
  max-width:600px;
  margin-top:22px;
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
}

.portfolio-gallery{
  max-width:1440px;
  margin:0 auto;
  padding:0 5vw 100px;
  column-count:2;
  column-gap:22px;
}

.portfolio-item{
  display:inline-block;
  width:100%;
  margin:0 0 22px;
  break-inside:avoid;
  overflow:hidden;
}

.portfolio-item img{
  display:block;
  width:100%;
  height:auto;
}

.portfolio-cta{
  max-width:1440px;
  margin:0 auto;
  padding:100px 5vw;
  border-top:1px solid var(--line);
}

.portfolio-cta h2{
  margin-top:12px;
  max-width:850px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,5vw,72px);
  font-weight:400;
  line-height:1.05;
}

.portfolio-cta p{
  max-width:600px;
  margin:25px 0 30px;
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
}


/* ========================================
   FOOTER — ÚNICA VERSIÓN
======================================== */

.site-footer{
  width:100%;
  padding:34px 5vw;
  border-top:1px solid var(--line);
  background:var(--ivory);
}

.footer-inner{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}

.footer-name{
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  letter-spacing:.22em;
  color:var(--graphite);
  white-space:nowrap;
}

.footer-social{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.footer-social a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--graphite);
  text-decoration:none;
  font-size:10px;
  letter-spacing:.17em;
  transition:opacity .2s ease;
}

.footer-social a:hover{
  opacity:.55;
}

.social-separator{
  color:#A28A6D;
  margin:0 4px;
}

.social-icon{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  flex:0 0 auto;
}

.social-icon .social-dot{
  fill:currentColor;
  stroke:none;
}

.facebook-icon{
  width:13px;
  height:13px;
  fill:currentColor;
  stroke:none;
}

.footer-copy{
  font-size:9px;
  letter-spacing:.14em;
  color:#77736D;
  white-space:nowrap;
}


/* ========================================
   TABLET
======================================== */

@media(max-width:900px){

  .nav{
    align-items:flex-start;
  }

  .nav-right{
    flex-direction:column;
    align-items:flex-end;
  }

  .hero,
  .artist,
  .book,
  .project,
  .contact{
    grid-template-columns:1fr;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .site-header{
    align-items:flex-start;
  }

  .site-header > .nav{
    flex-wrap:wrap;
  }

}


/* ========================================
   MOBILE
======================================== */

@media(max-width:700px){

  /*
    Encabezado móvil:
    primera fila = nombre e idiomas
    segunda fila = navegación desplazable
  */

  header.nav{
    height:auto;
    min-height:0;
    padding:18px 20px 12px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand languages"
      "links links";
    align-items:center;
    gap:12px 18px;
  }

  header.nav > .brand{
    grid-area:brand;
    min-width:0;
    font-size:15px;
    white-space:nowrap;
  }

  header.nav > .nav-right{
    display:contents;
  }

  header.nav .lang-switch{
    grid-area:languages;
    display:flex;
    justify-self:end;
    justify-content:flex-end;
    gap:5px;
  }

  header.nav .nav-links{
    grid-area:links;
    display:flex;
    width:100%;
    gap:20px;
    padding:10px 0 3px;
    overflow-x:auto;
    white-space:nowrap;
    border-top:1px solid var(--line);
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  header.nav .nav-links::-webkit-scrollbar{
    display:none;
  }

  header.nav .nav-links a{
    display:block;
    flex:0 0 auto;
    font-size:9px;
    letter-spacing:1.4px;
    text-transform:uppercase;
  }

  .hero,
  .page-head,
  .gallery,
  .artist,
  .book,
  .project,
  .contact,
  .cards{
    padding-left:22px;
    padding-right:22px;
  }

  .gallery{
    column-count:1;
  }

  .form{
    grid-template-columns:1fr;
  }

  .field.full{
    grid-column:auto;
  }

  .artist-photo,
  .artist-photo img{
    min-height:500px;
  }


  /* PORTFOLIO */

  .site-header{
    padding:20px 22px;
  }

  .site-header > .nav{
    gap:12px;
  }

  .site-header > .nav > a{
    font-size:9px;
  }

  .page-hero{
    padding:65px 22px 40px;
  }

  .portfolio-gallery{
    padding-left:22px;
    padding-right:22px;
    column-count:1;
  }

  .portfolio-cta{
    padding:75px 22px;
  }

  .featured-project{
    padding:10px 22px 80px;
  }

  .featured-project-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .featured-project-grid .featured-project-main{
    grid-column:1/-1;
    grid-row:auto;
  }

  .featured-project-grid figure:nth-child(4){
    grid-column:auto;
  }

  .featured-project-grid img{
    min-height:280px;
  }

  .featured-project-grid .featured-project-main img{
    min-height:0;
    height:auto;
  }


  /* HOME */

  .home-hero{
    display:flex;
    flex-direction:column;
    gap:0;
    min-height:auto;
    padding:42px 20px;
  }

  .hero-left{
    display:contents;
  }

  .home-copy{
    order:1;
    width:100%;
    max-width:none;
  }

  .home-image{
    order:2;
    width:100%;
    height:auto;
    min-height:0;
    margin-top:30px;
    overflow:hidden;
  }

  .home-image img{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
  }

  .hero-actions{
    order:3;
    width:100%;
    margin-top:18px;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .home-copy .eyebrow{
    margin-bottom:18px;
    font-size:10px;
    letter-spacing:2.1px;
  }

  .home-title{
    font-size:clamp(56px,16.5vw,76px);
    line-height:.88;
    letter-spacing:-2px;
  }

  .home-subtitle{
    max-width:none;
    margin-top:24px;
    font-size:15px;
    line-height:1.65;
  }

  .home-tags{
    display:flex;
    flex-wrap:wrap;
    margin-top:25px;
    gap:14px 23px;
  }

  .home-tags span{
    font-size:9px;
    letter-spacing:1.5px;
    padding-bottom:5px;
  }

  .hero-actions .btn{
    width:100%;
    min-height:54px;
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:9px;
    letter-spacing:1.4px;
  }


  /* FOOTER */

  .site-footer{
    padding:30px 22px;
  }

  .footer-inner{
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:18px;
  }

  .footer-name{
    font-size:13px;
  }

  .footer-social{
    gap:12px;
  }

  .footer-social a{
    font-size:10px;
    gap:6px;
  }

  .social-icon{
    width:13px;
    height:13px;
  }

  .facebook-icon{
    width:12px;
    height:12px;
  }

  .footer-copy{
    font-size:8px;
  }

}
