
@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&family=Sen:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Sen:wght@400..800&display=swap');
 /* ===============================================nav  */
 
@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&family=Sen:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Sen:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* =========================
   BASE
========================= */
:root {
  --bg-main: #111111;
  --bg-soft: #181818;
  --bg-panel: rgba(18, 18, 18, 0.72);
  --bg-panel-strong: rgba(10, 10, 10, 0.82);
  --text-main: #f4f1ea;
  --text-soft: rgba(244, 241, 234, 0.8);
  --text-dim: rgba(244, 241, 234, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(117, 35, 18, 0.9);
  --accent: #4b1208;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --content-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.45);
}

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

a,
i {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:target {
  scroll-margin-top: 90px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
label,
nav a,
#navbarMenu a,
.boton {
  font-family: "Sen", sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2 {
  font-size: clamp(1.9rem, 2vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  line-height: 1.7;
}


.section-heading {
  z-index: 9000;
  width: min(100%, 920px);
  margin: 0 auto 3rem;
  text-align: center;
  display: grid;
  gap: 0.8rem;
}

.section-intro,
.contact-intro,
#gallery_desc {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 780px;
  margin: 0 auto;

}

/* =========================
   MENU / HEADER / FOOTER
========================= */

.container_top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin-bottom: 2px;
  background: transparent;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

#container_top {
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

nav {
  display: flex;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-strong);
  perspective: 800px;
}

#navbarMenu {
  gap: 40px;
  text-align: center;
}

nav a,
#navbarMenu a {

  text-align: center;
  color: #ffffff;
  display: flex;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

#home {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 10vw, 14rem);
}

#home a {
  flex: 0 0 auto;
}

#home {
  display: flex;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-strong);
}
footer a,
#navbarMenu a {
  color: #ffffff;
  width: 100%;
  display: flex;
  justify-content: center;
}

#div_menubotom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1.2rem;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: transparent;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

#foot_bar {
  border-top: 1px solid var(--line-strong);
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

#menu_hamburguer {
  display: none;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  width: 100%;
}

#btnHamburguesa {
  max-width: 50px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.62);
  filter: drop-shadow(2px 4px 6px black);
}

#btnHamburguesa:hover {
  font-size: 2.3rem;
  color: #ffffff;
}

#navbarMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  z-index: 300000;
  visibility: hidden;
}

.menu-overlay {
  padding-top: 10px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
  backdrop-filter: blur(10px);
}

.borroso {
  filter: none;
}

/* =========================
   GLOBAL LAYOUT
========================= */
main {
  position: relative;
  z-index: 1;
}

.panel {
  min-height: 100vh;
  position: relative;
}

section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero-panel,
.hero-section {
  min-height: 100vh;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#cont_background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.56)),
    radial-gradient(circle at left center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.52) 60%);
  z-index: 1;
  pointer-events: none;
}

/* =========================
   BUTTONS
========================= */
.boton {
  font-size: clamp(0.85rem, 1vw, 1.25rem);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.95rem 1.4rem;
  margin: 0.95rem 1.4rem;
  font-weight: 400;
  color: var(--bg-main);
  background-color: var(--text-main);
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  min-width: 170px;
  transition: all 0.3s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boton:hover {
  transform: translateY(-2px);
  cursor: pointer;
}

.boton-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: clamp(0.85rem, 1vw, 1.25rem);
}



/* =========================
   PIXEL EFFECT
========================= */
.pixel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.pixel-overlay div {
  background-color: #111111;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* =========================
   HERO
========================= */
.hero_wraper {
  width: 100%;

  margin: 0 auto;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}


.d_grid {
  justify-content: center;
  text-align: center;
}

.hero-content {
  width: min(100%, 720px);
  display: grid;
  gap: 1.1rem;
  text-align: left;
  justify-items: start;
  z-index: 5;
}


.tagline.hero-title {
 /* line-height: 0.95;
  letter-spacing: 0.08em;*/
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  color: var(--text-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Sen", sans-serif;
}

.hero-copy {
  max-width: 580px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}

/* =========================
   SELECTED WORK
========================= */
#init {
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.82), rgba(14, 14, 14, 0.92)),
    rgba(0, 0, 0, 0.2);
}
/*=================================SECTION 0 la Galeria*/
#init{  
  height: fit-content;
  background-color: #252525;
  }
