@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");

:root {
  --bg: #0d0f14;
  --bg-alt: #131823;
  --text: #f2f3f7;
  --muted: #a6afbf;
  --accent: #ff7a00;
  --accent-soft: #ffb45e;
  --card: #1a2030;
  --line: #2a3244;
}

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

body {
  font-family: "Comic Neue", "Comic Sans MS", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #1b2231, #0b0d12 45%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.hero {
  padding: 32px 8vw 80px;
  position: relative;
  z-index: 2;
  background: linear-gradient(rgba(13, 15, 20, 0.75), rgba(13, 15, 20, 0.85)),
    url("img/portada.jpg");
  background-size: cover;
  background-position: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.logo {
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.btn {
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  border: none;
  color: #1a1208;
  font-weight: 600;
}

.btn-ghost {
  border-color: #3a445c;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-family: inherit;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--accent-soft);
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-family: inherit;
  font-size: 26px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


.section {
  padding: 80px 8vw;
}

.section-title {
  max-width: 520px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-family: inherit;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

.reel {
  background: var(--bg-alt);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cards.single-line {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}

.cards.single-line .reel-card {
  width: min(900px, 100%);
  display: flex;
  align-items: stretch;
  gap: 0;
}

.cards.single-line .reel-card video,
.cards.single-line .reel-card img {
  height: auto;
  width: 55%;
  max-width: 55%;
  object-fit: cover;
}

.cards.single-line .reel-meta {
  width: 45%;
  padding: 20px;
}

.card {
  padding: 24px;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border 0.2s ease;
}

.reel-card {
  padding: 0;
  overflow: hidden;
}

.reel-card video {
  width: auto;
  height: 110px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  background: #0b0f18;
  object-fit: contain;
}

.reel-card img {
  width: auto;
  height: 110px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.reel-meta {
  padding: 18px 20px 22px;
}

.reel-meta h3 {
  margin-bottom: 6px;
}

.reel-meta p {
  color: var(--muted);
  margin-bottom: 8px;
}

.reel-meta span {
  color: var(--accent-soft);
  font-size: 13px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.card h3 {
  font-family: inherit;
  margin-bottom: 8px;
}

.card span {
  color: var(--accent-soft);
  font-size: 13px;
}

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

.services .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.services .grid-3 {
  justify-items: center;
}

.services .service {
  text-align: center;
  width: min(300px, 100%);
}

.gallery {
  background: #10141f;
}

.gallery .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.masonry {
  column-count: 4;
  column-gap: 18px;
}

.pin {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.pin img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.pin video {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.pin:hover img,
.pin:hover video {
  transform: scale(1.04);
  filter: saturate(1.05);
  opacity: 0.5;
}

.pin.is-playing:hover video,
.pin.is-playing video {
  opacity: 1;
  filter: none;
}

.pin figcaption {
  display: none;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 13px;
}


.service,
.step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #121826;
}

.service h4,
.step h4 {
  font-family: inherit;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.step span {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
}

.contact {
  background: linear-gradient(120deg, #1a1f2b, #111520);
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 28px;
  background: #0f131d;
  border: 1px solid #2d3548;
  text-align: center;
}

.contact-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.contact-split .contact-card {
  margin: 0;
  text-align: left;
}

.contact-image {
  border-radius: 28px;
  border: 1px solid #2d3548;
  background: url("img/portada.jpg") center / cover no-repeat;
  min-height: 320px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2d3548;
  background: #0b0f18;
  color: var(--text);
}

.footer {
  padding: 24px 8vw 40px;
  color: var(--text);
  background: #0c111a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.footer p {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.socials a {
  color: var(--accent-soft);
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f2737;
  background: #101621;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--accent-soft);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #1f2737;
  padding-top: 16px;
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

.reel-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.reel-modal.active {
  display: flex;
}

.reel-content {
  background: #141a27;
  border-radius: 24px;
  padding: 32px;
  width: min(560px, 90vw);
  border: 1px solid #2e374b;
  position: relative;
  text-align: center;
}

.reel-placeholder {
  height: 240px;
  border-radius: 18px;
  border: 1px dashed #3b465f;
  margin-top: 18px;
  background: radial-gradient(circle at top left, #21293c, #0b0f18);
}

.close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
  z-index: 20;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: min(820px, 70vw);
  max-height: 90vh;
  display: flex;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 16px;
  display: block;
}

.lightbox-meta {
  width: min(320px, 80vw);
  text-align: center;
  background: rgba(255, 255, 255, 1);
  padding: 16px 18px;
  border-radius: 14px;
}

.lightbox-meta h3 {
  font-size: 28px;
  margin-bottom: 6px;
  color: #101319;
}

.lightbox-meta p {
  color: #101319;
  font-size: 18px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: rgba(20, 24, 35, 0.8);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}


@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 24px 6vw 60px;
  }
  .section {
    padding: 64px 6vw;
  }
  .contact-card {
    padding: 28px;
  }
  .contact-split .contact-card {
    text-align: center;
  }
  .lightbox {
    flex-direction: column;
  }
  .lightbox-meta {
    text-align: center;
  }
  .masonry {
    column-count: 1;
  }
}
