/* === GIVE YOUR GLORY FONT ===
   Descarga la fuente de https://www.dafont.com/give-your-glory.font
   y coloca el archivo .ttf en la carpeta /fonts/ con el nombre GiveYourGlory.ttf
*/
@font-face {
  font-family: 'Give Your Glory';
  src: url('../fonts/GiveYourGlory.ttf') format('truetype'),
       url('../fonts/GiveYourGlory.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sidebar-w: 36vw;
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #999999;
  --border: rgba(0, 0, 0, 0.07);
  --font-hand: 'Give Your Glory', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 3.5rem 3rem;
  background: var(--bg);
  z-index: 10;
  border-right: 1px solid var(--border);
}

.side-nav {
  display: flex;
  gap: 2.5rem;
}

.side-nav a {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.side-nav a:hover { color: var(--text); }

.sidebar-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: 'Caveat', var(--font-hand), cursive;
  font-size: clamp(3.2rem, 5vw, 6rem);
  line-height: 1.05;
  color: var(--text);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.brand-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-bottom: 1.2rem;
}

.brand-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 3rem;
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-links {
  display: flex;
  gap: 1.3rem;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

.social-links a:hover { color: var(--text); }

.sidebar-copy {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* btn-ghost — used in contacto.html form */
.btn-ghost {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
  background: var(--bg);
}

/* ── COLLECTION BLOCKS ── */
.coll-block {
  padding: 8rem 5rem 2rem 6rem;
}

.coll-header {
  margin-bottom: 7rem;
}

.coll-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.coll-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 2.2rem;
  line-height: 1;
}

.coll-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 520px;
}

/* ── GALLERY WALL ── */
.wall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 2.5rem;
  row-gap: 0;
  align-items: start;
}

.art {
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
}

.art img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.art:hover img { transform: scale(1.03); }

/* ── Collection 2 layout ── */
.c2-1 { grid-column: 1 / 9; grid-row: 1; margin-bottom: 14rem; }
.c2-2 { grid-column: 1 / 6; grid-row: 2; margin-bottom: 9rem; }
.c2-3 { grid-column: 6 / 11; grid-row: 2; margin-top: 12rem; margin-bottom: 9rem; }
.c2-4 { grid-column: 3 / 10; grid-row: 3; margin-bottom: 9rem; }

/* ── Collection 1 layout ── */
.c1-02 { grid-column: 1 / 11; grid-row: 1; margin-bottom: 16rem; }
.c1-09 { grid-column: 1 / 6;  grid-row: 2; margin-bottom: 12rem; }
.c1-01 { grid-column: 6 / 11; grid-row: 2; margin-top: 8rem; margin-bottom: 12rem; }
.c1-03 { grid-column: 1 / 5;  grid-row: 3; margin-bottom: 14rem; }
.c1-05 { grid-column: 5 / 11; grid-row: 3; margin-top: 5rem; margin-bottom: 14rem; }
/* Tres rosas en fila */
.c1-06 { grid-column: 1 / 4;  grid-row: 4; margin-bottom: 16rem; }
.c1-08 { grid-column: 4 / 7;  grid-row: 4; margin-top: 5rem; margin-bottom: 16rem; }
.c1-04 { grid-column: 7 / 10; grid-row: 4; margin-bottom: 16rem; }
/* Cierre */
.c1-07 { grid-column: 2 / 9;  grid-row: 5; margin-bottom: 8rem; }

/* ── ABOUT ── */
.about-section {
  padding: 10rem 5rem 8rem 6rem;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text .coll-eyebrow { margin-bottom: 1rem; }
.about-text .coll-title { margin-bottom: 3rem; }

.about-text p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-img {
  position: sticky;
  top: 4rem;
}

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

/* ── FOOTER ── */
footer {
  padding: 2.5rem 5rem 2.5rem 6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

.footer-social a:hover { color: var(--text); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  transition: color 0.25s;
}

.lightbox-close:hover { color: var(--text); }

/* ── CONTACTO PAGE (used by contacto.html) ── */
.btn-ghost {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--text);
  background: transparent;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.contact-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.contact-page-wrap {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
  padding: 10rem 5rem 8rem 6rem;
}

.contact-page-wrap .coll-title { margin-bottom: 1.5rem; }

.contact-intro-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 4rem;
}

.contact-intro-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 0.7rem 0;
  font-size: 1rem;
  font-family: var(--font-serif);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.8rem;
  resize: vertical;
  min-height: 120px;
  margin-top: 0.2rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text);
}

