@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Lora&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  background-color: #f5f0e6;
  color: #333;
}

header {
  background-color: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  transition: top 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header.hide {
  top: -100px;
}

header.transparent {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #7a6c5d;
  font-weight: bold;
}

.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #e8e2d6;
}

.hero h1 {
  font-size: 3em;
  color: #7a6c5d;
}

.hero p {
  font-size: 1.2em;
  color: #555;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- ABOUT ME ESTÉTICO --- */
.about {
  background-color: #fff;
  padding: 80px 40px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left; /* para que el texto no quede centrado */
}

/* Imagen ocupa 40%, texto 60% en desktop */
.about-img {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}
.about-img img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.about-text {
  flex: 1 1 60%;
  font-family: 'Lora', serif;
  color: #444;
  font-size: 1.1em;
  line-height: 1.8;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4em;
  margin-bottom: 20px;
  color: #7a6c5d;
}

/* --- COLECCIONES --- */
.collections {
  padding: 60px 40px;
  text-align: center;
}

.collections h2 {
  color: #7a6c5d;
}

.filters {
  margin-bottom: 30px;
}

.filters button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 5px;
}

.filters button:hover {
  background-color: #e0dcd3;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.item {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.item:hover {
  transform: scale(1.05);
}

/* --- CONTACTO --- */
.contact {
  padding: 60px 40px;
  background-color: #fff;
  text-align: center;
}

.contact h2 {
  color: #7a6c5d;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
}

.contact button {
  background-color: #7a6c5d;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #5e5348;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 20px;
  color: #aaa;
}

.footer-redes {
  margin-top: 10px;
}

.footer-redes a {
  margin: 0 10px;
  color: #7a6c5d;
  font-size: 1.5em;
  transition: transform 0.2s;
}

.footer-redes a:hover {
  color: #5e5348;
  transform: scale(1.2);
}

/* --- HEADER EFECTO --- */
header.transparent {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-redes a {
  margin-left: 15px;
  color: #7a6c5d;
  font-size: 1.2em;
  transition: transform 0.2s;
}

.header-redes a:hover {
  color: #5e5348;
  transform: scale(1.2);
}

.collections {
  padding: 60px 40px;
  text-align: center;
  background-color: #f5f0e6;
}

.collections h2 {
  color: #7a6c5d;
}

.collections-desc {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555;
}

.grid-collections {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}


.collection-box {
  text-decoration: none;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  overflow: hidden;                 /* para que la imagen recorte bien */
  transition: transform .28s ease, box-shadow .28s ease;
}

.collection-box img {
  display: block;
  width: 100%;
  height: 260px;                    /* <— aumenta el alto */
  object-fit: cover;    
}

.collection-box h3 {
  color: #7a6c5d;
  font-family: 'Playfair Display', serif;
}

.collection-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.collections-entry {
  padding: 80px 20px;
  text-align: center;
  background-color: #fff;
}

.collections-entry h2 {
  font-family: 'Playfair Display', serif;
  color: #7a6c5d;
  font-size: 2.5em;
  margin-bottom: 30px;
}

.collection-link img {
  max-width: 600px;
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-link img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.collections-entry-overlay {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px 0;
}

.collection-background {
  width: 90%;
  max-width: 800px;
  height: 100%;
  background-image: url('../img/mlc-pot.jpeg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collection-background h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 2.8em;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.collection-overlay-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.collection-background {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.collections-entry-overlay:hover .collection-background {
  transform: scale(1.02);
  filter: brightness(0.85);
  
}

.contactos{
  font-family: 'Playfair Display', serif'
}

/* ==== COLLECTION CARDS (más grandes) ==== */
.grid-collections{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* antes 220px */
  gap:32px;                     /* más espacio entre cards */
  max-width:1200px;              /* ancho total mayor */
  margin:40px auto;              /* más aire arriba y abajo */
  padding:0 20px;                /* respiro lateral */
}

.collection-card{
  position:relative;
  display:block;
  border-radius:18px;            /* bordes un poco más suaves */
  overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,.1);
  background:#ddd;
  transition: transform .25s ease, box-shadow .25s ease;
}

.collection-card .card-media{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;           /* proporción fija */
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s ease, filter .45s ease;
}

.collection-card .card-gradient{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 20%, rgba(0,0,0,0) 60%);
  pointer-events:none;
}

.collection-card .card-title{
  position:absolute; 
  left:20px; bottom:18px;        /* más aire interno */
  font-family:'Playfair Display', serif;
  font-size:1.5rem;              /* título más grande */
  color:#fff; 
  text-shadow:0 3px 12px rgba(0,0,0,.5);
}

.collection-card:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow:0 10px 28px rgba(0,0,0,.15);
}
.collection-card:hover .card-media{
  transform: scale(1.06);
  filter: brightness(.9);
}

