:root {
  --bg-main: #050505;
  --bg-soft: #0b0b0b;
  --bg-card: #101010;
  --text-main: #f3efe6;
  --text-secondary: #8d8578;
  --accent: #d7a928;
  --accent-soft: #b88d1d;
  --accent-strong: #f0c62b;
  --line: #171717;
  --card: #0a0a0a;
  --black: #050505;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 110px;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
  margin-right: 88px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
}

.btn-header {
  background: var(--accent);
  color: var(--black);
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 24px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   HERO
========================= */

.hero,
.procesos,
.contacto {
  background: var(--bg-main);
}

.hero {
  padding: 120px 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 56px;
}

.hero-copy {
  position: relative;
  order: 1;
  padding-top: 40px;
}

.hero-logo {
  position: relative;
  top: -45px;
  left: -30px;
}

.hero-logo img {
  width: 180px;
  height: auto;
  display: block;
}

.hero-copy h1 {
  margin: 0 0 28px;
  font-size: 5rem;
  line-height: 0.96;
  color: var(--text-main);
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-strong);
}

.hero-text {
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.hero-media {
  order: 2;
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

/* =========================
   SECCIONES GENERALES
========================= */

.eyebrow {
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.descripcion {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* =========================
   PROCESOS / COMERCIAL
========================= */

.procesos {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.procesos-header {
  width: 100%;
  max-width: none;
  margin-bottom: 40px;
}

.procesos-header h2 {
  font-size: 3.5rem;
  margin: 0 0 16px;
  line-height: 1.08;
  color: var(--text-main);
}

.procesos-header h2 span {
  color: var(--accent-strong);
}



/* =========================
   GRID DE VIDEOS
========================= */

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

/* Al cargar: solo se ven los 3 primeros */
.procesos-grid .video-item:nth-child(n+4) {
  display: none;
}

/* Al expandir: se ven todos */
.procesos-grid.expanded .video-item {
  display: block;
}


/*BOTN Ver más*/
.btn-more {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;

  transition: all 0.3s ease;
}

/* Hover */
.btn-more:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* Click */
.btn-more:active {
  transform: translateY(0);
}

/* Centrado y aire */
.procesos-more {
  margin-top: 40px;
  display: flex;
  text-align: center;
}


/* =========================
   TARJETAS DE VIDEO
========================= */

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  min-height: 260px;
}

.video-item.wide {
  grid-column: span 3;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.video-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.video-item:hover video {
  transform: scale(1.05);
}

/* =========================
   MODAL REPRODUCTOR
========================= */

.video-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 80vw;
  max-width: 1100px;
  margin: auto;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.video-modal__box {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 28px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-modal__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal__content video {
  width: 80%;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  background: #000;
  border-radius: 12px;
  object-fit: contain;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* =========================
   CONTACTO
========================= */

.contacto {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.contacto-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contacto-copy h2 {
  font-size: 4.4rem;
  line-height: 0.94;
  margin: 0 0 24px;
  color: var(--text-main);
}

.contacto-copy h2 span {
  display: block;
  color: var(--accent-strong);
}

.contacto-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 42px;
}

.contacto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-steps li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contacto-panel {
  background: transparent;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.choice-block,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-label,
.form-group label {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 700;
}

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

.choice-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  padding: 16px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.choice-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--line);
  padding: 18px 16px;
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5f5b53;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 16px 34px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.95;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--accent);
  border-top: none;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}

.footer-logo,
.footer-brand p,
.footer-nav h4,
.footer-contact h4,
.footer-nav a,
.footer-contact a,
.footer-bottom p {
  color: var(--black);
}

.footer-logo {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 420px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav h4,
.footer-contact h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(5, 5, 5, 0.18);
  padding: 16px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .btn-header {
    margin-left: auto;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy,
  .hero-media {
    order: initial;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-logo {
    top: -45px;
    left: -25px;
  }

  .procesos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-item.wide {
    grid-column: span 2;
  }

  .video-modal {
    width: 90vw;
  }

  .video-modal__content video {
    width: 90%;
  }

  .contacto-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacto-copy h2 {
    font-size: 3rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .procesos-grid:not(.expanded) .video-item:nth-child(3) {
    display: none;
  }
}

/* =========================
   RESPONSIVE MÓVIL
========================= */

@media (max-width: 600px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-logo img {
    width: 180px;
  }

  .procesos {
    padding: 56px 0;
  }

  .procesos-header h2 {
    font-size: 1.9rem;
  }

  .procesos-grid {
    grid-template-columns: 1fr;
  }
  
  .procesos-more {
    justify-content: center; /* centro en móvil */
  }
  

  .video-item,
  .video-item.wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .video-modal {
    width: 94vw;
  }

  .video-modal__box {
    padding: 16px;
    border-radius: 14px;
  }

  .video-modal__content video {
    width: 100%;
    max-height: 70vh;
  }

  .video-modal__close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .contacto {
    padding: 72px 0;
  }

  .contacto-copy h2 {
    font-size: 2.5rem;
  }

  .choice-row {
    gap: 10px;
  }

  .choice-btn {
    width: 100%;
    text-align: left;
  }
}


/* SECCIÓN CLIENTES */
.clientes {
  background-color: #000;
  padding: 140px 0 140px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clientes-header {
  margin-bottom: 56px;
}

.clientes-header h2 {
  margin: 0;
  font-size: 3.5rem;
  line-height: 1.05;
  color: var(--text-main);
}

.clientes-header h2 span {
  color: var(--accent-strong);
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: center;
}

.cliente-logo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cliente-logo img {
  display: block;
  width: 100%;
  max-width: 240px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cliente-logo img:hover {
  opacity: 1;
  transform: scale(1.04);
}