.form-submit { margin-top: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 42vw; }
  .coll-block { padding: 7rem 4rem 2rem 5rem; }
  .about-section { padding: 8rem 4rem 6rem 5rem; }
  footer { padding: 2rem 4rem 2rem 5rem; }
  .contact-page-wrap { padding: 8rem 4rem 6rem 5rem; }

  /* Switch to 6-column grid to avoid column-gap overflow */
  .wall { grid-template-columns: repeat(6, 1fr); column-gap: 1.5rem; }
  .c2-1 { grid-column: 1 / 7; }
  .c2-2 { grid-column: 1 / 4; }
  .c2-3 { grid-column: 4 / 7; margin-top: 5rem; }
  .c2-4 { grid-column: 2 / 6; }
  .c1-02 { grid-column: 1 / 7; }
  .c1-09 { grid-column: 1 / 4; }
  .c1-01 { grid-column: 4 / 7; margin-top: 4rem; }
  .c1-03 { grid-column: 1 / 4; }
  .c1-08 { grid-column: 3 / 7; margin-top: 3rem; }
  .c1-06 { grid-column: 1 / 3; }
  .c1-05 { grid-column: 3 / 5; margin-top: 2rem; }
  .c1-04 { grid-column: 5 / 7; }
  .c1-07 { grid-column: 1 / 7; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { position: static; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 48vw; }
  .wall { grid-template-columns: repeat(6, 1fr); }
  .c2-1 { grid-column: 1 / 7; }
  .c2-2 { grid-column: 1 / 4; }
  .c2-3 { grid-column: 4 / 7; margin-top: 5rem; }
  .c2-4 { grid-column: 2 / 6; }
  .c1-02 { grid-column: 1 / 7; }
  .c1-09 { grid-column: 1 / 4; }
  .c1-01 { grid-column: 4 / 7; margin-top: 4rem; }
  .c1-03 { grid-column: 1 / 4; }
  .c1-08 { grid-column: 3 / 7; margin-top: 3rem; }
  .c1-06 { grid-column: 1 / 3; }
  .c1-05 { grid-column: 3 / 5; margin-top: 2rem; }
  .c1-04 { grid-column: 5 / 7; }
  .c1-07 { grid-column: 1 / 7; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { position: static; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  /* Mobile: logo full-width at top, nav below */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem 1.2rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  /* Logo: wider but not too tall */
  .brand-logo {
    width: min(70%, 260px);
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 0;
  }

  .brand-tagline { display: none; }

  .side-nav {
    gap: 1.6rem;
    margin-bottom: 0;
  }

  .side-nav a { font-size: 0.65rem; }

  .sidebar-bottom {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 0.9rem;
  }

  .main-content { margin-left: 0; }
  .main-content { width: 100%; }
  .coll-block { padding: 3.5rem 1.4rem 1rem; }
  .about-section { padding: 4rem 1.4rem 3rem; }
  footer { padding: 2rem 1.4rem; flex-direction: column; gap: 1rem; text-align: center; }
  .contact-page-wrap { padding: 4rem 1.4rem 3rem; margin-left: 0; width: 100%; }

  /* Keep asymmetric gallery layout on phones, just smaller margins */
  .wall { grid-template-columns: repeat(10, 1fr); column-gap: 1rem; }

  /* Switch to 6-column grid on mobile for better spread */
  .wall { grid-template-columns: repeat(6, 1fr); column-gap: 1rem; }

  /* Collection 2 — spread left/right */
  .c2-1 { grid-column: 1 / 7; margin-bottom: 4rem; }
  .c2-2 { grid-column: 1 / 4; margin-bottom: 3rem; margin-top: 0; }
  .c2-3 { grid-column: 3 / 7; margin-top: 3rem; margin-bottom: 3rem; }
  .c2-4 { grid-column: 2 / 6; margin-bottom: 3rem; }

  /* Collection 1 — alternating sides */
  .c1-02 { grid-column: 1 / 7; margin-bottom: 5rem; }
  .c1-09 { grid-column: 1 / 4; margin-bottom: 3rem; margin-top: 0; }
  .c1-01 { grid-column: 4 / 7; margin-top: 2rem; margin-bottom: 3rem; }
  .c1-03 { grid-column: 1 / 4; margin-bottom: 4rem; margin-top: 0; }
  .c1-05 { grid-column: 3 / 7; margin-top: 2rem; margin-bottom: 4rem; }
  .c1-06 { grid-column: 1 / 3; margin-bottom: 4rem; margin-top: 0; }
  .c1-08 { grid-column: 2 / 5; margin-top: 1.5rem; margin-bottom: 4rem; }
  .c1-04 { grid-column: 5 / 7; margin-bottom: 4rem; margin-top: 0; }
  .c1-07 { grid-column: 1 / 7; margin-bottom: 3rem; }

  .form-row { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img { position: static; }
  .coll-header { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  .coll-block { padding: 2rem 1rem 0.5rem; }
  .about-section { padding: 3rem 1rem 2.5rem; }
  .side-nav a { font-size: 0.6rem; letter-spacing: 0.16em; }
  .coll-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Reveal ms visible para cuadros */
.art.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(2px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.art.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── DECORATIVE ICONS ── */
.deco {
  font-style: normal;
  color: #b84040;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco svg { stroke: currentColor; }

.deco-sun  { grid-column: 9 / 11; grid-row: 1; align-self: center; justify-self: center; margin-top: 2rem; }
.deco-moon { grid-column: 1 / 3; grid-row: 3; align-self: start; justify-self: center; margin-top: 4rem; }
.deco-sun2 { grid-column: 10 / 11; grid-row: 4; align-self: center; justify-self: center; margin-top: 1rem; }
.deco-moon2 { grid-column: 1 / 2; grid-row: 5; align-self: start; justify-self: center; margin-top: 3rem; }
.deco-moon3 { grid-column: 9 / 11; grid-row: 2; align-self: start; justify-self: end; margin-top: 0.5rem; }
.deco-sun3  { grid-column: 2 / 4; grid-row: 1; align-self: end; justify-self: start; margin-bottom: 1rem; }
.deco-sun4  { grid-column: 9 / 11; grid-row: 5; align-self: end; justify-self: center; margin-bottom: 1.2rem; }
.deco-moon4 { grid-column: 1 / 3; grid-row: 2; align-self: start; justify-self: start; margin-top: 1.2rem; }