/* --- ABOUT: forzar imagen a la izquierda en desktop --- */
section.about .about-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;   /* deja aire entre imagen y texto */
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;                 /* evita centrado del texto */
}

section.about .about-img{
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-start;      /* clave: saca el centrado de la imagen */
}

section.about .about-img img{
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

section.about .about-text{
  flex: 1 1 60%;
  font-size: 1.1em;
  line-height: 1.8;
}

/* Logo oculto por defecto */
.logo {
  display: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #6b5a4c;
  text-decoration: none;
}

.masonry {
  max-width: 1200px !important;
  margin: 0 auto 48px !important;
  column-gap: 22px !important;
  padding: 0 12px !important;
}

/* === Ajuste final para imágenes de colecciones === */
.masonry img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  max-height: 380px; /* Evita que se hagan gigantes en vertical */
  display: block;
}

/* En tablets y desktop un poco más grandes */
@media (min-width: 768px) {
  .masonry img {
    max-height: 420px;
  }
}

@media (min-width: 1024px) {
  .masonry img {
    max-height: 480px;
  }
}



/* Solo en móvil el logo aparece */
@media (max-width: 900px) {
  .logo {
    display: block;
  }

  /* Ajustar el nav en mobile */
  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
}





/* En mobile, vuelve a columna y centra */
@media (max-width: 768px){
  section.about .about-container{
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  section.about .about-img{ justify-content: center; }
  section.about .about-text{ font-size: 1em; padding: 0 10px; }
}


/* --- RESPONSIVE --- */
@media (min-width: 1200px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
  }

  .header-redes {
    margin-top: 7px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-img img {
    max-width: 300px;
    width: 100%;
  }

  .about-text {
    font-size: 1em;
    padding: 0 10px;
  }

  .about-text h2 {
    font-size: 2em;
  }
  .grid-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* antes 220px */
    gap: 32px;                                                 /* antes 30px */
    max-width: 1200px;                                         /* antes 1000px */
    margin: 0 auto;
  }
}

/* ==== MOBILE FIX PACK ==== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;              /* evita scroll horizontal */
  -webkit-text-size-adjust: 100%;  /* evita zoom raro en iOS */
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

/* imágenes siempre fluidas */
img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* header sticky que no tape contenido y respete notch en iOS */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  padding-top: calc(20px + env(safe-area-inset-top, 0));
}

/* hero/portadas: evitar 100vh que corta en iOS */
.hero,
.collection-hero {
  min-height: 60vh;
  height: auto;                     /* en vez de height: 90vh; */
  padding: 64px 20px;
  background-size: cover;
  background-position: center;
}

/* cards de collections: que nunca se “salgan” del grid */
.grid-collections {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  padding: 0 16px;
}

/* caja de cada card: permitir que el contenido envuelva */
.collection-box,
.item {
  min-width: 0;              /* clave para que los títulos hagan wrap */
  overflow: hidden;          /* previene desbordes visuales */
}

/* tipografía de títulos dentro de cards en pantallas chicas */
.collection-box h3,
.item p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.2;
}

/* masonry mobile: 1 columna y sin cortes */
.masonry { columns: 1 !important; column-gap: 16px; padding: 0 12px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; }
.masonry img { width: 100%; height: auto; aspect-ratio: auto; }

/* lightbox seguro en móviles */
.lightbox img { max-height: 80vh; max-width: 100vw; }

/* menú: que pueda envolver y no se corte */
.menu {
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 12px;
}

/* secciones con padding cómodo en móvil */
.about, .collections, .contact { padding: 48px 16px; }

/* evita que cajas internas fuercen ancho y provoquen “corte” */
.about-container, .about-text { min-width: 0; }

