/* ============================================================
   KRISTINA FOTÓGRAFA — style.css
   Main color: #FFEFE9  |  Font: Didot / GFS Didot
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --main:        #FFEFE9;
  --blush:       #F5D9CE;
  --dark:        #1A1210;
  --muted:       #9B8275;
  --border:      #EDD8CF;
  --white:       #FFFFFF;

  --font-serif:  'Didot', 'GFS Didot', 'Bodoni MT', 'Playfair Display', Georgia, serif;
  --font-sans:   'Raleway', sans-serif;

  --nav-h:       76px;
  --board-gap:   4px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background: var(--main);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }


/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 239, 233, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.logo-img { height: 52px; width: auto; }

/* Nav links + lang toggle grouped on the right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); }

#lang-toggle {
  background: none;
  border: 1px solid var(--dark);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  padding: 5px 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
#lang-toggle:hover { background: var(--dark); color: var(--main); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dark);
  transition: all 0.3s;
}


/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--main);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 32px 40px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a    { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }


/* ============================================================
   GALLERY BOARD  (index.html)
   ============================================================ */
/* ============================================================
   GALLERY TOOLBAR
   ============================================================ */
.gallery-toolbar {
  margin-top: var(--nav-h);
  padding: 14px 40px 8px;
  display: flex;
  justify-content: flex-end;
}

.reshuffle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.reshuffle-btn:hover {
  color: var(--dark);
  border-color: var(--dark);
}


.gallery-board {
  columns: 3;
  column-gap: var(--board-gap);
  padding: var(--board-gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--board-gap);
  overflow: hidden;
  background: var(--blush);
}

/* Real photos */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.gallery-item img.img-ready { opacity: 1; }
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
  transition: transform 0.6s ease;
}
.gallery-item:hover video { transform: scale(1.03); }

/* Placeholder aspect ratios for visual variety */
.img-placeholder          { width: 100%; display: block; background: var(--blush); }
.img-placeholder.r-portrait { aspect-ratio: 2 / 3; }
.img-placeholder.r-tall     { aspect-ratio: 3 / 5; }
.img-placeholder.r-square   { aspect-ratio: 1 / 1; }


/* ============================================================
   ABOUT PAGE  (sobre-mi.html)
   ============================================================ */
.page-about {
  margin-top: var(--nav-h);
  padding: 80px 48px 100px;
  min-height: calc(100vh - var(--nav-h));
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap { overflow: hidden; }
.about-image-wrap img,
.about-image-wrap .img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-label.available {
  letter-spacing: 0.18em;
  color: var(--dark);
}
.heart-icon {
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0%   { transform: scale(1);    }
  12%  { transform: scale(1.35); }
  24%  { transform: scale(1);    }
  36%  { transform: scale(1.25); }
  48%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}

.about-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 28px;
}
.about-content p {
  font-size: 15px;
  color: #4a3833;
  line-height: 1.85;
  margin-bottom: 20px;
}


.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--dark);
  padding: 14px 34px;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--dark); color: var(--main); }


/* ============================================================
   BOOK PAGE  (reservar.html)
   ============================================================ */
.page-book {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.book-inner {
  max-width: 580px;
  width: 100%;
  text-align: center;
}
.book-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 20px;
}
.book-inner > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 52px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: rgba(255,255,255,0.5);
  gap: 20px;
  transition: background 0.2s;
}
.contact-link:hover { background: rgba(255,255,255,0.9); }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 16, 0.96);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-media-wrap img,
.lb-media-wrap video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lb-media-wrap video { background: #000; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 12px;
  line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-close { top: 20px; right: 28px; font-size: 20px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; }


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}
.footer-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .nav-container { padding: 0 24px; }
  .nav-right  { gap: 16px; }

  .gallery-toolbar { padding: 12px 24px 6px; }

  /* Gallery: 2 columns */
  .gallery-board { columns: 2; }

  /* About stacks */
  .page-about { padding: 56px 24px 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  .page-book { padding: 56px 24px; }
  footer { padding: 40px 24px; }
}

@media (max-width: 480px) {
  /* Gallery: 1 column */
  .gallery-board { columns: 1; }

  .about-stats  { gap: 24px; flex-wrap: wrap; }
  .contact-link { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact-value { font-size: 17px; }
  .mobile-menu  { padding: 28px 20px; }
}