.section-gallery {
  padding: 0 0 0 2rem;
  height: 100vh; /* altura completa de la ventana */
}
.wrapp {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: max-content;
  padding: 1rem;
}
.d_grid0 {
  display: flex;
  height: 100%;
}

.d_sub_grid0 {
  width:30%; /* o width: 25%; si quieres proporcional */
  min-width: 200px; /* opcional, para que no se haga muy pequeño */
  height: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: 0rem 2rem 0rem 0rem;
  height: 100vh;
  /*background-image: url(/images/selfportrait/0-3.jpg);*/

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ocultar scrollbar en la mayoría de navegadores */
body::-webkit-scrollbar #gallery {
  display: none; /* Chrome, Safari */
}
body #gallery {
  -ms-overflow-style: none; /* IE, Edge */
  scrollbar-width: none; /* Firefox */
}

.selected-work-layout {
  margin-top: 90px;
}

#gallery {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-y: scroll; /* scroll solo aquí */
  height: 100vh; /* ocupar toda la sección sticky */
  padding: 1rem;
}


.gallery_grid img,
.gallery-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.gallery_grid {
  column-count: 4;
  column-gap: 1rem;
  display: block;
}

.gallery_grid img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
  object-fit: contain;
}

.gallery_grid img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery_grid img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

#previewImage {
  max-width: 350px;
}

#popupOverlay {
  position: fixed;
  inset: 3rem;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

#popupOverlay.active {
  display: flex;
}

#popupImage {
  max-width: 85%;
  max-height: 85vh;
  object-fit: contain;
}

#prevBtn,
#nextBtn {
  position: absolute;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
}

#prevBtn {
  left: 2rem;
}

#nextBtn {
  right: 2rem;
}

@media (max-width: 768px) {
  #popupImage {
    max-width: 95%;
    max-height: 80vh;
  }

  #prevBtn,
  #nextBtn {
    font-size: 2rem;
  }

  #prevBtn {
    left: 1rem;
  }

  #nextBtn {
    right: 1rem;
  }
}

/*ABOUT - gallery_1*/
#gallery_1.about-layout {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: center;
}

.about-image-wrap {
  height: 460px;
  transform: translateX(40px);
  z-index: 2;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about_text {
  min-height: 520px;
  padding: 4rem 3rem 4rem 5rem;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* =========================
   GALLERY OVERLAY
========================= */
#popupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 2rem;
}

#popupImage {
  max-width: min(88vw, 1200px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

#prevBtn,
#nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#prevBtn:hover,
#nextBtn:hover {
  transform: translateY(-50%) scale(1.1);
}

#prevBtn {
  left: 2rem;
}

#nextBtn {
  right: 2rem;
}

/* =========================
   ABOUT
========================= */
#about {

  background-size: cover;
  background:
    linear-gradient(to bottom, rgba(245, 243, 239, 0.95), rgba(230, 226, 220, 0.96));
  color: #171717;
  text-shadow: none;
  flex-direction: column;
  padding: 5rem 2rem;
}



#about,
#about .section-intro,
#about p,
#about li {
  color: rgba(20, 20, 20, 0.86);
}

#gallery_1.about-layout {
  width: min(100%, 1150px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: center;
}

.about-image-wrap {
  height: 430px;
  transform: translateX(70px);
  z-index: 2;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about_text {
  min-height: 500px;
  padding: 4rem 3rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  #about {
    padding: 3rem 1.2rem 4rem !important;
  }

  #about .section-heading h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  #gallery_1.about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
  }

  .about-image-wrap {
    width: 100%;
    max-width: 360px;
    height: 320px;
    transform: none;
    margin: 0 auto;
    overflow: hidden;
  }

  .about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about_text {
    width: 100%;
    padding: 0;
    background: transparent;
    text-align: left;
    gap: 1rem;
  }

  .about-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
  }

  .about_text p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
  }

  .about-highlights {
    font-size: 0.9rem;
    line-height: 1.6;
    gap: 0.4rem;
  }

  .about_text .boton {
    width: 100%;
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
}

/*========================================
  Areas of Expertise
========================================*/
#work {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 300px 1fr;
  row-gap: 0;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  position: relative;
  padding: 4rem 2rem;
}

#work::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.45);
  transform: scale(1.1);
  background-color: rgba(37, 37, 37, 0.35);
  z-index: 0;
  pointer-events: none;
}

