:root{
  --bg: #f6f3ee;
  --ink: #1f1b16;
  --muted: #6b625a;
  --gold: #b59b4b;
  --hairline: rgba(31,27,22,.10);
  --max: 1180px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

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

.container{
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
}

/* HEADER */

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,243,238,.95);
  backdrop-filter: blur(6px);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand{
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: .2px;
}

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

.nav-link{
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--muted);
}

.nav-link.is-active{
  color: var(--gold);
}

.hairline{
  height: 1px;
  background: var(--hairline);
}

/* TYPOGRAPHY */

.eyebrow{
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
}

.section-title,
.hero-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin: 0;
}

.accent-italic{
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

/* HERO */

.hero{
  padding: 70px 0 50px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

/* ✅ limita el tamaño de la columna de la imagen para que no “explote” */
.hero-media{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hero-title{
  font-size: clamp(48px, 4.5vw, 74px);
  line-height: 1.02;
}

/* ✅ imagen real: respeta proporción original + no recorta */
.hero-real{
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid rgba(31,27,22,.12);
  box-shadow: 0 10px 28px rgba(31,27,22,.08);
  background: #e8e1d6;
}

.hero-text{
  margin: 18px 0 26px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
  font-size: 14px;
}

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ink);
}

.link-arrow.subtle{ color: var(--muted); }
.link-arrow:hover{ color: var(--gold); }

/* IMAGE FRAMES */

.img-frame{
  background: #e8e1d6;
  border: 1px solid rgba(31,27,22,.12);
  box-shadow: 0 10px 28px rgba(31,27,22,.08);
}

/* SOBRE LA ARTISTA */

.about{
  padding: 60px 0;
}

.about-alt{
  background: #efe8de;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.about-grid{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
  align-items: start;
}

.about-media{
  width: 100%;
}

/* Si usas un <img> aquí, ponle class="img-about img-frame" */
.img-about{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.section-title{
  font-size: 44px;
  line-height: 1.08;
  margin-bottom: 18px;
}

.body-text{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  max-width: 70ch;
}

.mini-link{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.mini-line{
  width: 42px;
  height: 1px;
  background: rgba(181,155,75,.55);
}

.mini-anchor{
  font-size: 13px;
  color: var(--gold);
}

.mini-anchor:hover{ text-decoration: underline; }

/* OBRAS DESTACADAS */

.featured{
  padding: 70px 0 80px;
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.grid-one-row{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4-column grid used on the home page “Proyectos” section */
.grid-four{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.img-work{
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Make cards behave like block-level grid items so images can't overflow */
.card{
  display: block;
  width: 100%;
}

.card:hover .img-work{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(31,27,22,.12);
}

.card-meta{
  display: flex;
  flex-direction: column;   /* forces stacking */
  align-items: flex-start;  /* left aligned */
  gap: 6px;
  padding-top: 14px;
}

.card-title{
  font-family: "Playfair Display", serif;
  font-size: 15px;
}

.card-sub{
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(31,27,22,.55);
  max-width: 38ch;
}

.card:hover .card-sub{
  color: rgba(31,27,22,.75);
}

/* PLACEHOLDER WORK COLORS */
.w1{ background: linear-gradient(135deg, #f1d34a, #e65d3b, #2aa9a2); }
.w2{ background: linear-gradient(135deg, #3b1b5a, #b139ff, #f2d4ff); }
.w3{ background: linear-gradient(135deg, #587a40, #d9c7a8, #314326); }
.w4{ background: linear-gradient(135deg, #2b2b2b, #d0b37b, #f1e6d7); }
.w5{ background: linear-gradient(135deg, #6b5b95, #feb236, #d64161); }
.w6{ background: linear-gradient(135deg, #355c7d, #c06c84, #f8b195); }

/* EXPOSICIÓN ACTUAL */

.expo-full{
  background: #2a211b;
  color: #f6f3ee;
  padding: 120px 0;
}

.expo-inner{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.expo-text{ color: #f6f3ee; }

.expo-eyebrow{
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: .35em;
  color: rgba(181,155,75,.85);
}

.expo-big{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0 0 18px;
  font-size: clamp(52px, 5vw, 86px);
  line-height: 1.05;
}

.expo-sub{
  margin: 0 0 34px;
  font-size: 14px;
  color: rgba(246,243,238,.78);
  line-height: 1.75;
  font-weight: 300;
}

.expo-info{
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
  max-width: 520px;
}

.expo-item{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}

.ico{
  filter: grayscale(1);
  opacity: .85;
  transform: translateY(2px);
}

.expo-strong{
  font-size: 14px;
  color: rgba(246,243,238,.92);
  font-weight: 300;
}

.expo-muted{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(246,243,238,.60);
}

.expo-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .25em;
  color: rgba(181,155,75,.95);
}

.expo-link:hover{ color: #fff; }

.expo-image{
  display: flex;
  justify-content: flex-end;
}

.expo-photo{
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(246,243,238,.14);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  display: block;
}

/* FOOTER */

.footer2{
  background: var(--bg);
  padding: 48px 0 44px;
}

.footer2-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer2-title{
  font-family: "Playfair Display", serif;
  font-size: 20px;
  letter-spacing: .2px;
  color: rgba(31,27,22,.92);
}

.footer2-sub{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(31,27,22,.62);
}

.footer2-nav{
  display: flex;
  gap: 42px;
  align-items: center;
  padding-top: 6px;
}

.footer2-link{
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(31,27,22,.55);
}

.footer2-link:hover{ color: var(--gold); }

.footer2-line{
  height: 1px;
  background: var(--hairline);
  margin: 28px auto;
}

.footer2-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer2-copy{
  font-size: 13px;
  color: rgba(31,27,22,.55);
}

.footer2-ig{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(31,27,22,.55);
}

.footer2-ig:hover{ color: rgba(31,27,22,.82); }

.footer2-ig-handle{ line-height: 1; }

.ig-ico{ color: rgba(31,27,22,.55); }

/* CONTACTO */

.contact{
  padding: 82px 0 90px;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-title{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(54px, 5.2vw, 84px);
  line-height: 1.02;
  margin: 0 0 18px;
}

.contact-text{
  margin: 0 0 34px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  max-width: 56ch;
}

.contact-items{
  display: grid;
  gap: 18px;
  margin-top: 6px;
}

.contact-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  width: fit-content;
}

.contact-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;          /* keep your current size if different */
  height: 44px;
  border-radius: 999px;
  overflow: visible;    /* important: avoid clipping */
}

.contact-icon svg{
  display: block;       /* removes baseline weirdness */
  width: 18px;
  height: 18px;
  margin: 0;
}

.contact-meta{
  display: grid;
  gap: 2px;
}

.contact-label{
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(31,27,22,.45);
}

.contact-value{
  font-size: 14px;
  color: rgba(31,27,22,.88);
}

.contact-item:hover .contact-icon{
  background: rgba(181,155,75,.16);
  transform: translateY(-1px);
}

.contact-item:hover .contact-value{
  color: var(--gold);
}

.contact-card{
  background: #fff;
  border: 1px solid rgba(31,27,22,.10);
  box-shadow: 0 16px 40px rgba(31,27,22,.08);
  padding: 36px 36px 32px;
}

.contact-form{
  display: grid;
  gap: 22px;
}

.field label{
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(31,27,22,.55);
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid rgba(31,27,22,.16);
  background: #fff;
  padding: 12px 12px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea{
  resize: vertical;
  min-height: 160px;
}

.field input::placeholder,
.field textarea::placeholder{
  color: rgba(31,27,22,.38);
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(181,155,75,.75);
  box-shadow: 0 0 0 3px rgba(181,155,75,.12);
}

.input-with-icon{ position: relative; }
.input-with-icon input{ padding-right: 44px; }

.input-icon{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(31,27,22,.35);
  pointer-events: none;
}

.input-with-icon input:focus + .input-icon{
  color: rgba(181,155,75,.85);
}

.btn-submit{
  width: 100%;
  border: 0;
  background: #1f1b16;
  color: #fff;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-submit:hover{
  background: var(--gold);
  color: #1f1b16;
  transform: translateY(-1px);
}

.contact-quote{
  margin-top: 34px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 18px;
  max-width: 52ch;
}

.quote-bar{
  width: 2px;
  background: rgba(181,155,75,.55);
  border-radius: 2px;
  margin-top: 6px;
}

.quote-text{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(31,27,22,.62);
  font-size: 18px;
  line-height: 1.85;
}

/* PORTFOLIO (TAB) */

.portfolio-hero{
  padding: 86px 0 20px;
}

.portfolio-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin: 0;
  font-size: clamp(54px, 5vw, 82px);
  line-height: 1.02;
}

.portfolio-sub{
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
  font-size: 14px;
}

.portfolio-tabs{
  display: flex;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.tab{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(31,27,22,.55);
  position: relative;
}

.tab:hover{ color: var(--gold); }
.tab.is-active{ color: rgba(31,27,22,.88); }

.tab.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: rgba(181,155,75,.75);
}

.portfolio-tabs-line{
  height: 1px;
  background: var(--hairline);
  margin-top: 14px;
}

/* PORTFOLIO GRID */

.portfolio-grid-wrap{
  padding: 26px 0 90px;
}

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 28px;
}

.work-btn{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.work-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(31,27,22,.10);
  box-shadow: 0 18px 46px rgba(31,27,22,.10);
  transition: transform .25s ease, box-shadow .25s ease;
  background-size: cover;
  background-position: center;
}

.work-btn:hover .work-photo{
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(31,27,22,.14);
}

.work-meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.work-name{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 15px;
  color: rgba(31,27,22,.90);
  transition: color .2s ease;
}

.work-size{
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(31,27,22,.45);
  transition: color .2s ease;
}

.work-btn:hover .work-name,
.work-btn:hover .work-size{
  color: var(--gold);
}

/* LIGHTBOX (portfolio) — FULLSCREEN (single source of truth) */

body.is-locked{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 220;
}

.lightbox.is-open{ display: block; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(31,27,22,.72);
  backdrop-filter: blur(4px);
}

.lightbox-panel{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgba(31,27,22,.92);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.lightbox-grid{
  height: 100%;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
}

.lightbox-media{
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lb-photo{
  width: min(920px, 100%);
  height: min(78vh, 820px);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 0;
  box-shadow: none;
}

.lightbox-body{
  padding: 56px 56px 56px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(246,243,238,.90);
}

.lb-count{
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(246,243,238,.55);
  margin-bottom: 18px;
}

.lb-title{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  color: rgba(246,243,238,.96);
}

.lb-sub{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246,243,238,.70);
}

.lb-details{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(246,243,238,.12);
  display: grid;
  gap: 12px;
}

.lb-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.lb-label{
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(246,243,238,.55);
}

.lb-value{
  font-size: 14px;
  color: rgba(246,243,238,.90);
}

.lightbox-close{
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: rgba(246,243,238,.90);
  cursor: pointer;
  opacity: .75;
}

.lightbox-close:hover{
  opacity: 1;
  transform: none;
}

.lb-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: rgba(246,243,238,.90);
  font-size: 34px;
  cursor: pointer;
  opacity: .55;
  display: grid;
  place-items: center;
}

.lb-nav:hover{
  opacity: 1;
}

.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

/* RESPONSIVE */

@media (max-width: 980px){
  .container{ width: min(var(--max), calc(100% - 40px)); }

  .hero-grid,
  .about-grid{
    grid-template-columns: 1fr;
  }

  .hero-media{
    max-width: 560px;
    margin: 0;
  }

  .hero-real{
    max-height: 560px;
  }

  .expo-inner{
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .expo-image{ justify-content: flex-start; }
  .expo-photo{ max-width: 720px; }

  .contact-grid{
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact-card{
    padding: 30px 26px 26px;
  }

  .portfolio-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Split into 2 rows: image area + scrollable text area */
  .lightbox-grid{
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;  /* top is image, bottom is content */
    height: 100%;
  }
  .lightbox-media{
    height: 55vh;
    padding: 18px;
  }
  /* Keep the photo inside its area */
  .lb-photo{
    width: 100%;
    height: 100%;
  }
    /* Keep close button always reachable */
  .lightbox-close{
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 5;
  }
  /* IMPORTANT: allow the content column to actually scroll */
  .lightbox-body{
    min-height: 0;                 /* key for grid children */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 22px 34px;
  }
  .lb-nav{
    display: grid;
    width: 44px;
    height: 44px;
    font-size: 28px;
    opacity: .75;
    background: rgba(31,27,22,.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
  }
  .lb-prev{ left: 12px; }
  .lb-next{ right: 12px; }
}

@media (max-width: 760px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .grid-one-row{ grid-template-columns: repeat(2, 1fr); }

  .footer2-top{
    flex-direction: column;
    gap: 22px;
  }

  .footer2-nav{
    flex-wrap: wrap;
    gap: 22px 26px;
  }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .grid-one-row{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }

  .expo-full{ padding: 86px 0; }
}

/* Proyectos thumbnails (you used class="project-img" in HTML) */
.project-img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(31,27,22,.12);
  box-shadow: 0 10px 28px rgba(31,27,22,.08);
  background: #e8e1d6;
}

.hero-media{
  justify-self: end;     /* key: aligns inside the grid cell */
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hero-real{
  width: 100%;
  max-width: 520px;     /* hard cap */
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.card{ overflow: hidden; }

.lb-desc{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246,243,238,.75);
}

/* =========================
   EXPOSICIONES PAGE
   ========================= */

.expo-page-hero{
  padding: 86px 0 30px;
}

.expo-page-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin: 0;
  font-size: clamp(54px, 5vw, 82px);
  line-height: 1.02;
}

.expo-page-sub{
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
  font-size: 14px;
}

.expo-page-section{
  padding: 26px 0 70px;
}

/* Current expo card */
.expo-card{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  padding: 26px;
  border: 1px solid rgba(31,27,22,.10);
  background: #fff;
  box-shadow: 0 16px 40px rgba(31,27,22,.06);
  cursor: pointer;
}

.expo-card:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(181,155,75,.18), 0 16px 40px rgba(31,27,22,.06);
}

.expo-card-media{ width: 100%; }

.expo-card-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(31,27,22,.10);
  box-shadow: 0 18px 46px rgba(31,27,22,.08);
  display: block;
}

.expo-pill{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(31,27,22,.78);
  background: rgba(181,155,75,.18);
}

.expo-card-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin: 12px 0 6px;
  font-size: 32px;
  line-height: 1.1;
}

.expo-card-kicker{
  margin: 0 0 14px;
  color: rgba(31,27,22,.60);
  font-size: 14px;
  line-height: 1.6;
}

.expo-card-desc{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 70ch;
}

.expo-card-meta{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.expo-meta-row{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.expo-meta-ico{ transform: translateY(2px); opacity: .9; }

.expo-meta-strong{
  font-size: 14px;
  color: rgba(31,27,22,.88);
}

.expo-meta-muted{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(31,27,22,.55);
}

/* Previous expos */
.expo-prev{
  padding: 0 0 90px;
}

.expo-list{
  display: grid;
  gap: 18px;
}

.expo-prev-card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(31,27,22,.10);
  background: #fff;
  box-shadow: 0 16px 40px rgba(31,27,22,.05);
  align-items: center;
}

.expo-prev-title{
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 22px;
}

.expo-prev-sub{
  margin: 0 0 10px;
  color: rgba(31,27,22,.60);
  font-size: 13px;
}

.expo-prev-desc{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 75ch;
}

.expo-prev-meta{
  display: grid;
  gap: 10px;
}

.expo-prev-strong{ font-size: 14px; color: rgba(31,27,22,.88); }
.expo-prev-muted{ margin-top: 3px; font-size: 13px; color: rgba(31,27,22,.55); }

.expo-prev-cta{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(31,27,22,.70);
}

.expo-prev-cta:hover{ color: var(--gold); }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 230;
}

.modal.is-open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(31,27,22,.72);
  backdrop-filter: blur(4px);
}

.modal-panel{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(31,27,22,.92);
  overflow: hidden;
}

.modal-grid{
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.modal-media{
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photo{
  width: min(920px, 100%);
  height: min(78vh, 820px);
  background-size: cover;
  background-position: center;
  background:
    radial-gradient(900px 560px at 30% 25%, rgba(181,155,75,.18), transparent 60%),
    linear-gradient(135deg, #6a625b, #b8a798);
  border: 1px solid rgba(246,243,238,.14);
}

.modal-body{
  padding: 56px 56px 56px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(246,243,238,.90);
}

.modal-title{
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: rgba(246,243,238,.96);
}

.modal-kicker,
.modal-text{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246,243,238,.75);
}

.modal-meta{ display: grid; gap: 14px; }

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

.btn-ghost,
.btn-solid{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
}

.btn-ghost{
  border: 1px solid rgba(246,243,238,.28);
  color: rgba(246,243,238,.92);
}

.btn-ghost:hover{
  border-color: rgba(181,155,75,.85);
  color: rgba(181,155,75,.95);
}

.btn-solid{
  border: 0;
  background: rgba(181,155,75,.95);
  color: #1f1b16;
}

.btn-solid:hover{ background: #fff; }

.modal-close{
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: rgba(246,243,238,.90);
  cursor: pointer;
  opacity: .75;
}

.modal-close:hover{ opacity: 1; }

/* Responsive */
@media (max-width: 980px){
  .expo-card{ grid-template-columns: 1fr; }
  .modal-grid{ grid-template-columns: 1fr; }
  .modal-media{ padding: 22px; }
  .modal-body{ padding: 18px 22px 30px; }
}

.icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(181,155,75,.9);
}

/* Lightbox badge (Disponible / Vendido) */
.lb-topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px; /* replaces lb-count margin-bottom */
}

.lb-count{
  margin-bottom: 0; /* since topline handles spacing */
}

.lb-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(246,243,238,.18);
  background: rgba(246,243,238,.08);
  color: rgba(246,243,238,.92);
  backdrop-filter: blur(6px);
}

.lb-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(246,243,238,.65);
}

/* Available */
.lb-badge.is-available{
  border-color: rgba(181,155,75,.42);
  background: rgba(181,155,75,.14);
  color: rgba(246,243,238,.95);
}
.lb-badge.is-available::before{
  background: rgba(181,155,75,.95);
}

/* Sold */
.lb-badge.is-sold{
  border-color: rgba(246,243,238,.22);
  background: rgba(246,243,238,.06);
  color: rgba(246,243,238,.72);
}
.lb-badge.is-sold::before{
  background: rgba(246,243,238,.55);
}

/* Lightbox CTA button */
.lb-cta{
  width: 100%;
  margin-top: 18px;
  height: 44px;
  border: 1px solid rgba(181,155,75,.70);
  background: transparent;
  color: rgba(181,155,75,.95);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.lb-cta:hover{
  background: rgba(181,155,75,.12);
  border-color: rgba(181,155,75,.92);
  transform: translateY(-1px);
}

.lb-cta-ico{
  opacity: .9;
}

/* Acquisition modal */
.acq-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 240;
}

.acq-modal.is-open{ display: block; }

.acq-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(31,27,22,.72);
  backdrop-filter: blur(4px);
}

.acq-panel{
  position: relative;
  width: min(560px, calc(100% - 44px));
  margin: 8vh auto 0;
  background: #f6f3ee;
  border: 1px solid rgba(31,27,22,.12);
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
  padding: 28px 28px 26px;
}

.acq-close{
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: rgba(31,27,22,.60);
}

.acq-close:hover{ color: rgba(31,27,22,.88); }

.acq-eyebrow{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
}

.acq-title{
  margin: 0 0 4px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: rgba(31,27,22,.92);
}

.acq-sub{
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(31,27,22,.62);
}

.acq-form{
  display: grid;
  gap: 16px;
}

.acq-field label{
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(31,27,22,.55);
}

.acq-field input,
.acq-field textarea{
  width: 100%;
  border: 1px solid rgba(31,27,22,.16);
  background: #fff;
  padding: 12px 12px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.acq-field textarea{
  resize: vertical;
  min-height: 130px;
}

.acq-field input:focus,
.acq-field textarea:focus{
  border-color: rgba(181,155,75,.75);
  box-shadow: 0 0 0 3px rgba(181,155,75,.12);
}

.acq-submit{
  margin-top: 6px;
  width: 100%;
  height: 46px;
  border: 0;
  background: #1f1b16;
  color: #fff;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.acq-submit:hover{
  background: var(--gold);
  color: #1f1b16;
  transform: translateY(-1px);
}

.acq-note{
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(31,27,22,.62);
}

/* Responsive */
@media (max-width: 520px){
  .acq-panel{
    margin-top: 6vh;
    padding: 22px 18px 18px;
  }
  .acq-title{ font-size: 24px; }
}

.lb-cta i,
.acq-submit i{
  margin-right: 10px;
  font-size: 0.95em;
}


/* --- Mobile nav (hamburger) --- */
.nav-toggle{
  line-height: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: rgba(31,27,22,.92);
  cursor: pointer;
  border-radius: 12px;

    /* THIS is the key */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;  
}

.nav-toggle span{
  width: 22px;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #1f1b16;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle{
  -webkit-tap-highlight-color: transparent;
}
/* Mobile layout */
@media (max-width: 820px){
  .header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* show the hamburger */
  .nav-toggle{ display: flex; }

  /* hide the nav by default on mobile */
  .nav{ display: none; }

  /* show it only when toggled open */
  .nav.is-open{ display: flex; }

  /* Turn the nav into a dropdown panel */
  .nav{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px 16px 18px;
    background: rgba(252, 248, 242, .96); /* adjust to your site bg */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(31,27,22,.10);
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .site-header{ position: sticky; top: 0; z-index: 50; }
  .site-header .container{ position: relative; }

  .nav.is-open{ display: flex; }

  .nav-link{
    padding: 10px 6px;
  }
}

/* Hamburger -> X when open */
.nav-toggle.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Mobile-friendly tabs: horizontal scroll */
.portfolio-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 18px;                 /* smaller gap for mobile */
  margin-top: 26px;
  padding-bottom: 10px;      /* space for active underline */
}

.portfolio-tabs::-webkit-scrollbar{
  display: none;             /* hides scrollbar on iOS/Chrome */
}

.tab{
  flex: 0 0 auto;            /* don’t shrink, stay readable */
  white-space: nowrap;       /* keep each label on one line */
}

/* Optional: make the underline sit tighter on mobile */
.tab.is-active::after{
  bottom: -10px;
}

/* Optional: reduce font slightly on small screens */
@media (max-width: 520px){
  .tab{ font-size: 10px; letter-spacing: .22em; }
}

@media (max-width: 820px){
  .portfolio-tabs{
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
}
