:root {
  --bg: #090a0d;
  --surface: #12141a;
  --surface-light: #1a1d26;
  --text: #f5f6f8;
  --muted: #9da3b0;
  --gold: #d4af37;
  --gold-hover: #e5c352;
  --border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tag {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--gold);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--gold);
  color: #090a0d !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 10, 13, 0.55) 0%, rgba(9, 10, 13, 0.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: #d5d9e2;
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--gold);
  color: #090a0d;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s ease;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.btn-glass:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* PORTAFOLIO */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  color: #090a0d;
  border-color: var(--gold);
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
}

.thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .thumb-wrapper img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(9, 10, 13, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-body {
  padding: 22px;
}

.cat-label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.card-body h3 {
  margin: 6px 0 8px;
  font-size: 1.18rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* SOBRE MÍ */
.about-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 54px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text p {
  color: var(--muted);
  margin-top: 16px;
}

.highlights {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.highlights li {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-size: 0.95rem;
  color: #d8dce6;
}

/* CLIENTES */
.clients-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.clients-title {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 32px;
}

.logos-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
}

.client-item {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s ease;
}

.client-item:hover {
  color: var(--gold);
}

/* CONTACTO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}

.contact-info p {
  color: var(--muted);
  margin-top: 14px;
}

.direct-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.contact-pill {
  background: var(--surface-light);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--gold);
  transition: border-color 0.2s ease;
}

.contact-pill:hover {
  border-color: var(--gold);
}

.social-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-links a:hover {
  color: var(--gold);
}

.quote-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.full-width {
  width: 100%;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* MODAL VIDEO */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 920px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.video-frame-wrapper {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-frame-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .navbar {
    padding: 14px 5%;
  }

  .logo {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .logo-img {
    height: 30px;
    max-width: 145px;
  }

  .section {
    padding: 68px 0;
  }

  .clients-section {
    padding: 48px 0;
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-wrapper {
    padding: 28px 20px;
  }

  .logos-bar {
    gap: 14px 18px;
  }

  .client-item {
    font-size: 0.88rem;
    letter-spacing: 1.2px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 10, 13, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 6%;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }

  .nav-links .btn-outline {
    margin: 14px 6%;
    text-align: center;
  }
}