/* iOS “vh” fix (opcional si usabas 100vh en algún lado) */
@supports (-webkit-touch-callout: none) {
  .hero, .collection-hero { min-height: -webkit-fill-available; }
}

/* breakpoints suaves */
@media (max-width: 768px) {
  .about-container { flex-direction: column; gap: 28px; }
  .about-img img { max-width: 320px; margin: 0 auto; }
}

/* ——— FIX “franja” derecha en móvil ——— */

/* 1) Asegurar que nada provoque overflow horizontal */
html, body { width:100%; max-width:100%; overflow-x:hidden; }

/* 2) Si la hero está dentro de un wrapper con max-width, la fuerzo a sangrar a ancho completo */
.hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;   /* sangrado total */
  margin-right: -50vw;
  width: 100vw;         /* usar el ancho real de la ventana */
  max-width: 100vw;
}

/* 3) Evitar problemas de “vh” en iOS */
.hero { min-height: 60svh; height:auto; }  /* en lugar de 90vh fijos */

/* 4) Safe areas (iPhone con notch) */
@supports (padding: max(0px)) {
  body { padding-right: env(safe-area-inset-right, 0); }
}


/* ==== NAV centrado en móviles ==== */
@media (max-width: 768px) {
  #main-header nav {
    display: flex;
    justify-content: center;
  }

  #main-header .menu {
    display: flex;
    flex-wrap: wrap;      /* que baje a dos líneas si no entra */
    justify-content: center;
    gap: 18px;            /* espacio más equilibrado */
    margin: 0;
    padding: 8px 0;
    width: 100%;
  }

  #main-header .menu li {
    list-style: none;
    flex: 0 1 auto;
    text-align: center;
  }

  #main-header .menu a {
    font-size: clamp(15px, 4vw, 17px);
    text-decoration: none;
    color: #6b5a4c;       /* el marrón que usás */
    white-space: nowrap;  /* que no corte palabras */
  }
}


/* ====== NAV Hamburguesa ====== */

/* Accesibilidad para texto oculto */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,.06);
}

/* Icono (3 barras) */
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: #7a6c5d;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after  { transform: translateY(4px); }

/* Estado abierto: animación a “X” */
#main-header.open .nav-toggle .bars { background: transparent; }
#main-header.open .nav-toggle .bars::before { transform: rotate(45deg); }
#main-header.open .nav-toggle .bars::after  { transform: rotate(-45deg); }

/* Contenedor nav */
.nav-bar{
  display:flex; align-items:center; justify-content:center;
  gap: 16px;
}

/* ===== Desktop ===== */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .menu{
    list-style:none; display:flex; gap:40px; margin:0; padding:0;
    justify-content:center; align-items:center;
  }
}

/* ===== Mobile ===== */
@media (max-width: 900px){
  .nav-toggle{ display:block; margin-left: 8px; }

  /* El menú colapsa bajo el header, ocupa ancho completo */
  .menu{
    position: absolute;
    top: 100%; left: 0; right: 0;
    list-style: none;
    margin: 0; padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 columnas prolijas */
    gap: 10px 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    z-index: 9;
  }
  /* Abrir */
  #main-header.open .menu{ max-height: 320px; } /* ajustá si tenés más ítems */

  .menu li{ min-width: 0; }
  .menu a{
    display:block; text-align:center;
    padding: 10px 6px;
    border-radius: 10px;
    color: #6b5a4c; text-decoration: none;
    font-size: 16px;
    background: #f8f6f2;
  }
  .menu a:active{ transform: translateY(1px); }

  /* Evitar que nada empuje el layout en móvil */
  #main-header, #main-header nav, #primary-menu{ width:100%; max-width:100%; }
}

/* Respeta usuarios con “reduced motion” */
@media (prefers-reduced-motion: reduce){
  .menu, .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    transition: none !important;
  }
}

/* Centrar solo la imagen del Process sin tocar el texto */
.about-container img[alt="Process"] {
  display: block;
  margin: 0 auto;         /* 👈 centra la imagen */
  max-width: 450px;       /* 🔽 achicada, ajustá el valor si querés */
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Versión móvil: imagen del Process más chica pero centrada */
@media (max-width: 768px) {
  .about-container img[alt="Process"] {
    max-width: 300px;   /* 🔽 más chica en pantallas chicas */
    margin: 0 auto;     /* sigue centrada */
  }
}



