/* ============================================================
   Endémica Crea — estilos base
   Paleta: carbón #1c2122, gris-verde #748284, negro puro #000000
   (reservado para secciones con fotos de producto), fondos claros.
   Tipografía: Jost (sans, weight 300), letter-spacing amplio.
   ============================================================ */

:root {
  --carbon: #1c2122;
  --sage: #748284;
  --black: #000000;
  --bg-light: #f5f3f0;
  --bg-light-alt: #ece8e2;
  --text-dark: #1c2122;
  --text-light: #f5f3f0;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 1em;
}

.giant-word {
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--sage);
  line-height: 1.05;
  white-space: pre-line;
  margin: 0.2em 0 0.6em;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: repeating-linear-gradient(45deg, #d8d3cb, #d8d3cb 10px, #e5e1da 10px, #e5e1da 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.9em 2em;
  border: 1px solid currentColor;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--text-light);
  border-color: var(--text-light);
}
.btn-primary:hover { background: var(--text-light); color: var(--carbon); }

.btn-secondary {
  color: var(--carbon);
  border-color: var(--carbon);
}
.btn-secondary:hover { background: var(--carbon); color: var(--text-light); }

/* ---------- Layout helpers ---------- */
section {
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem;
  color: var(--text-light);
}

.brand {
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.lang-switch { display: flex; gap: 0.5rem; }
.lang-btn {
  background: none;
  border: 1px solid rgba(245,243,240,0.5);
  color: inherit;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.25em 0.6em;
  cursor: pointer;
}
.lang-btn.active { background: var(--text-light); color: var(--carbon); border-color: var(--text-light); }

/* On narrow screens the header leaves the hero's absolute overlay and
   becomes a static bar, so wrapping never overlaps the hero title. */
@media (max-width: 600px) {
  .site-header {
    position: static;
    background: var(--carbon);
    justify-content: center;
    text-align: center;
  }
  .hero::before { content: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: var(--carbon);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Constant scrim over the full hero so the header stays legible no matter
   how light/dark the underlying photo is, plus a stronger gradient behind
   the title text at the bottom. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 20%, rgba(0,0,0,0.05) 80%);
  width: 100%;
  padding: 3rem 1.5rem 3.5rem;
}
.hero-overlay h1 { max-width: 900px; }
.hero-subtitle {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 1.5em;
}

/* ---------- About ---------- */
.about { background: var(--bg-light); }
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--carbon);
  color: var(--text-light);
}
.manifesto .split { max-width: var(--max-width); }
.manifesto-col blockquote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: normal;
  letter-spacing: 0.02em;
  margin: 0;
  border-left: 2px solid var(--sage);
  padding-left: 1em;
}
.manifesto-col p { color: rgba(245,243,240,0.85); }

/* ---------- Historia ---------- */
.historia { background: var(--bg-light-alt); }
.historia-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

/* ---------- Oficio ---------- */
.oficio { background: var(--bg-light); text-align: center; }
.oficio h2 { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.oficio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  text-align: left;
}
@media (min-width: 700px) {
  .oficio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .oficio-grid { grid-template-columns: repeat(4, 1fr); }
}
.oficio-card h3 { color: var(--sage); }

/* ---------- Trayectoria ---------- */
.trayectoria { background: var(--bg-light-alt); }
.trayectoria h2 { max-width: var(--max-width); margin: 0 auto 2rem; text-align: center; }
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  border-left: 2px solid var(--sage);
}
.timeline li {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sage);
}
.timeline .year {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 0.3em;
}
.timeline h3 { margin-bottom: 0.3em; }
.collaborators {
  max-width: 760px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ---------- Instagram ---------- */
.instagram-section { background: var(--bg-light); text-align: center; }
.instagram-handle { color: var(--sage); letter-spacing: 0.1em; }
.instagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
}
@media (min-width: 700px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}
.instagram-embed-placeholder {
  min-height: 320px;
  background: repeating-linear-gradient(45deg, #d8d3cb, #d8d3cb 10px, #e5e1da 10px, #e5e1da 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--carbon);
  color: var(--text-light);
  text-align: center;
}
.contacto h2, .contacto > p { max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.contact-form label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--sage);
  margin-top: 0.8rem;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-weight: 300;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,243,240,0.4);
  color: var(--text-light);
  padding: 0.6em 0.2em;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--sage);
}
.contact-form button { margin-top: 1.5rem; align-self: flex-start; }
.form-feedback { margin-top: 1rem; font-size: 0.9rem; }

.availability {
  max-width: 480px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,243,240,0.2);
}

/* ---------- Compartir ---------- */
.compartir { background: var(--bg-light); text-align: center; }
.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.share-btn {
  text-decoration: none;
  border: 1px solid var(--carbon);
  padding: 0.7em 1.6em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: inherit;
  background: none;
  cursor: pointer;
  color: var(--carbon);
}
.share-btn:hover { background: var(--carbon); color: var(--text-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1.25rem;
}
.site-footer p { margin: 0.3em 0; }
.site-footer a { text-decoration: none; letter-spacing: 0.05em; }
.rights { color: var(--sage); font-size: 0.8rem; margin-top: 1.5em; }
