/* =============================================
   BROCOTREE ANIMATION — GLOBAL STYLESHEET
   Tipografía: Outfit (títulos) + Inter (cuerpo)
   Layout ref: Illumination Studios Paris style
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --light-gray: #e8e8e8;
  --mid-gray: #999999;
  --dark: #111111;
  --charcoal: #1a1a1a;
  --accent: #2d6a3f;
  --accent-light: #4caf50;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  color: var(--charcoal);
  font-weight: 900;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

/* ── NAVIGATION ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links > li > a,
.nav-dropdown > a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  position: relative;
  transition: color var(--transition);
}

.nav-links > li > a::after,
.nav-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links > li > a:hover,
.nav-dropdown > a:hover { color: var(--accent); }

.nav-links > li > a:hover::after,
.nav-dropdown > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 0.6rem 0;
  min-width: 230px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}

.nav-dropdown.show .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.3rem;
  font-family: var(--font-heading);
  font-size: 0.79rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  color: var(--charcoal);
}

.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ── HERO / PAGE HEADER ── */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  text-align: center;
  background: var(--white);
}

.page-header .hero-logo {
  max-width: 300px;
  margin: 0 auto 2.5rem;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* ── VIDEO EMBED ── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,0.14);
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── FILM TITLE ── */
.film-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.5rem 0 1rem;
  line-height: 1;
}

/* ── FICHA TÉCNICA ── */
.ficha-tecnica {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.9rem;
}

.ficha-tecnica td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}

.ficha-tecnica td:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mid-gray);
  width: 200px;
  white-space: nowrap;
}

.ficha-tecnica tr:last-child td { border-bottom: none; }

/* ── TEXT BLOCKS ── */
.text-block { max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;}

.text-block p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 1.25rem;
}

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

.label-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
}

.link-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity var(--transition);
  margin-top: 1.5rem;
}
.link-cta:hover { opacity: 0.65; }

/* ── CHARACTER CARDS ── */
.characters-section { padding: 4rem 0; }

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

.character-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);
}

.character-card img {
  width: 90px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--off-white);
  padding: 4px;
}

.character-card-body { flex: 1; }

.character-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--charcoal);
  margin-bottom: 0.55rem;
}

.character-desc {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #555;
}

/* ── POSTER ── */
.poster-wrap {
  max-width: 480px;
  margin: 3rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 72px rgba(0,0,0,0.14);
}

.poster-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.poster-wrap:hover img { transform: scale(1.02); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--light-gray);
}

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

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

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 0.5; }

/* ── LAURELES ── */
.laureles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.laurel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.laurel-item img {
  width: 100%;
  max-width: 110px;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.laurel-item:hover img { transform: scale(1.06); }

.laurel-text {
  font-family: var(--font-heading);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  line-height: 1.45;
}

/* ── BIO SECTION ── */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.bio-portrait img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.bio-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 1.75rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45,106,63,0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,106,63,0.1);
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── PROJECT SELECTOR CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--charcoal);
  cursor: pointer;
  display: block;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
  opacity: 0.88;
}

.project-card:hover img { transform: scale(1.07); opacity: 0.55; }

.project-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 65%);
  color: #fff;
}

.project-card-label h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card-label span {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.3rem;
  display: block;
  font-family: var(--font-heading);
}

/* ── DECORATIVE PNGs ── */
.png-deco {
  position: fixed;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.png-deco-left {
  left: -10px;
  height: clamp(160px, 18vw, 280px);
  width: auto;
}

.png-deco-right {
  right: -10px;
  height: clamp(160px, 18vw, 280px);
  width: auto;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--light-gray); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: #fff;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  transition: opacity var(--transition);
  color: #fff;
}

.footer-nav a:hover { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; animation: fadeInUp 0.65s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.25s; }
.fade-in-delay-3 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  }

  .bio-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .png-deco { display: none; }
  footer { flex-direction: column; text-align: center; }

}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .characters-grid { grid-template-columns: 1fr; }
  .laureles-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }



}

/* ── ADAPTACIÓN DE DESPLEGABLES EN MÓVIL ── */
@media (max-width: 900px) {
  .nav-links.open .nav-dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 100%;
    background: var(--off-white);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

}

/* ── VIDEO EMBED FULL WIDTH (EDGE-TO-EDGE) ── */
.video-section-full {
  width: 100%;
  background: #000;
  padding: 0;
  margin: 0;
  display: block;
}

.video-wrap-full {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrap-full iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ── BANNER PIE DE PÁGINA FULL WIDTH ── */
.banner-section-full {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0; /* evita espacio extra bajo la imagen */
}

.banner-wrap-full {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.banner-wrap-full img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}


/* ── SECCIONES DOBLES EN EL INDEX (ILLUMINATION STYLE) ── */
.index-double-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.index-column {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.index-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.index-column-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
  align-self: flex-start;
}

.index-column-slogan {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1.4;
  font-style: italic;
}

.index-column-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.index-column-image-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.index-column-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.index-column-image-wrap:hover img {
  transform: scale(1.03);
}

/* Lista de noticias */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.news-item {
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1rem;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  margin-bottom: 0.25rem;
  display: block;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}

.btn-column-cta {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--charcoal);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  transition: all var(--transition);
  align-self: flex-start;
  text-align: center;
  margin-top: auto;
  cursor: pointer;
}

.btn-column-cta:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .index-double-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .index-column {
    padding: 2rem 1.5rem;
  }
}

