/* ============================================
   ATENEA FILMS — STYLE SHEET
   Paleta: negro carbón + marrón crema
   Hero a pantalla completa con imagen local
   Iconos SVG lineales
   Noticias con imagen miniatura
   Capítulos con imagen + botón Amazon
   ============================================ */

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #e8e8e8;
  background: #0a0a0a;
  line-height: 1.6;
}

/* Placeholder elegante para imágenes que aún no cargan */
img {
  background: #1a1a1a;
  color: #444;
}

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  position: fixed; top: 0; width: 100%;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,124,0.2);
  z-index: 100;
}
nav {
  max-width: 1200px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
}
.logo {
  font-size: 1.4rem; font-weight: 700;
  color: #ffffff; letter-spacing: 2px; text-decoration: none;
}
.logo span { color: #c9a87c; }
nav ul { display: flex; list-style: none; gap: 25px; align-items: center; }
nav a {
  text-decoration: none; color: #cccccc; font-weight: 500;
  transition: color .3s; font-size: 0.92rem;
}
nav a:hover, nav a.active { color: #c9a87c; }
.lang-switch {
  border: 1px solid rgba(201,168,124,0.5);
  padding: 6px 14px; border-radius: 30px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  color: #c9a87c !important;
}
.lang-switch:hover { background: #c9a87c; color: #0a0a0a !important; }
.menu-btn {
  display: none; font-size: 1.8rem; cursor: pointer; color: #c9a87c;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0 20px;

  background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.85)),
    url('img/hero-home.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.hero h1 {
  font-size: 4rem; margin-bottom: 20px; font-weight: 800;
  letter-spacing: 4px;
}
.hero h1 span { color: #c9a87c; }
.hero p {
  font-size: 1.25rem; max-width: 700px; margin-bottom: 40px;
  color: #e0e0e0;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block; padding: 16px 42px;
  background: #c9a87c; color: #0a0a0a;
  text-decoration: none; border-radius: 50px;
  font-weight: 700; letter-spacing: 2px; font-size: 0.9rem;
  transition: transform .3s, box-shadow .3s, background .3s;
  border: none; cursor: pointer;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201,168,124,0.5);
  background: #e0c9a8;
}
.btn-outline {
  background: transparent; color: #c9a87c;
  border: 2px solid #c9a87c;
}
.btn-outline:hover { background: #c9a87c; color: #0a0a0a; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding: 160px 20px 60px; text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  border-bottom: 1px solid rgba(201,168,124,0.2);
}
.page-hero h1 {
  font-size: 3rem; font-weight: 800; letter-spacing: 3px;
  color: #ffffff; margin-bottom: 15px;
}
.page-hero h1 span { color: #c9a87c; }
.page-hero p { color: #999; max-width: 700px; margin: auto; }

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section:not(.hero):not(.page-hero) {
  padding: 90px 20px;
  max-width: 1200px;
  margin: auto;
}
.section-title {
  text-align: center; font-size: 2.2rem;
  color: #ffffff; margin-bottom: 15px; font-weight: 800;
  letter-spacing: 2px;
}
.section-sub {
  text-align: center; color: #999; margin-bottom: 50px;
  font-size: 1.05rem; max-width: 700px;
  margin-left: auto; margin-right: auto;
}
.divider {
  width: 70px; height: 3px; background: #c9a87c;
  margin: 0 auto 20px; border-radius: 2px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.about-grid img {
  width: 100%; border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(201,168,124,0.25);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-text h3 {
  color: #c9a87c; font-size: 1.7rem; margin-bottom: 20px;
}
.about-text p { margin-bottom: 15px; color: #b8b8b8; }

/* ============================================
   VALORES (con iconos SVG)
   ============================================ */
.valores {
  display: flex; gap: 12px; margin-top: 25px; flex-wrap: wrap;
}
.valor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c; color: #c9a87c;
  padding: 8px 16px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(201,168,124,0.35);
  transition: all .3s;
}
.valor:hover {
  background: #c9a87c;
  color: #0a0a0a;
  border-color: #c9a87c;
}
.valor svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ============================================
   TARJETAS (proyectos)
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background: #141414; border-radius: 15px; overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .3s, box-shadow .3s, border .3s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(201,168,124,0.2);
  border: 1px solid rgba(201,168,124,0.5);
}
.card img {
  width: 100%; height: 220px; object-fit: cover; opacity: 0.85;
  background: #1a1a1a;
  display: block;
}
.card-body { padding: 25px; }
.tag {
  font-size: 0.75rem; color: #c9a87c; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}

/* Tag con ícono de trofeo */
.tag-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-with-icon svg {
  width: 14px;
  height: 14px;
  stroke: #c9a87c;
  fill: none;
  flex-shrink: 0;
}

.card-body h3 {
  color: #ffffff; margin: 8px 0 12px; font-size: 1.25rem;
}
.card-body p { color: #999; font-size: 0.92rem; }
.card-link {
  display: inline-block; margin-top: 15px;
  color: #c9a87c; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px;
}

/* ============================================
   NOTICIAS (con imagen miniatura)
   ============================================ */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}
.noticia {
  background: #141414; border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: transform .3s, background .3s, border .3s;
  text-decoration: none; color: inherit; display: block;
  border: 1px solid rgba(255,255,255,0.05);
}
.noticia:hover {
  transform: translateY(-6px);
  background: #1a1a1a;
  border: 1px solid rgba(201,168,124,0.4);
}
.noticia img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.85;
  background: #1a1a1a;
  border-bottom: 3px solid #c9a87c;
  display: block;
}
.noticia-content {
  padding: 22px;
}
.fecha { color: #777; font-size: 0.8rem; letter-spacing: 1px; }
.noticia h4 { color: #ffffff; margin: 8px 0; font-size: 1.1rem; }
.noticia p { color: #999; font-size: 0.9rem; }

/* ============================================
   CAPÍTULOS (para la página de Hábitat)
   Imagen sin recortes: usa aspect-ratio 16/9
   ============================================ */
.capitulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.capitulo {
  background: #141414;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .3s, box-shadow .3s, border .3s;
}
.capitulo:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(201,168,124,0.2);
  border: 1px solid rgba(201,168,124,0.5);
}
.capitulo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.85;
  background: #1a1a1a;
  border-bottom: 3px solid #c9a87c;
  display: block;
}
.capitulo-body {
  padding: 20px;
}
.capitulo-numero {
  font-size: 0.75rem;
  color: #c9a87c;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.capitulo-body h4 {
  color: #ffffff;
  margin: 8px 0 10px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.capitulo-body p {
  color: #999;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Botón de Amazon Prime Video */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #c9a87c;
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all .3s;
}
.btn-amazon:hover {
  background: #e0c9a8;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201,168,124,0.5);
}
.btn-amazon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ============================================
   ARTÍCULO / PROYECTO INDIVIDUAL
   ============================================ */
.article-content {
  max-width: 800px; margin: auto; padding: 60px 20px;
}
.article-content h1 {
  font-size: 2.5rem; color: #ffffff; margin-bottom: 20px;
  letter-spacing: 1px;
}
.article-content .meta {
  color: #c9a87c; font-size: 0.85rem; letter-spacing: 2px;
  margin-bottom: 30px; text-transform: uppercase;
}
.article-content img {
  width: 100%; border-radius: 15px; margin: 30px 0;
  border: 1px solid rgba(201,168,124,0.25);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-content p {
  color: #b8b8b8; margin-bottom: 20px; font-size: 1.05rem;
}
.article-content h2 {
  color: #c9a87c; margin: 40px 0 20px; font-size: 1.5rem;
}

/* Listas con iconos SVG */
.article-content ul {
  color: #b8b8b8;
  list-style: none;
  margin-left: 0;
  margin-bottom: 30px;
  line-height: 2;
}
.article-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.article-content ul li svg {
  width: 18px;
  height: 18px;
  stroke: #c9a87c;
  fill: none;
  flex-shrink: 0;
  margin-top: 6px;
}
.article-content ul a { color: #c9a87c; text-decoration: none; }
.article-content ul a:hover { text-decoration: underline; }

.back-link {
  display: inline-block; margin-top: 40px;
  color: #c9a87c; text-decoration: none;
  font-weight: 700; letter-spacing: 1px;
}
.back-link:hover { text-decoration: underline; }

/* ============================================
   COPRODUCCIONES
   ============================================ */
.coproducciones-bg {
  background: #111111;
  border-top: 1px solid rgba(201,168,124,0.2);
  border-bottom: 1px solid rgba(201,168,124,0.2);
  max-width: 100%;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px; max-width: 1000px; margin: auto;
}
.logo-box {
  background: #1a1a1a;
  border: 1px solid rgba(201,168,124,0.25);
  padding: 30px 20px; border-radius: 12px;
  text-align: center; font-weight: 600; color: #cccccc;
  transition: all .3s;
}
.logo-box:hover {
  background: #1f1f1f; border-color: #c9a87c; color: #c9a87c;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.info-item {
  display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
}
.info-icon {
  width: 50px; height: 50px;
  background: #1c1c1c; color: #c9a87c;
  border: 1px solid rgba(201,168,124,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}
.info-icon:hover {
  background: #c9a87c;
  color: #0a0a0a;
  border-color: #c9a87c;
}
.info-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}
.info-item strong { color: #ffffff; }
.info-item a {
  color: #c9a87c;
  text-decoration: none;
  transition: color .3s;
}
.info-item a:hover {
  color: #e0c9a8;
  text-decoration: underline;
}

form input, form textarea {
  width: 100%; padding: 14px; margin-bottom: 15px;
  border: 1px solid #2a2a2a; border-radius: 10px;
  font-family: inherit; font-size: 1rem;
  background: #141414; color: #e8e8e8;
}
form input:focus, form textarea:focus {
  outline: none; border-color: #c9a87c;
}
form input::placeholder, form textarea::placeholder { color: #666; }
form button {
  background: #c9a87c; color: #0a0a0a; border: none;
  padding: 15px 40px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  letter-spacing: 2px; transition: all .3s;
}
form button:hover {
  background: #e0c9a8; transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #050505; color: #888;
  text-align: center; padding: 40px 20px;
  border-top: 1px solid rgba(201,168,124,0.2);
}
footer .logo { color: white; margin-bottom: 15px; }
footer p { font-size: 0.85rem; }

/* Iconos sociales del footer (Instagram, YouTube) */
footer .socials {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
footer .socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9a87c;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .3s;
}
footer .socials a:hover { color: #e0c9a8; }
footer .socials a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    width: 100vw;
    height: 100vh;
    padding: 100px 20px 60px;
  }
  .hero h1, .page-hero h1 { font-size: 2.2rem; letter-spacing: 2px; }
  .hero p { font-size: 1rem; }

  nav ul {
    display: none; position: absolute; top: 100%; left: 0;
    width: 100%; background: #0f0f0f; flex-direction: column;
    padding: 20px; gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(201,168,124,0.25);
  }
  nav ul.active { display: flex; }
  .menu-btn { display: block; }

  .about-grid, .contacto-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .article-content h1 { font-size: 1.8rem; }
  .btn-amazon { font-size: 0.8rem; padding: 14px 28px; }
}