* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html body {
  font-family: "Outfit", sans-serif;
  background-color: #000000;
  width: 100%;
  overflow-x: hidden;
}

/* Header */

#header {
  position: relative;
  z-index: 1000;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: none;
    border: none;
    width: 40px;
    height: 28px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5413c;
    margin: 6px 0;
  }
}


#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

#nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

#nav li {
  margin: 0 1.4em;
}

#nav a {
  color: whitesmoke;
  text-decoration: none;
  position: relative;
}

#nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: 0.3s;
}

#nav a:hover::after {
  width: 100%;
  left: 0;
}


@media (max-width: 768px) {

  #nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    background: rgba(0,0,0,0.97);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #nav.nav-open {
    transform: translateX(0);
  }

  #nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  #nav a {
    font-size: 1.8rem;
  }
}



.copyr {
  display: flex;
  width: 70%;
  flex-direction: row;
  text-align: center;
  margin: auto;
}

.redes {
  width: 25%;
  padding-bottom: 20px;
}
.formaredes {
  display: inline-block;
  height: 2em;
  background-color: aliceblue;
  margin-left: 10%;
  border-radius: 50%;
}

/* CI */
#video-background {
  width: 100%;
  height: 75vh;
  opacity: 0.6;
  object-fit: cover;
  position: relative;
  z-index: -1;
}
#logo {
  max-height: 100%;
  width: 100%;
  position: absolute;
  display: inline-block;
  text-align: center;
  margin-top: 5%;
  margin-bottom: 20px;
}

#logo-main {
  z-index: 3;
  width: 15%;
}

#lqc {
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #e6e6e6;
  text-align: center;
}

#lqc h1 {
  margin: 0;
  font-size: 3em;
}

#video-profesional,
.section-content {
  height: 540px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  background-color: #000000;
}


.brands {
  background: #000;
  padding: 50px 0;
  margin-top: auto;
  overflow: hidden;
}

.brands-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #aaa;
  opacity: 0.5;
  margin-bottom: 48px;
}

.brands-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: scrollBrands 40s linear infinite;
}

.brands-track img {
  height: 56px;
  opacity: 0.7;
  filter: grayscale(100%);
}

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


.section-part {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.content-25 {
  width: 380px;
  position: relative;
}

.content-75 {
  width: 855px;
}

.section-part video {
  width: 100%;
  max-width: 1140px;
  height: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Carrusel */
.carrusel {
  width: 100%;
  max-width: 1140px;
  height: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carrusel-track {
  display: flex;
  height: 540px;
  transition: transform 0.5s ease;
  width: 100%;
}

.carrusel-track img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  height: 540px;
  object-fit: contain;
  vertical-align: middle;
  width: 100%;
}

.carrusel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.carrusel-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 18px;
}

/* Cube */
.cube-container {
  --cube-side: 300px;
  width: var(--cube-side);
  height: var(--cube-side);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  perspective: 1200px;
  perspective-origin: center center;
  opacity: 0;
  left: -200px;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, left 0.8s ease-out;
  pointer-events: none;
  z-index: 5;
}

.cube-container.active {
  opacity: 1;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  pointer-events: auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s linear;
  transform: rotateY(-90deg) scale(0.7);
}

.cube-container.active .cube {
  transform: rotateY(0deg) scale(1);
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  border: 0;
  backface-visibility: hidden;
  padding: 10px;
  box-sizing: border-box;
  text-align: left;
  font-size: 0.9em;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.face h4 {
  margin: -4em 0.7em -0.1em 0.7em;
  font-size: 2em;
}

.face p {
  margin: 0 1em -3em 1em;
  font-size: 1.5em;
}

.face.front {
  transform: rotateY(0deg) translateZ(calc(var(--cube-side) / 2));
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  border: 1px solid rgba(229, 65, 60, 0.25);
}
.face.back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-side) / 2));
  background-color: #fdecef;
}
.face.right {
  transform: rotateY(0deg) translateZ(calc(var(--cube-side) / 2));
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  border: 1px solid rgba(229, 65, 60, 0.25);
}
.face.left {
  transform: rotateY(0deg) translateZ(calc(var(--cube-side) / 2));
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  border: 1px solid rgba(229, 65, 60, 0.25);
}

.face.initial-face {
  background-color: transparent;
  border: none;
  opacity: 1;
  pointer-events: none;
  transform: rotateY(0deg) translateZ(calc(var(--cube-side) / 2));
  z-index: 2;
  transition: opacity 0.3s ease;
}

.cube-container.active .initial-face {
  opacity: 0;
}

#cube-s2 {
  width: var(--cube-side);
  height: var(--cube-side);
  opacity: 0;
  left: auto;
  right: calc(-1 * var(--cube-side));
  transform: translateY(-50%);
}

#cube-s2 .cube {
  transform: rotateY(90deg) scale(0.7);
}

#cube-s2.active {
  opacity: 1;
  right: auto;
  transform: translateY(-50%);
}

#cube-s2.active .cube {
  transform: rotateY(0deg) scale(1);
}

#exp_vis {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #000000;
  height: auto;
}

