/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", serif;
  background-color: #000000;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 25px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  gap: 50px;
}

.nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  font-weight: 300;
}

.nav a:hover {
  color: #A1B0BC;
}

/* Hero Section 
.hero {
  height: 200vh; /* ocupa dos alturas completas de la ventana 
  background-image: url("backgroundacuadros.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  margin: 0;
}
*/


/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #e0e0e0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile behavior */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav a {
    font-size: 20px;
  }

  /* When active */
  .nav.active {
    right: 0;
  }

  /* Burger animation when active */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}


/* Desktop layout */
.hero {
  height: 200vh;
  background-image: url("media/backgroundacuadros.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mobile layout */
@media (max-width: 768px) {
  .hero {
    height: auto;              /* let the content define height */
    background: none;          /* remove bg for mobile */
  }

  .hero-block:first-child {
    background-image: url("media/backgroundacuadros_mobile.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;         /* fills the first screen nicely */
  }

  .hero-block:last-child {
    background: #000; /* or whatever solid background fits your palette */
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

/* Contenedor que mantiene los dos "bloques" en columna */
.hero-content {
  position: relative;
  z-index: 2;
  height: 200vh; /* igual que el hero */
  display: flex;
  flex-direction: column;
}

/* Cada bloque ocupa 100vh (una pantalla) */
.hero-block {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 36px);
  color: #A1B0BC;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 3px;
  max-width: 70%;
}


/* Obras Section */
.obras-section {
  padding: 0;
}

.obra {
  margin-bottom: 0;
  border-bottom: 1px solid #222;
}

.obra:last-child {
  border-bottom: none;
}

.obra-hero {
  height: 80vh;
  min-height: 600px;
  background-image: url("media/backgroundreflejos.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.obra:nth-child(2) .obra-hero {
  background-image: url("media/backgroundorigami.jpeg");
}

.obra-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.obra-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.obra-title {
  font-size: clamp(40px, 6vw, 90px);
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.obra-tagline {
  font-size: clamp(18px, 2.5vw, 32px);
  color: #A1B0BC;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 2px;
  max-width: 900px;
}

.obra-details {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}


.obra-info {
  text-align: left;
}

.obra-description {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  margin-bottom: 40px;
  color: #d0d0d0;
  font-weight: 300;
}

.btn-dossier {
  display: inline-block;
  padding: 18px 45px;
  background-color: transparent;
  color: #A1B0BC;
  border: 2px solid #A1B0BC;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
  transition: all 0.4s ease;
}

.btn-dossier:hover {
  background-color: #A1B0BC;
  color: #000000;
  transform: translateY(-2px);
}

.obra-gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-item {
  flex: 0 0 50%; /* 2 visible on desktop */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Controls */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.gallery-btn:hover {
  background: rgba(255,255,255,0.3);
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }

/* Mobile: show only 1 image at a time */
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 100%;
  }
}

/* Director Section */
.director-section {
  padding: 0;
  background-color: #000000;
}

.director-hero {
  height: 60vh;
  min-height: 400px;
  background-image: url("/placeholder.svg?height=1080&width=1920");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.director-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.director-hero-content {
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  text-align: center;
  letter-spacing: 6px;
  color: #ffffff;
  text-transform: uppercase;
}

.director-content {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 100px;
  padding: 120px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.director-photo-wrapper {
  position: relative;
}

.director-photo {
  width: 100%;
  height: auto;
  border: 3px solid #A1B0BC;
  filter: grayscale(20%);
}

.director-name {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 50px;
  color: #A1B0BC;
  font-weight: 300;
  letter-spacing: 3px;
}

.cv-section {
  margin-bottom: 50px;
}

.cv-description {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  margin-bottom: 40px;
  color: #d0d0d0;
  font-weight: 300;
}

.cv-description a {
  color: #A1B0BC;
  text-decoration: none;
  border-bottom: 1px solid rgba(161, 176, 188, 0.4);
  transition: all 0.3s ease;
}

.cv-description a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Contacto Section */
.contacto-section {
  padding: 120px 0;
  background-color: #0a0a0a;
}

.section-title-center {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: 6px;
  color: #ffffff;
  text-transform: uppercase;
}

.contacto-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contacto-text {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 60px;
  color: #b0b0b0;
  line-height: 1.8;
  font-weight: 300;
}

.contacto-info {
  background-color: #000000;
  padding: 60px;
  border: 2px solid #A1B0BC;
}

.contacto-info p {
  margin-bottom: 25px;
  font-size: clamp(16px, 1.8vw, 20px);
}

.contacto-info strong {
  color: #A1B0BC;
  font-weight: 400;
}

.contacto-info a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-info a:hover {
  color: #A1B0BC;
}

.social-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.social-links a {
  padding: 15px 35px;
  border: 2px solid #A1B0BC;
  transition: all 0.4s ease;
  font-size: 16px;
  letter-spacing: 1px;
}

.social-links a:hover {
  background-color: #A1B0BC;
  color: #000000;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: #000000;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #222;
}

.footer p {
  color: #666;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
  .obra-details {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 0;
  }

  .director-content {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 0;
  }

  .director-photo-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header {
    padding: 15px 0;
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }


  .burger {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .logo {
    height: 60px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero {
    background-attachment: scroll;
  }

  .obra-hero {
    background-attachment: scroll;
    height: 60vh;
  }

  .director-hero {
    background-attachment: scroll;
  }

  .obra-gallery {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding: 40px 30px;
  }

  .social-links {
    flex-direction: column;
    gap: 15px;
  }

  .btn-dossier {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 0;
  }

  .obra-info {
    text-align: center;
  }

}


.obra-video {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* mantiene proporción del vídeo */
  overflow: hidden;
  background-color: #0a0a0a;
  border-radius: 12px;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

/* Círculo del botón de play */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Triángulo blanco */
.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 24px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}

/* Pequeña animación al pasar el ratón */
.video-thumb:hover .play-button {
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}

/* News Section */
.news-section {
  padding: 120px 0;
  background-color: #111;
  border-top: 1px solid #222;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  margin-top: 60px;
}

.news-item {
  background-color: #000;
  border: 2px solid #A1B0BC;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  border-color: #e0e0e0;
}

.news-text a {
  color: #A1B0BC;
  text-decoration: none;
  border-bottom: 1px solid rgba(161, 176, 188, 0.4);
  transition: all 0.3s ease;
}

.news-text a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-content {
  padding: 30px;
}

.news-title {
  font-size: clamp(22px, 3vw, 28px);
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 400;
}

.news-date {
  color: #A1B0BC;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.news-text {
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .news-grid {
    gap: 40px;
  }

  .news-img {
    height: 180px;
  }

  .news-content {
    padding: 20px;
  }
}
