:root{
  --bg: #fffaf5;
  --panel: rgba(255,255,255,0.82);
  --panel-2: rgba(255,255,255,0.96);
  --text: #2d241f;
  --muted: #6d6158;
  --accent: #c99554;
  --accent-2: #f0d9a8;
  --line: rgba(0,0,0,0.08);
  --shadow: 0 14px 34px rgba(0,0,0,0.12);
  --shadow-sm: 0 10px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #fffaf5 0%, #fff 45%, #fffaf5 100%);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* Cursor */
.cursor{
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.35);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: transform .08s linear, opacity .2s ease;
}
body:hover .cursor { opacity: 1; }
.cursor.active{
  transform: translate(-50%, -50%) scale(1.25);
  background: rgba(201,149,84,0.14);
  border-color: rgba(201,149,84,0.9);
}
@media (pointer: coarse){
  .cursor { display: none; }
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav{ padding: 14px 16px; }

.nav-inner{
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo{
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text strong{
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.05;
  color: #231313;
}

.brand-text span{
  display: block;
  color: var(--muted);
  font-size: .95rem;
  margin-top: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a{
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #3b322b;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-links a:hover{
  background: rgba(201,149,84,0.12);
  color: #cc7b24;
  transform: translateY(-1px);
}

.nav-cta { padding: 9px 18px; background: var(--pino-800); color: var(--crema) !important; border-radius: 50px; font-weight: 600 !important; }

.nav-cta:hover{
  background: linear-gradient(135deg, #b57e3e, #d8b36d);
  color: #fff !important;
}

/* CONTENIDO */
.content-container{
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 24px 18px 42px;
  display: grid;
  grid-template-columns: 1fr; /* Por defecto 1 columna para móviles */
  gap: 28px;
  align-items: start;
}

.left-content{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.main-title{
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  color: #2b1d11;
}

.title,
.subtitle{
  margin: 14px 0 8px;
  font-size: 1.03rem;
  color: #8f6118;
  font-weight: 700;
  letter-spacing: .01em;
}

.services,
.additional-services{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.services li,
.additional-services li{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: .98rem;
  box-shadow: var(--shadow-sm);
}

.services li::before,
.additional-services li::before{
  content: "✦";
  color: var(--accent);
  font-size: .95rem;
  line-height: 1;
}

/* GALERÍA */
.right-content{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Optimizado con auto-fill */
  gap: 16px;
  align-content: start;
}

.photo-container{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.14);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}

.photo-container:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 32px rgba(0,0,0,0.18);
}

.photo-container::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.photo-container:hover::after{ opacity: 1; }

.photo-container::before{
  content: "Ver";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .82rem;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.photo-container:hover::before{
  opacity: 1;
  transform: translateY(0);
}

.photo-container img,
.photo-container video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

/* MODAL */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(8,8,8,0.88);
  z-index: 10000;
}

.modal-content{
  position: relative;
  width: min(1100px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.98);
  border-radius: 24px;
  padding: 14px 14px 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}

.close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #121212;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0;
}

.modal-image,
.modal-video{
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #000;
  display: none;
}

.arrow-buttons{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.arrow-button{
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  background: #181818;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: background .18s ease, transform .18s ease;
}
.arrow-button:hover{
  background: #313131;
  transform: translateY(-1px);
}
.image-counter{
  margin-top: 8px;
  color: #555;
  font-size: .95rem;
  font-weight: 700;
}

/* MEDIA QUERIES PARA PANTALLAS GRANDES (PC / TABLET HORIZONTAL) */
@media (min-width: 992px) {
  .content-container {
    grid-template-columns: 380px 1fr; /* Vuelve a dos columnas en pantallas de escritorio */
  }
  .left-content {
    position: sticky;
    top: 92px; /* Mantiene la barra fija solo cuando hay espacio en PC */
  }
}

/* MINI AJUSTES PARA PANTALLAS MUY CHICAS */
@media (max-width: 480px) {
  .nav-inner {
    justify-content: center; /* Centra el logo y links en celulares muy angostos */
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
  .content-container {
    padding: 14px 10px 30px; /* Reduce márgenes laterales en móviles */
  }
  .right-content {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Las fotos se adaptan en columnas más chicas si no hay espacio */
  }
}