.work-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(100%, 820px);
  margin:rem;
}

.work-heading h2 {
  margin-bottom: 0.8rem;
}

.work-heading .section-intro {
  max-width: 680px;
  margin: 0 auto;
}

#carrusel-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#carrusel {
  position: relative;
  width: 100%;
  height: 540px;
  perspective: 1000px;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(340px, 56vw, 760px);
  aspect-ratio: 1.25 / 1;
  transform: translate(-50%, -50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.5s ease;
}

#carousel-title {
  margin-top: 0.8rem;
  text-align: center;
  color: white;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: #ffffff;
}

#prev {
  left: -20vw;
}

#next {
  right: -20vw;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #work {
    min-height: auto;
    padding: 3rem 0 3rem;
  }

  .work-heading {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .work-heading .section-intro {
    display: none;
  }

  #carrusel-container {
    width: 100%;
    padding: 0;
  }

  #carrusel {
    height: 260px;
    perspective: none;
    overflow: hidden;
  }

  .carousel-item {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 260px;
    min-height: 260px;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
  }

  #carousel-title {
    margin-top: 0.9rem;
    padding: 0 1rem;
    letter-spacing: 0.14em;
  }

  #prev,
  #next {
    top: 80%;
    font-size: 1.7rem;
  }

  #prev {
    left: 0.75rem;
  }

  #next {
    right: 0.75rem;
  }
}
/* =========================
   CONTACT
========================= */
#contact {
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.72), rgba(15, 15, 15, 0.92));
  flex-direction: column;
}

#contact .section-heading {
  margin-bottom: 2.4rem;
}

form {
  margin-top: 0;
  width: min(100%, 880px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 2vw, 2.2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.input-box {
  position: relative;
  display: inline-block;
  width: 100%;
}

textarea,
input {
  overflow: hidden;
  resize: none;
  margin-bottom: 2rem;
  width: 100%;
  padding: 18px 12px 12px;
  font-size: 1rem;
  line-height: 20px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  background: none;
  color: #ffffff;
  transition: border-color 0.25s ease;
}

textarea:focus,
input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.82);
}

label {
  position: absolute;
  left: 10px;
  top: 14px;
  padding: 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  transition: 0.3s ease;
  pointer-events: none;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.input-box input:focus + label,
.input-box textarea:focus + label,
.input-box input:checked + label,
.input-box.has-value label,
.input-box select:focus + label {
  transform: translateY(-18px);
  font-size: 10px;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.62);
  z-index: 9999;
}

.popup.active {
  display: flex;
}

.innerpop {
  position: relative;
  background: #1d1d1d;
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closeBtn {
  background: transparent;
  border: none;
}

.closeBtn i {
  color: #ffffff;
}

.closeBtn i:hover {
  font-size: 1.4rem;
}

.innerpop .closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* =========================
   FLOATING MOBILE BUTTON
========================= */
#mobile-menu-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 90999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
}

#mobile-menu-btn.show {
  opacity: 1;
}

#mobile-menu-btn i {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.5rem;
}

#mobile-menu-btn i:hover {
  color: rgb(255, 255, 255);
  transform: scale(1.08);
}


/* =========================================
   MOBILE SELECTED WORK COLLAPSE
========================================= */
.mobile-gallery-toggle-wrap {
  display: none;
}

@media (max-width: 768px) {
  .gallery_grid.is-collapsed img:nth-child(n+5) {
    display: none;
  }

  .mobile-gallery-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 0.85rem 0 0.25rem;
  }

  .mobile-gallery-toggle {
    min-width: 96px;
    padding: 0.38rem 0.65rem;
    letter-spacing: 0.12em;
  }

}


