@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400;1,6..96,500&family=Inter:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════
   DESIGN SYSTEM — YAMILI ISSA (MOCKUP AESTHETIC)
═══════════════════════════════════════════ */

:root {
  --bg-color: #FAFAFA;
  --white: #FFFFFF;
  --text-black: #111111;
  --text-gray: #4A4A4A;
  --hero-bg: #9B9A98; /* Medium grey for hero */
  --border-color: #DDDDDD;
  --input-bg: #F4F4F4;
  
  --font-serif: 'Bodoni Moda', serif;
  --font-sans: 'Inter', sans-serif;

  --max-w: 900px; /* Narrow centered layout as per mockup */
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { 
  font-family: var(--font-sans); 
  font-weight: 400; 
  color: var(--text-black); 
  background: var(--white); 
  line-height: 1.6; 
  overflow-x: hidden; 
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { 
  font-family: var(--font-serif); 
  font-weight: 400; 
  line-height: 1.2; 
  color: var(--text-black); 
}
p {
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.8;
}
.text-center { text-align: center; }

.eyebrow { 
  font-family: var(--font-serif); 
  font-size: 1.1rem; 
  font-style: italic;
  color: var(--text-gray); 
  display: block; 
  margin-top: 0.5rem; 
}

/* ─── NAVBAR ─── */
.navbar { 
  background: var(--white);
  padding: 1.5rem 2rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo { 
  font-family: var(--font-serif); 
  font-size: 1.2rem; 
  font-weight: 500; 
  letter-spacing: 0.05em; 
}
.nav-lang { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}
.nav-lang-btn { 
  font-family: var(--font-sans); 
  font-size: 0.7rem; 
  font-weight: 400; 
  border: none; 
  background: transparent; 
  color: var(--text-gray); 
  cursor: pointer; 
  transition: color 0.3s;
}
.nav-lang-btn.active { color: var(--text-black); font-weight: 600; }
.nav-lang-sep { font-size: 0.7rem; color: var(--border-color); }

/* ─── GENERAL SECTIONS ─── */
.page-content {
  background: var(--white);
}
.section { 
  padding: 4rem 1.5rem; 
}
.section-inner { 
  max-width: var(--max-w); 
  margin: 0 auto; 
}
.section-header {
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

/* ─── HERO ─── */
.hero {
  background: var(--hero-bg);
  padding: 0 1.5rem;
  overflow: hidden;
  position: relative;
}
.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.hero-text-bg {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 2;
}
.hero-text-bg h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--white);
}
.hero-text-bg .subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: var(--white);
}
.hero-image-front {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  display: flex;
  justify-content: center;
  margin-top: auto;
}
.hero-image-front img {
  width: 100%;
  object-fit: contain;
}

/* ─── THE CONCEPT ─── */
.concept-section {
  padding-top: 5rem;
}
.concept-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.concept-section p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ─── THE LEGACY SUITE ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  text-align: center;
}
.service-img {
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.service-card h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.8rem;
}

/* ─── OBRA LITERARIA ─── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.book-card {
  text-align: center;
}
.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--input-bg); /* subtle background for the books like in mockup */
}
.book-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.book-card p {
  font-family: var(--font-sans);
  font-size: 0.7rem;
}

/* ─── FORMULARIO ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.legacy-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.legacy-form input, .legacy-form select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.3s;
}
.legacy-form input:focus, .legacy-form select:focus {
  border-color: var(--text-black);
}
.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.btn-black {
  background: var(--text-black);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-black:hover {
  opacity: 0.8;
}

/* ─── FOOTER ─── */
.footer {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}
.footer-social {
  display: flex;
  gap: 1.5rem;
}
.footer-social a {
  color: var(--text-black);
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.7;
}
.footer-social a:hover {
  opacity: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-container {
    min-height: 400px;
  }
  .hero-text-bg h1 {
    font-size: 3rem;
  }
  .hero-image-front {
    max-width: 300px;
  }
  .services-grid, .books-grid, .form-row, .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-submit-row {
    justify-content: center;
  }
  .btn-black {
    width: 100%;
  }
}
