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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 8vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #333333;
}

.nav-link:hover {
  color: #000000;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid #dddddd;
  background: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.lang-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Hero */

.hero {
  padding: 40px 8vw 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.hero-text {
  max-width: 620px;
}

.hero-quote {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin: 0 0 12px;
}

.hero-sub {
  font-size: 15px;
  color: #444444;
}

/* Sections */

.section {
  padding: 40px 8vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section-intro {
  margin: 0 0 24px;
  color: #555555;
  font-size: 14px;
}

.text-block p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Gallery */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 8px;
}

figcaption {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  font-size: 14px;
  color: #333333;
}

.work-title {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}

.work-year {
  font-size: 12px;
  color: #777777;
  margin-left: 6px;
}

/* Contact */

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

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  gap: 4px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}

.btn {
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  padding: 8px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: #111111;
  cursor: pointer;
}

.btn .lang {
  display: none;
}

.btn:hover {
  background: #000000;
}

.privacy-small {
  font-size: 11px;
  margin-top: 4px;
}

.privacy-small a {
  text-decoration: none;
  color: #666666;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 1px;
}

/* Footer */

.site-footer {
  padding: 24px 8vw 32px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 12px;
  color: #777777;
}

/* Language visibility */

.lang {
  display: none;
}

body[data-lang="es"] .lang-es,
body[data-lang="en"] .lang-en,
body[data-lang="ru"] .lang-ru {
  display: inline;
}

/* Responsive */

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    order: 2;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-image {
    order: 1;
  }

  .hero-text {
    order: 2;
  }
}


/* Ajuste especial para la introducción de la galería */
.gallery-intro {
  font-style: italic;
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 32px;
}

/* Línea separadora antes de que empiecen las obras */
.section-divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: 10px 0 36px 0;
}