/* =========================================
   MOBILE FINAL LAYOUT
========================================= */
@media (max-width: 768px) {

  /* ---------- GENERAL ---------- */
  section {
    min-height: auto;
    padding: 0;
  }

  .panel {
    min-height: auto;
  }

  /* ---------- HERO ---------- */
  #sec_1 {
    min-height: 100vh;
    padding: 5.5rem 1rem 3rem;
    display: flex;
    align-items: flex-end;
  }

  .hero-content {
    width: 100%;
    max-width: 260px;
    gap: 0.45rem;
    padding-bottom: 2.2rem;
  }


  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.4rem;
  }

  .hero-actions .boton {
    width: auto;
    min-width: 108px;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.12em;
    border-width: 1px;
  }

  /* ---------- SELECTED WORK ---------- */
  #init {
    min-height: auto;
    height: auto;
    padding: 0.75rem;
    background: #050505;
  }

  .section-gallery {
    min-height: auto;
    height: auto;
    display: block;
  }

  .d_grid0,
  .selected-work-layout.d_grid0 {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0.75rem;
  }

  .d_sub_grid0,
  .selected-work-intro .d_sub_grid0 {
    width: 100%;
    min-width: 100%;
    height: 320px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .wrapp {
    width: 100%;
    margin: 0;
    min-height: 320px;
    padding: 0.9rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    gap: 0.35rem;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.18));
  }


  #gallery_desc {
    margin: 0;
    max-width: 100%;
  }

  .explore-btn {
    min-width: 0;
    width: auto;
    padding: 0.35rem 0.55rem;
  }

  #gallery {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 1.25rem;
  }

  .gallery_grid {
    column-count: 3;
    column-gap: 1rem;
    display: block;
  }
  
  .gallery_grid img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    break-inside: avoid;
    object-fit: contain;
  }

  /* SOLO MOSTRAR 4 */
  .gallery_grid.is-collapsed img:nth-child(n+5) {
    display: none;
  }

  /* BOTÓN */
  .mobile-gallery-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.7rem;
  }

  .mobile-gallery-toggle {
    padding: 0.35rem 0.6rem;
    min-width: 90px;
    letter-spacing: 0.12em;
  }
  
    /* ---------- CONTACT ---------- */
  #contact {
    padding: 3.2rem 1rem 6.5rem;
    justify-content: center;
  }

  #contact .section-heading {
    margin-bottom: 1rem;
  }


  .contact-intro {

    max-width: 240px;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 2rem;  
   }

  textarea,
  input {

    padding: 14px 6px 8px;
    margin-bottom: 1.3rem;
  }

  label {
    left: 4px;
    top: 12px;

    letter-spacing: 0.12em;
  }

  form .boton {
    min-width: 82px;
    padding: 0.3rem 0.5rem;
  
  }
}
/* =========================================
   FIX HAMBURGER MENU MOBILE
========================================= */
@media (max-width: 768px) {

  #menu_hamburguer {
    display: flex !important;
    visibility: visible !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 9999;
  }

  #btnHamburguesa {
    display: flex !important;
    opacity: 1 !important;
  }

  #div_menutop {
    display: none !important;
  }
}


/* =========================================
   MOBILE FINAL LAYOUT
========================================= */
@media (min-width: 769px) and (max-width: 1600px) {

  /* ---------- SELECTED WORK ---------- */
  #init {
    min-height: auto;
    height: auto;
    padding: 0.75rem;
    background: #050505;
  }

  .section-gallery {
    min-height: auto;
    height: auto;
    display: block;
  }

  .d_grid0,
  .selected-work-layout.d_grid0 {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0.75rem;
  }

  .d_sub_grid0,
  .selected-work-intro .d_sub_grid0 {
    width: 100%;
    min-width: 100%;
    height: 320px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .wrapp {
    width: 100%;
    margin: 0;
    min-height: 320px;
    padding: 0.9rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    gap: 0.35rem;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.18));
  }


  #gallery_desc {
    margin: 0;
    max-width: 100%;
  }

  .explore-btn {
    min-width: 0;
    width: auto;
    padding: 0.35rem 0.55rem;
  }

  #gallery {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 1.25rem;
  }

  .gallery_grid {
    column-count: 3;
    column-gap: 1rem;
    display: block;
  }
  
  .gallery_grid img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    break-inside: avoid;
    object-fit: contain;
  }
 /* BOTÓN */
  .mobile-gallery-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.7rem;
  }

  .mobile-gallery-toggle {
    padding: 0.35rem 0.6rem;
    min-width: 90px;
    letter-spacing: 0.12em;
  }

     /* ---------- CONTACT ---------- */


  textarea,
  input {

    padding: 14px 6px 8px;
    margin-bottom: 1.3rem;
  }

  label {
    left: 4px;
    top: 12px;

    letter-spacing: 0.12em;
  }

  form .boton {
    min-width: 82px;
    padding: 0.3rem 0.5rem;
  
  }
}

@media (max-width: 768px) {
  .section-gallery {
    padding-left: 0 !important;
  }
}