/* ==========================================================================
   OBSCURA — Taller de Carpintería
   Hoja de estilos principal
   ========================================================================== */

:root {
  --anthracite: #1a1917;
  --orange: #fe7b61;
  --cream: #f6ede3;
  --cream-line: #e2d3c3;
  --ink: #201e1c;
  --white: #f7f5f2;
  --muted: #a9a39c;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--anthracite);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Oculta visualmente pero mantiene el contenido accesible para lectores de pantalla y SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}

.dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--orange);
  margin-bottom: 14px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: padding .4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 55%), rgb(0 0 0 / 0%));
  z-index: -1;
  opacity: 1;
  transition: opacity .4s var(--ease);
}

.site-header.on-light::before {
  opacity: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  color: var(--orange);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 44px;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: .03em;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}

.main-nav a:hover {
  color: var(--orange);
}

.main-nav a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.site-header.on-light .main-nav a {
  color: var(--ink);
}

.site-header.on-light .main-nav a.active {
  color: var(--orange);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--anthracite);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .ph {
  position: absolute;
  inset: 0;
}

.hero-slide .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 9 8 / 25%) 0%, rgb(10 9 8 / 15%) 45%, rgb(10 9 8 / 75%) 100%);
}

.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 48px 44px;
}

.hero-project .eyebrow {
  color: var(--white);
  opacity: .85;
}

.hero-project .year {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  margin-top: 6px;
  display: block;
}

.hero-project .dash {
  margin-bottom: 10px;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-counter .count {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--white);
  opacity: .9;
}

.hero-arrows {
  display: flex;
  gap: 6px;
}

.hero-arrows button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}

.hero-arrows button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hero-arrows button:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}

.hero-arrows svg {
  width: 16px;
  height: 16px;
}

/* ---------- SECTIONS (comunes) ---------- */
.section {
  position: relative;
  min-height: 100vh;
  padding: 150px 48px 90px;
  display: flex;
  align-items: center;
}

.section--dark {
  background: var(--anthracite);
  color: var(--white);
}

.section--light {
  background: var(--cream);
  color: var(--ink);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.section-text-block {
  margin-bottom: 10px;
}

.section-text-block:last-child {
  margin-bottom: 0;
}

.section-text-block p {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--white);
  max-width: 440px;
}

.section--dark .eyebrow {
  color: var(--muted);
}

.media-panel {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: linear-gradient(150deg, #3d332a, #18130f);
  position: relative;
  overflow: hidden;
}

.media-panel--wide {
  aspect-ratio: 4 / 3;
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 6%), transparent 60%);
  pointer-events: none;
}

/* ---------- TALLER ----------
   La imagen bleed hacia la derecha, con difuminado hacia el fondo por la izquierda. */
#taller .section-grid {
  grid-template-columns: .78fr 1.5fr;
  gap: 56px;
  align-items: center;
}

#taller .media-panel {
  aspect-ratio: auto;
  height: 78vh;
  width: calc(100% + 48px);
  margin-right: -48px;
}

#taller .media-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--anthracite) 0%, rgb(26 25 23 / 75%) 8%, rgb(26 25 23 / 0%) 30%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- MATERIALES ---------- */
.materiales-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.materiales-intro {
  margin-bottom: 20px;
}

.materiales-intro p {
  max-width: 520px;
}

.materiales-list {
  display: flex;
  flex-direction: column;
}

.materiales-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #34312d;
}

.materiales-item:last-child {
  border-bottom: 1px solid #34312d;
}

.materiales-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--white);
  opacity: .85;
}

.materiales-icon svg {
  width: 100%;
  height: 100%;
}

.materiales-item h3 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.materiales-item p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--muted);
  max-width: 380px;
}

/* ---------- CONTACTO ---------- */
#contacto {
  padding-top: 120px;
}

#contacto .section-grid {
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.contacto-heading {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -.01em;
}

.contacto-heading strong {
  font-weight: 700;
  display: block;
}

.contacto-email {
  display: inline-block;
  margin-top: 40px;
  font-size: 19px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s;
}

.contacto-email:hover,
.contacto-email:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.contacto-info-row {
  padding: 26px 0;
  border-top: 1px solid var(--cream-line);
}

.contacto-info-row:last-child {
  border-bottom: 1px solid var(--cream-line);
}

.contacto-info-row .eyebrow {
  color: #9a9088;
  margin-bottom: 8px;
  display: block;
}

.contacto-info-row .val {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.contacto-info-row a.val:hover,
.contacto-info-row a.val:focus-visible {
  color: var(--orange);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--anthracite);
  text-align: center;
  padding: 36px 24px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .site-header {
    padding: 20px 24px;
  }

  .main-nav ul {
    gap: 22px;
  }

  .brand span {
    font-size: 13px;
  }

  .section {
    padding: 130px 24px 70px;
  }

  .section-grid,
  #taller .section-grid {
    grid-template-columns: 1fr ;
    gap: 32px;
  }


  #materiales {
    padding-top: 0;
  }

  #taller .media-panel {
    width: 100%;
    height: 52vh;
    margin-right: 0;
    order: -1;
  }

  #taller .media-panel::before {
    background: linear-gradient(to top, var(--anthracite) 0%, rgb(26 25 23 / 0%) 35%);
  }

  .contacto-heading {
    font-size: 38px;
  }

  .hero-bottom {
    padding: 0 24px 28px;
  }

  #contacto {
    padding-top: 110px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 16px;
  }

  .brand span {
    font-size: 12px;
    letter-spacing: .1em;
  }

  .main-nav ul {
    gap: 10px;
  }

  .main-nav a {
    font-size: 10.5px;
    letter-spacing: 0;
  }

  .hero-project .eyebrow {
    font-size: 11px;
  }

  .contacto-heading {
    font-size: 30px;
  }
}

/* Respeta la preferencia del usuario de reducir animaciones */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .hero-arrows button,
  .main-nav a,
  .contacto-email {
    transition: none;
  }
}


@media (max-width: 500px) { 

      .section {
        padding: 70px 24px 0px;
    }

    #contacto .section-grid {
      grid-template-columns: 1fr;
    }
        #contacto {
        padding-top: 0;
                min-height: 60vh;
    }
}