/* ============================================
   Opera Films — operafilms.net
   Sitio estático · 2026
   ============================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1c1c20;
  --text: #f2f0ec;
  --muted: #9a978f;
  --accent: #ffffff;
  --line: rgba(242, 240, 236, 0.14);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--muted); }

a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11,11,13,.92), rgba(11,11,13,.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 9px 22px;
  border-radius: 99px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
}

.lang-switch span { color: var(--line); }
.lang-switch a { color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.lang-switch a.active { color: var(--accent); }

.card h3 small { font-size: .65em; color: var(--muted); font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 70px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, rgba(11,11,13,.55) 45%, rgba(11,11,13,.25));
}

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

.hero h1 { max-width: 800px; margin-bottom: 22px; }

.hero p {
  max-width: 560px;
  font-size: 1.12rem;
  color: var(--text);
  opacity: .85;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: all .2s;
}

.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: #ffffff; color: var(--bg); transform: translateY(-1px); }

.btn-ghost { border-color: rgba(235,232,226,.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 32px;
  transition: border-color .25s, transform .25s;
}

.service:hover { border-color: rgba(242,240,236,.45); transform: translateY(-4px); }

.service .icon {
  width: 46px; height: 46px;
  margin-bottom: 22px;
  color: var(--accent);
}

.service h3 { margin-bottom: 14px; }
.service p { font-size: .95rem; }
.service p + p { margin-top: 10px; }

/* ---------- Project cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: block;
}

.card .card-img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

.card:hover .card-img img { transform: scale(1.04); }

.card .card-body { padding: 22px 24px 26px; }

.card h3 { margin-bottom: 6px; color: var(--text); }

.card .meta {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card .meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted);
}

.card .dir { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- Project detail ---------- */
.project-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 60px;
  overflow: hidden;
}

.project-hero .hero-media::after {
  background: linear-gradient(to top, var(--bg) 6%, rgba(11,11,13,.5) 55%, rgba(11,11,13,.3));
}

.project-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.poster {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}

.ficha { list-style: none; margin-top: 34px; border-top: 1px solid var(--line); }

.ficha li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.ficha .k { color: var(--muted); white-space: nowrap; }
.ficha .v { text-align: right; }

.stills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stills img {
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.video-embed {
  margin-top: 40px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.watch-btn { margin-top: 28px; }

.laurels { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

.laurel {
  border: 1px solid rgba(242,240,236,.28);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .85rem;
  line-height: 1.4;
}

.laurel strong { display: block; font-size: .95rem; color: var(--text); }

.next-case {
  display: block;
  margin-top: 80px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  transition: border-color .25s;
}

.next-case:hover { border-color: rgba(242,240,236,.45); }
.next-case small { color: var(--accent); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.next-case h3 { margin-top: 8px; color: var(--text); }

/* ---------- News ---------- */
.news-list { margin-top: 50px; display: grid; gap: 28px; }

.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s;
}

.news-item:hover { border-color: rgba(242,240,236,.45); }

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

.news-item .news-body { padding: 30px 32px 30px 0; }

.news-item time {
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}

.news-item h3 { margin: 10px 0 12px; }
.news-item p { font-size: .95rem; }
.news-item .more { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent); }

/* ---------- About ---------- */
.about-intro { max-width: 820px; }
.about-intro p { font-size: 1.1rem; margin-top: 20px; }

.milestones {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.milestone {
  border-left: 2px solid rgba(242,240,236,.5);
  padding-left: 22px;
}

.milestone .year { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.milestone p { font-size: .95rem; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 32px;
  transition: border-color .25s, transform .25s;
}

.contact-card:hover { border-color: rgba(242,240,236,.45); transform: translateY(-3px); }

.contact-card .icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card a.big { font-size: 1.15rem; font-weight: 600; }
.contact-card p { font-size: .92rem; margin-top: 6px; }

/* ---------- CTA / Footer ---------- */
.cta {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}

.cta h2 { max-width: 640px; margin: 0 auto 18px; }
.cta .contact-line { margin-top: 26px; display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.cta .contact-line a { font-size: 1.05rem; font-weight: 500; }

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner img { height: 20px; opacity: .8; }

.footer-social { display: flex; gap: 22px; }
.footer-social a { font-size: .9rem; color: var(--muted); }

.footer-copy { font-size: .85rem; color: var(--muted); }

/* ---------- Page head (interior pages) ---------- */
.page-head { padding: 170px 0 30px; }
.page-head p { max-width: 640px; margin-top: 16px; font-size: 1.08rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .projects-grid, .milestones { grid-template-columns: 1fr 1fr; }
  .project-layout { grid-template-columns: 1fr; gap: 40px; }
  .poster { position: static; max-width: 320px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .news-body { padding: 26px 28px; }
  .news-item .news-img { max-height: 240px; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .services-grid, .projects-grid, .milestones, .contact-grid, .stills { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 12px; text-align: center; }

  .lang-switch { width: auto; gap: 10px; padding-top: 14px; }
  .lang-switch a { display: inline; padding: 0; }
}


/* ---------- Contacto v2: editorial + mosaico BTS ---------- */
.contact-head {
  padding: 170px 0 70px;
  border-bottom: 1px solid var(--line);
}

.contact-head .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-head h1 { margin-bottom: 24px; }

.contact-head .lede {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 540px;
}

.contact-head .lede + .lede { margin-top: 14px; }

.contact-channels { padding-top: 14px; }

.contact-channels .label {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-channels a.main {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -.01em;
  margin-bottom: 26px;
  width: fit-content;
  border-bottom: 1px solid rgba(242,240,236,.25);
  padding-bottom: 3px;
  transition: border-color .2s;
}

.contact-channels a.main:hover { border-color: var(--accent); }

.contact-channels .where {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 6px;
}

.contact-channels .socials { margin-top: 18px; display: flex; gap: 22px; }
.contact-channels .socials a { font-size: .92rem; color: var(--muted); }
.contact-channels .socials a:hover { color: var(--accent); }

/* Mosaico */
.bts-section { padding: 80px 0 100px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 44px;
}

.mosaic figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(.92);
}

.mosaic figure:hover img { transform: scale(1.045); filter: saturate(1.05); }

.mosaic .w2 { grid-column: span 2; }
.mosaic .h2 { grid-row: span 2; }

@media (max-width: 960px) {
  .contact-head .wrap { grid-template-columns: 1fr; gap: 44px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

@media (max-width: 680px) {
  .contact-head { padding: 140px 0 56px; }
  .mosaic { gap: 10px; grid-auto-rows: 140px; }
}
