@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =====================================================
   RESET / BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #1f1f1f;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  user-select: none;
}

/* =====================================================
   TITULOS GENERALES
===================================================== */
.section-title {
  line-height: 0.95;
}

.title-top {
  display: block;
  font-size: 72px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
}

.title-bottom {
  display: block;
  font-size: 64px;
  font-weight: 300;
  color: #8f8f8f;
  letter-spacing: -1px;
}

/* =====================================================
   HEADER
===================================================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 30px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  position: relative;
  width: 130px;
  height: 45px;
  display: flex;
  align-items: center;
}

.logo img {
  position: absolute;
  left: 0;
  transition: all 0.4s ease;
}

.logo-icon {
  width: 42px;
  opacity: 1;
  transform: translateY(0);
}

.logo-full {
  width: 40px;
  opacity: 0;
  transform: translateY(10px);
}

.header.scrolled .logo-icon {
  opacity: 0;
  transform: translateY(-10px);
}

.header.scrolled .logo-full {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  display: flex;
  gap: 65px;
}

.nav a {
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
  transform: scale(1.08);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.btn-header,
.btn-outline {
  border: 1px solid #ffffff;
  border-radius: 50px;
  padding: 16px 46px;
  font-size: 13px;
  color: #cccccc;
  transition: 0.3s ease;
}

.btn-header:hover,
.btn-outline:hover {
  background: #ffffff;
  color: #111111;
}

/* =====================================================
   HAMBURGUESA
===================================================== */
.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: #ffffff;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100vh;
  padding: 220px 170px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero-content,
.hero-logo {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 40px;
}

.hero-content h1 span {
  background: linear-gradient(90deg, #7b2cff 0%, #b347ff 35%, #00d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  max-width: 780px;
  font-size: 27px;
  line-height: 1.45;
  color: #f2f2f2;
  margin-bottom: 48px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: 350px;
  max-width: 100%;
  object-fit: contain;
}

/* =====================================================
   CLIENTES
===================================================== */
.clientes {
  min-height: 600px;
  padding: 90px 240px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  background: #000000;
}

.clientes-title span {
  color: #ffffff;
}

.clientes-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.clientes-window {
  width: 520px;
  overflow: hidden;
}

.clientes-track {
  display: flex;
  transition: transform 0.45s ease;
}

.client-logo {
  min-width: 260px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.client-logo img {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: 0.35s ease;
}

.carousel-arrow {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  font-size: 76px;
  cursor: pointer;
  transition: 0.3s ease;
}

.carousel-arrow:hover {
  color: #ffffff;
  transform: scale(1.12);
}

/* =====================================================
   NOSOTROS
===================================================== */
.nosotros {
  min-height: 720px;
  padding: 250px 300px;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 160px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('images/abstract-background-with-pink-purple-and-blue-li-2026-03-17-17-11-51-utc.jpg') center center / cover no-repeat;
}

.nosotros-img {
  overflow: hidden;
  border-radius: 24px;
}

.nosotros-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nosotros .section-title {
  line-height: 0.95;
  margin-bottom: 60px;
}

.nosotros .title-top {
  font-size: 76px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
}

.nosotros .title-bottom {
  font-size: 68px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -1px;
}

.nosotros-content p {
  max-width: 680px;
  color: #aaaaaa;
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.nosotros-content .btn-outline {
  display: inline-block;
  margin-top: 35px;
}

/* =====================================================
   PROYECTOS / TABS
===================================================== */
.proyectos {
  min-height: 100vh;
  padding: 140px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
}

.proyectos .section-title {
  line-height: 0.95;
  margin-bottom: 120px;
  text-align: center;
}

.proyectos .title-top {
  font-size: 76px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
}

.proyectos .title-bottom {
  font-size: 64px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -1px;
}

.tabs {
  width: min(1250px, 100%);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 90px;
  backdrop-filter: blur(12px);
  z-index: 800;
  transition: top 0.25s ease, transform 0.25s ease;
}

.tabs.tabs-fixed {
  position: fixed;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1250px, calc(100% - 48px));
  z-index: 800;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  height: 95px;
  border: none;
  border-radius: 70px;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tab.active {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.12);
}

.tab img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.icon-black,
.icon-white {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-78px, -50%);
  transition: opacity 0.3s ease;
}

.icon-white {
  opacity: 1;
}

.icon-black {
  opacity: 0;
}

.tab.active .icon-white {
  opacity: 0;
}

.tab.active .icon-black {
  opacity: 1;
}

/* =====================================================
   GALERIAS
===================================================== */
.galerias {
  width: min(1250px, 100%);
  margin-top: 80px;
}

.galeria {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  animation: fadeGallery 0.4s ease;
}

.galeria.active {
  display: grid;
}

.card-proyecto {
  width: 100%;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-proyecto img,
.card-proyecto video {
  width: 100%;
  height: 100%;
  display: block;
}

.card-proyecto.video {
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.card-proyecto.video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}


#fotos .card-proyecto {
  height: auto;
  background: transparent;
  border: none;
  overflow: hidden;
}

#fotos .card-proyecto img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 24px;
}



