/* =========================================================
   SAMNA VISION — styles.css
   Paleta: negro cinematográfico + acento lavanda profunda
   Tipografía: Fraunces (serif editorial) + Inter Tight (sans)
   ========================================================= */

:root {
  --bg: #15101C;            /* aubergine muy oscuro: casi negro con alma lila */
  --bg-soft: #1C1525;       /* variante un punto más clara para superficies */
  --text: #EAEAEA;
  --text-dim: #8A8A8A;
  --text-faint: #555;
  --accent: #B8A7E8;        /* lavanda profunda — la firma de Samna Vision */
  --accent-soft: #8A7AC4;   /* lavanda más apagada para hovers/detalles */
  --border: rgba(184,167,232,0.10);
  --header-h: 72px;
  --maxw: 1400px;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.hidden { display: none !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(180deg, rgba(21,16,28,0.85) 0%, rgba(21,16,28,0) 100%);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(21,16,28,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
}

.nav-divider {
  color: var(--text-faint);
  font-size: 12px;
}

.lang-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
}

.lang-select option {
  background: var(--bg);
  color: var(--text);
}

/* Mobile menu button */
#mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
#mobile-menu-btn .bar {
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 24px;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

/* =========================================================
   HERO (HOME)
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(21,16,28,0.55) 0%, rgba(21,16,28,0.85) 100%),
    linear-gradient(180deg, rgba(21,16,28,0.5) 0%, rgba(28,21,37,0.35) 50%, rgba(21,16,28,0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-line-1, .hero-line-2 {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line-1 { animation-delay: 0.3s; }
.hero-line-2 {
  animation-delay: 0.5s;
  font-style: italic;
  color: var(--accent);
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
  opacity: 0;
  animation: heroReveal 1s ease 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.3s ease;
  opacity: 0;
  animation: heroReveal 1s ease 1.1s forwards;
}
.hero-cta:hover {
  background: var(--text);
  color: var(--bg);
  gap: 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: heroReveal 1s ease 1.4s forwards, pulse 2.5s ease 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* =========================================================
   WORK SECTION
   ========================================================= */
#work-section {
  padding: calc(var(--header-h) + 60px) 40px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.work-header {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.filter-btn:hover { color: var(--text); }

.filter-btn.active {
  color: var(--bg);
  background: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.work-card video,
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: grayscale(0.3) brightness(0.85);
}

.work-card:hover video,
.work-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0) brightness(1);
}

.work-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.work-card-type {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}

/* =========================================================
   PROJECT VIEW
   ========================================================= */
#project-section {
  padding: calc(var(--header-h) + 40px) 40px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.project-back:hover { color: var(--accent); }

.project-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 32px;
  overflow: hidden;
}
.project-player iframe { width: 100%; height: 100%; border: none; }

.project-type {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
}

.project-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 720px;
  white-space: pre-line;
}

/* =========================================================
   ABOUT
   ========================================================= */
#about-section {
  padding: calc(var(--header-h) + 60px) 40px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}

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

.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.15);
}

.about-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 32px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.about-bio p { margin-bottom: 16px; }

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.about-contact a { border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: border-color 0.2s; }
.about-contact a:hover { border-color: var(--accent); color: var(--accent); }
.about-contact span { color: var(--text-faint); }

/* =========================================================
   CONTACT
   ========================================================= */
#contact-section {
  padding: calc(var(--header-h) + 60px) 40px 80px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--text-dim);
  margin: 24px 0 60px;
  max-width: 600px;
  line-height: 1.3;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: padding 0.3s ease;
}
.contact-link:last-child { border-bottom: 1px solid var(--border); }
.contact-link:hover { padding-left: 12px; }

.contact-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  color: var(--text);
}
.contact-link:hover .contact-value { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-sep { opacity: 0.5; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo {
    max-width: 360px;
  }
}

@media (max-width: 780px) {
  .site-header { padding: 0 20px; }
  .main-nav { display: none; }
  #mobile-menu-btn { display: flex; }

  #work-section, #about-section, #project-section, #contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card-info { padding: 16px; }

  .contact-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
  }

  .site-footer { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 48px; }
  .work-header { flex-direction: column; align-items: flex-start; }
}
