:root {
  --bg: #0a0c10;
  --bg-alt: #12151c;
  --surface: #1a1f28;
  --text: #f4f6fa;
  --text-muted: #9aa3b5;
  --gold: #e8b923;
  --gold-dim: #c49a12;
  --accent: #4fd1c5;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 118px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: #fff;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.header--scrolled {
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
}

.logo__img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Barra superior: logo principal (sin bloque en el hero) */
.logo__img--header {
  height: 108px;
  max-width: min(450px, 72vw);
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
  mix-blend-mode: lighten;
  transition: height 0.3s var(--ease), filter 0.3s var(--ease);
}

.logo:hover .logo__img--header,
.logo:focus-visible .logo__img--header {
  filter: drop-shadow(0 4px 22px rgba(232, 185, 35, 0.25));
}

.header--scrolled .logo__img--header {
  height: 87px;
}

/* Pie de página */
.footer__logo-link {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.contact__logo-link {
  display: inline-block;
  margin-top: 2rem;
}

.logo__img--contact {
  width: min(240px, 100%);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
  mix-blend-mode: lighten;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold) !important;
}

.nav__cta:hover {
  background: var(--gold);
  color: #0a0c10 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.55) 45%, rgba(10, 12, 16, 0.75) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(232, 185, 35, 0.12), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
  max-width: 680px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
}

.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 2s var(--ease) infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0c10;
  box-shadow: 0 8px 32px rgba(232, 185, 35, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 185, 35, 0.45);
  color: #0a0c10;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section__head h2,
.services__copy h2,
.contact__info h2,
.video-showcase__copy h2,
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__head p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

/* Pillars */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 185, 35, 0.35);
  box-shadow: var(--shadow);
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services */
.services__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.services__card,
.services__visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.services__copy {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.services__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
  font-weight: 700;
}

.services__copy > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.services__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.services__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.services__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery__item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.9rem;
  font-weight: 500;
}

/* Video showcase */
.video-showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.video-showcase__player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-showcase__player video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}

/* Process */
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.process__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232, 185, 35, 0.25);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process__step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.process__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(232, 185, 35, 0.15), rgba(79, 209, 197, 0.08));
  border-block: 1px solid var(--border);
}

.cta-band__inner {
  text-align: center;
  max-width: 560px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Contact */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact__details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact__details li {
  margin-bottom: 1rem;
}

.contact__details span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact__details a {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
}

.contact__details a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
}

.form-row input.invalid,
.form-row textarea.invalid {
  border-color: #f87171;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-feedback {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-feedback--ok {
  color: #4ade80;
}

.form-feedback--err {
  color: #f87171;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* WhatsApp flotante (solo ícono) */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.wa-float__icon {
  display: block;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 900px) {
  .services__layout,
  .video-showcase__inner,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    background: rgba(10, 12, 16, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .process__steps {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__video {
    object-position: 60% center;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 92px;
  }

  .logo__img--header {
    height: 78px;
    max-width: min(330px, 78vw);
  }

  .header--scrolled .logo__img--header {
    height: 62px;
  }

  .services__card img,
  .services__visual img {
    min-height: 200px;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
  }

  .wa-float__icon {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}