#text_fn {
  display: table-cell;
  width: 75%;
  text-align: center;
  color: #fff;
  vertical-align: middle;
}
/*Celular*/

/* modelo 3d */
#model-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#model-container {
  width: 560px;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0b0b, #121212);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  cursor: grab;
}
#model-container.grabbing {
  cursor: grabbing;
}

/* Contacto */
#contacto {
  display: flex;
  flex-direction: row;
}

#formulario {
  align-items: center;
  justify-content: center;
}

#formulario {
  display: flex;
  width: 50%;
  max-width: 50%;
  align-items: center;
  justify-content: center;
  margin-top: 8%;
}

form {
  background-color: #111;
  padding: 30px;
  color: #fff;
  border-radius: 12px;
  max-width: 100%;
  width: 90%;
  box-shadow: 0 0 20px rgba(229, 65, 60, 0.3);
}

button {
  width: 100%;
  padding: 14px;
  background-color: #e5413c;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
  transition: background 0.3s;
}

button:hover {
  background-color: #c93832;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #333;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #e5413c;
}
::placeholder {
  color: #aaa;
}

#faqs {
  width: 50%;
  color: #fff;
  margin-top: 8%;
}
.faqs {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  max-width: 1140px;
  margin: auto;
  font-family: "Segoe UI", sans-serif;
}

.faqs h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: aliceblue;
  border-bottom: 2px solid #ff2a2a;
  display: inline-block;
  padding-bottom: 10px;
}

.faq-item p {
  display: none; /* Oculto por defecto */
  font-size: 1em;
  color: #ccc;
  line-height: 1.6;
  margin-top: 10px;
}

.faq-item.active p {
  display: block;
}

.faq-item h3 {
  cursor: pointer;
  position: relative;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  content: "-";
  transform: rotate(180deg);
}

  /* Footer*/
.footer-manifiesto {
  background: #000;
  color: #eaeaea;
  padding: 25px 5vw 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e5413c;
  margin-bottom: 48px;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: #e5413c;
  margin-bottom: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 64px;
  font-size: 0.95rem;
}

.footer-info a {
  color: #eaeaea;
  text-decoration: none;
  opacity: 0.85;
}

.footer-info a:hover {
  opacity: 1;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-manifiesto {
    padding: 90px 6vw 60px;
    text-align: center;
  }

  .footer-divider {
    margin: 48px auto;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

  /**/

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  #video-background {
    height: 75vh;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
  }

  #logo-main {
    margin-top: 40%;
    height: auto;
    width: 30%;
  }

  .brands {
    padding: 40px 0;
  }

  .brands-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
  }

  .brands-track {
    gap: 48px;
    animation-duration: 55s;
  }

  .brands-track img {
    height: 40px;
    opacity: 0.65;
  }

  #lqc {
    height: 25vh;
  }

  #lqc h1 {
    font-size: 1.8em;
  }

  #video-profesional,
  .section-content {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .section-content .section-part {
    width: 100%;
    margin-bottom: 20px;
  }

  .content-25,
  .content-75 {
    width: 100%;
    height: 300px;
  }

  .cube-container {
    --cube-side: 250px;
    width: var(--cube-side);
    height: var(--cube-side);
    left: calc(-1 * var(--cube-side));
  }

  .cube-container.active {
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
  }

  #cube-s2 {
    --cube-side: 250px;
    width: var(--cube-side);
    height: var(--cube-side);
    left: calc(-1 * var(--cube-side));
  }

  #cube-s2.active {
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
  }
  /*
    .face h4 {
        font-size: 1em;
    }
    .face p {
        font-size: 0.8em;
    } */

  .section-part video {
    max-height: 250px;
  }

  #fotografia {
    display: flex;
    flex-direction: column;
  }

  #fotografia .section-part:nth-child(2) {
    order: 1;
  }
  #fotografia .section-part:nth-child(1) {
    order: 2;
  }
  #exp_vis {
    display: flex;
    flex-direction: column;
  }
  #text_fn {
    width: 100%;
  }

  .animacion_int {
    width: 100%;
  }

  #contacto {
    display: flex;
    flex-direction: column;
  }
  #formulario {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 20%;
  }
  #faqs {
    width: 100%;
    color: #fff;
    margin-top: 8%;
  }

  .carrusel-track img {
    height: 275px;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  #video-background {
    height: 450px;
  }
  #lqc {
    height: 150px;
  }
  .cube-container {
    --cube-side: 280px;
  }

  #contacto {
    display: flex;
    flex-direction: column;
  }
  #formulario {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 20%%;
  }
  #faqs {
    width: 100%;
    color: #fff;
    margin-top: 8%;
  }
}

.quienes-somos {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  max-width: 1140px;
  margin: auto;
  font-family: "Segoe UI", sans-serif;
}

.quienes-somos h1 {
  font-size: 2.5em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 10px;
}

.quienes-somos p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 4rem 0;
}

.editorial-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* toque sutil sin JS */
.editorial-gallery img:hover {
  transform: translateY(-4px);
  filter: grayscale(0%);
}

/* responsive */
@media (max-width: 900px) {
  .editorial-gallery {
    grid-template-columns: 1fr;
  }

  .editorial-gallery img {
    height: 220px;
  }
}