/* ===== VARIABLES (opcional para futuras mejoras) ===== */
:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-text-secondary: #ccc;
  --color-accent: #fff;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.dark-bg {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-secondary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.menu-toggle:hover {
  opacity: 0.8;
}

/* ===== BOTÓN CONTACTO ===== */
.btn-contacto {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  z-index: 1000;
  transition: var(--transition);
}

.btn-contacto:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ===== MENÚ MÓVIL ===== */
.offcanvas-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  color: #000;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 40px 30px;
}

.offcanvas-menu.active {
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.close-btn, .lang-switch {
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover, .lang-switch:hover {
  color: #666;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 15px;
}

.menu-list a {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  display: block;
  position: relative;
  padding-left: 24px;
}

.menu-list a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.menu-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-main {
  padding: 100px 0 120px;
}

/* ===== CABECERA DEL PROYECTO ===== */
.project-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--color-text);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-category {
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.project-hero figure {
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== GALERÍA ===== */
.project-gallery {
  margin-top: 40px;
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.gallery-grid figure:hover {
  transform: translateY(-4px);
}

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

.gallery-grid figure:hover img {
  transform: scale(1.02);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* igual que las imágenes */
  border-radius: 12px; /* si tus imágenes tienen bordes redondeados */
  display: block;
}


/* ===== BOTÓN DE VOLVER ===== */
.back-container {
  margin-top: 60px;
  text-align: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  transition: var(--transition);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .project-header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  .project-text {
    order: 1;
  }

  .project-hero {
    order: 2;
  }

  .project-description {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .project-title {
    font-size: 2.2rem;
  }

  .project-description {
    font-size: 1.05rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-main {
    padding: 80px 0 100px;
  }
}

@media (max-width: 480px) {
  .menu-toggle,
  .btn-contacto {
    top: 15px;
    font-size: 1.3rem;
    padding: 6px 12px;
  }

  .back-button {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .project-title {
    font-size: 2rem;
  }
}