#logos {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#logos .card-proyecto {
  height: auto;
  background: transparent;
  border: none;
  overflow: visible;
}

#logos .card-proyecto img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes fadeGallery {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   CONTACTO CTA
===================================================== */
.contacto-cta {
  padding: 140px 24px;
  background: #0f0f0f;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto-cta .section-title {
  text-align: center;
  margin-bottom: 30px;
}

.contacto-cta .title-top {
  display: block;
  font-size: 76px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
}

.contacto-cta .title-bottom {
  display: block;
  font-size: 64px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -1px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 30px;
  border-radius: 60px;
  background: #25d366;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-top: 25px;
  transition: 0.35s ease;
}

.btn-whatsapp img {
  width: 32px;
  height: 32px;
}

.btn-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  width: 100%;
  padding: 60px 90px;
  background: #141414;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 45px;
}

.footer-logo img {
  width: 140px;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-phrase {
  font-size: 18px;
  color: #ffffff;
  max-width: 360px;
  line-height: 1.4;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: 0.3s;
}

.footer-contact a:hover {
  color: #ffffff;
  transform: translateX(6px);
}

.footer-contact img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-contact span {
  font-size: 15px;
  font-weight: 500;
}

.btn-top {
  border: none;
  padding: 15px 28px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.btn-top:hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1200px) {
  .header {
    padding: 40px;
  }

  .nav {
    gap: 30px;
  }

  .hero {
    padding: 180px 60px 90px;
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .clientes,
  .nosotros {
    padding: 80px 60px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .section-title {
    width: 100%;
    overflow: hidden;
  }

  .title-top {
    font-size: 46px;
    letter-spacing: -1px;
    line-height: 1;
  }

  .title-bottom {
    font-size: 38px;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .nosotros-img {
    height: 520px;
  }
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 24px;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
  }

  .footer-right {
    width: 100%;
    align-items: flex-start;
  }

  .footer-logo img {
    width: 90px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }

  .header {
    position: fixed;
    padding: 30px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
    background: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .logo {
    justify-self: start;
  }

  .hamburger {
    display: block;
    justify-self: center;
  }

  .btn-header {
    justify-self: end;
    padding: 12px 24px;
    font-size: 11px;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.4s ease;
    z-index: 1000;
  }

  .nav.active {
    left: 0;
  }

  .nav a {
    font-size: 28px;
    color: #ffffff;
  }

  .hero {
    min-height: auto;
    padding: 100px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 25px;
  }

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

  .hero-content {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .clientes {
    padding: 70px 24px;
    justify-items: center;
  }

  .clientes-title,
  .clientes-title h2 {
    width: 100%;
    text-align: center;
  }

  .clientes-carousel {
    width: 100%;
    gap: 18px;
  }

  .clientes-window {
    width: 260px;
  }

  .client-logo {
    min-width: 260px;
  }

  .nosotros {
    padding: 70px 24px;
  }

  .nosotros .title-top {
    font-size: 48px;
  }

  .nosotros .title-bottom {
    font-size: 42px;
  }

  .nosotros-content p {
    font-size: 17px;
  }

  .proyectos {
    padding: 90px 24px;
  }

  .proyectos .title-top {
    font-size: 48px;
  }

  .proyectos .title-bottom {
    font-size: 38px;
  }

  .tabs {
    width: 100%;
    padding: 10px;
    gap: 8px;
  }

  .tabs.tabs-fixed {
    top: 92px;
    width: calc(100% - 48px);
  }

  .tab {
    height: 70px;
    padding: 0;
    font-size: 0;
    justify-content: center;
    border-radius: 40px;
  }

  .tab.active {
    border-radius: 40px;
  }

  .tab img {
    width: 26px;
    height: 26px;
  }

  .icon-black,
  .icon-white {
    transform: translate(-50%, -50%);
  }

  .galeria {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-proyecto {
    width: 100%;
  }

  .card-proyecto.video {
    height: 78vh;
    border-radius: 22px;
  }

  .card-proyecto img,
  .card-proyecto video {
    object-fit: cover;
  }

  .contacto-cta .section-title,
  .contacto-cta .title-top,
  .contacto-cta .title-bottom {
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
  }

  .contacto-cta .title-top {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .contacto-cta .title-bottom {
    font-size: 32px;
    line-height: 1.1;
  }
}
