/* ═══════════════════════════════════════════
   IE NETWORK — style.css
   Estética: Cine oscuro / editorial / raw power
═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #080808;
  --white:    #F5F0E8;
  --cream:    #EDE8DC;
  --red:      #C8102E;
  --red-dim:  #8A0B1F;
  --gray-1:   #111111;
  --gray-2:   #1C1C1C;
  --gray-3:   #2E2E2E;
  --gray-4:   #555555;
  --gray-5:   #888888;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.nav__logo span {
  color: var(--red);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-5);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: #e5122f;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}
.btn--full { width: 100%; justify-content: center; }

/* ─── SECTION LABELS ─── */
.section-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 2rem;
}

/* ─── NAV LOGO ─── */
.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.nav__logo-text em {
  font-style: normal;
  color: var(--red);
  margin-left: 2px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-1);
}

/* Hero background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.6);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.3) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.7) 100%
  );
  z-index: 1;
}

/* Hero logo */
.hero__logo-wrap {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}
.hero__logo-img {
  height: clamp(60px, 10vw, 120px);
  width: auto;
}

/* Noise texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Grid overlay */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Red accent line */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: clamp(1.5rem, 4vw, 3.5rem);
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: var(--nav-h) clamp(1.5rem, 4vw, 3.5rem) 0;
  padding-top: calc(var(--nav-h) + 4rem);
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 22rem);
  line-height: 0.88;
  display: block;
  margin-bottom: 2rem;
}
.hero__title-ie {
  display: block;
  color: var(--white);
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}
.hero__title-network {
  display: block;
  color: var(--red);
  animation: fadeUp 0.9s var(--ease) 0.35s both;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--gray-5);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s var(--ease) 0.5s both;
  line-height: 1.7;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.65s both;
}

/* Ticker */
.hero__ticker {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-3);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 2rem;
  animation: ticker 20s linear infinite;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.ticker__track .sep { color: var(--red); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── DIVISIONES ─── */
.divisiones {
  padding: 8rem 0 0;
}
.divisiones .container {
  padding-bottom: 4rem;
}

.divisiones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-3);
}

.div-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background: var(--gray-1);
  transition: transform 0.5s var(--ease);
}

/* Background photo */
.div-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.28) saturate(0.5);
  transition: filter 0.6s var(--ease), transform 0.7s var(--ease);
  z-index: 0;
}
.div-card:hover .div-card__img {
  filter: brightness(0.38) saturate(0.65);
  transform: scale(1.04);
}

/* Color tint overlay per division */
.div-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.div-card--music  .div-card__overlay { background: linear-gradient(to top, rgba(200,16,46,0.45) 0%, transparent 55%); }
.div-card--tv     .div-card__overlay { background: linear-gradient(to top, rgba(20,80,180,0.4) 0%, transparent 55%); }
.div-card--films  .div-card__overlay { background: linear-gradient(to top, rgba(150,110,10,0.4) 0%, transparent 55%); }

.div-card__bg { display: none; }

.div-card__content {
  position: relative;
  z-index: 3;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.div-card__icon {
  width: 44px;
  height: 44px;
  color: var(--gray-5);
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.div-card:hover .div-card__icon { color: var(--white); }

.div-card__label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 0.4rem;
}

.div-card__name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.div-card--music .div-card__name  { color: var(--red); }
.div-card--tv    .div-card__name  { color: #3a8fd4; }
.div-card--films .div-card__name  { color: #c9a227; }

.div-card__desc {
  font-size: 0.95rem;
  color: var(--gray-5);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
}

.div-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.div-card__tags li {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  border: 1px solid var(--gray-3);
  padding: 0.25rem 0.7rem;
  border-radius: 1px;
  transition: border-color 0.3s, color 0.3s;
}
.div-card:hover .div-card__tags li {
  border-color: var(--gray-4);
  color: var(--gray-5);
}

.div-card__link {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-5);
  transition: color 0.3s, letter-spacing 0.3s;
}
.div-card:hover .div-card__link {
  color: var(--white);
  letter-spacing: 0.18em;
}

/* ─── SOBRE NOSOTROS ─── */
.sobre {
  padding: 10rem 0;
  background: var(--gray-1);
  border-top: 1px solid var(--gray-3);
  border-bottom: 1px solid var(--gray-3);
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.sobre__body {
  color: var(--gray-5);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.sobre__stats {
  display: flex;
  gap: 3rem;
}

.stat__n {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--red);
}
.stat__l {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-top: 0.25rem;
}

.sobre__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre__frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--gray-3);
}

.sobre__frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) saturate(0.7);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
  display: block;
}
.sobre__frame:hover .sobre__frame-img {
  filter: brightness(0.85) saturate(0.85);
  transform: scale(1.03);
}

.sobre__frame-deco {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--red);
  border-style: solid;
}
.sobre__frame-deco--tl {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.sobre__frame-deco--br {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

/* ─── TRABAJO ─── */
.trabajo {
  padding: 8rem 0;
}
.trabajo .container { margin-bottom: 3rem; }

.trabajo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--gray-3);
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.trabajo__item {
  position: relative;
  background: var(--gray-2);
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.trabajo__item:hover .trabajo__img {
  filter: brightness(0.55) saturate(0.7);
  transform: scale(1.04);
}
.trabajo__item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.trabajo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) saturate(0.6);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}

.trabajo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.trabajo__type {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 0.25rem;
}
.trabajo__proj {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.trabajo__div {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

/* ─── CONTACTO ─── */
.contacto {
  padding: 8rem 0;
  background: var(--gray-1);
  border-top: 1px solid var(--gray-3);
}

.contacto__sub {
  color: var(--gray-5);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 500px;
}

.contacto__form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--gray-2); }

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gray-3);
}

.footer__logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__logo-text em {
  font-style: normal;
  color: var(--red);
}
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 4rem 0;
}



.footer__brand p {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.footer__nav {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__col h4 {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 0.4rem;
}
.footer__col a {
  font-size: 0.9rem;
  color: var(--gray-5);
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-3);
  font-size: 0.78rem;
  color: var(--gray-4);
  font-family: var(--font-cond);
  letter-spacing: 0.06em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .divisiones__grid { grid-template-columns: 1fr; }
  .div-card { min-height: 380px; }

  .sobre__inner { grid-template-columns: 1fr; gap: 3rem; }
  .sobre__visual { display: none; }

  .trabajo__grid { grid-template-columns: 1fr 1fr; }
  .trabajo__item--tall { grid-row: span 1; aspect-ratio: 4/3; }

  .footer__top { flex-direction: column; }
  .footer__nav { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--black);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.1rem;
  }
  .nav__links.open a { font-size: 1.1rem; }

  .form-row { grid-template-columns: 1fr; }
  .trabajo__grid { grid-template-columns: 1fr; }

  .sobre__stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}