:root {
  --red: #ff1018;
  --red2: #d90810;
  --black: #070707;
  --dark: #101010;
  --gray: #707070;
  --light: #f6f6f6;
  --white: #fff;
  --line: #e6e6e6;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max), 92%);
  margin: auto;
}


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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: .25s;
}

.site-header.scrolled {
  background: rgba(5,5,5,.96);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 145px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.main-nav > a:not(.btn) {
  opacity: .9;
  position: relative;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: .2s;
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  width: 100%;
}

.main-nav .active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
  border: 1px solid transparent;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: #ff3138;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #111;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 25px;
}


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

.hero {
  position: relative;
  min-height: 700px;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050505;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  filter: brightness(.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.9) 0%,
    rgba(0,0,0,.65) 48%,
    rgba(0,0,0,.18) 100%
  );
}

.hero-content {
  position: relative;
  padding-top: 70px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 13px;
}

.eyebrow.red {
  color: var(--red);
}

h1 {
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 0 0 20px;
  font-weight: 800;
}

h1 span,
h2 span {
  color: var(--red);
}

.hero p {
  max-width: 600px;
  font-size: 17px;
  color: #ddd;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 35px;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 75px;
  padding-top: 22px;
  max-width: 900px;
}

.hero-points div {
  font-size: 15px;
}

.hero-points span {
  font-size: 12px;
  color: #ddd;
  margin-left: 7px;
}


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

.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2,
.why h2,
.cta h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0;
  font-weight: 800;
}

.section-copy {
  max-width: 410px;
  color: #666;
  font-size: 14px;
}

.text-link {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.service-card {
  position: relative;
  min-height: 310px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.service-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
  transition: .35s;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.95),
    rgba(0,0,0,.1) 70%
  );
}

.service-card > div {
  position: absolute;
  z-index: 1;
  left: 17px;
  right: 14px;
  bottom: 17px;
}

.service-card .icon {
  color: #fff;
  font-size: 18px;
}

.service-card h3 {
  font-size: 17px;
  margin: 8px 0 5px;
  line-height: 1.1;
}

.service-card p {
  font-size: 11px;
  color: #ddd;
  line-height: 1.45;
  margin: 0 0 12px;
}

.service-card a {
  font-size: 11px;
  font-weight: 700;
}

.service-card:hover img {
  transform: scale(1.05);
  opacity: .85;
}


/* =========================================================
   WHY / NOSOTROS
   ========================================================= */

.why {
  position: relative;
  background: #0b0b0b;
  color: #fff;
  min-height: 530px;
  overflow: hidden;
}

.why-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #0b0b0b 0%,
      rgba(11,11,11,.15) 55%
    ),
    url("assets/project-1.jpg") center/cover no-repeat;
  opacity: .85;
}

.why-inner {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: center;
}

.why-copy {
  width: 58%;
  padding: 70px 0;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
  margin-top: 45px;
}

.benefits strong {
  display: block;
  color: var(--red);
  font-size: 30px;
  margin-bottom: 12px;
}

.benefits h3 {
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 9px;
}

.benefits p {
  font-size: 11px;
  color: #bbb;
  margin: 0;
}


/* =========================================================
   PROYECTOS
   ========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1.6 / 1;
  background: #111;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform .4s ease, filter .25s ease;
}

/* Degradado */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.9),
    rgba(0,0,0,.25) 55%,
    rgba(0,0,0,0)
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

/* Texto encima de la fotografía */
.project-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity .3s ease,
    transform .3s ease;
}

.project-caption span {
  display: block;
  color: #ff1616;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.project-caption h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover .project-caption {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}


/* =========================================================
   MARCAS
   ========================================================= */

.brands {
  background: #090909;
  color: #fff;
  padding: 45px 0;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.brand-list span {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: #aaa;
  letter-spacing: -.5px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.92),
      rgba(0,0,0,.58)
    ),
    url("assets/obregondenoche.png") center/cover;
  opacity: .95;
}

.cta-inner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  margin-bottom: 14px;
}

.cta p {
  color: #ddd;
  font-size: 14px;
  margin: 0 0 20px;
}

.cta-box {
  padding: 24px 30px;
  background: rgba(10,10,10,.65);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  min-width: 280px;
}

.cta-box p {
  margin: 0 0 13px;
  font-size: 12px;
}

.cta-box p:last-child {
  margin: 0;
}


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

.site-footer {
  background: #080808;
  color: #fff;
  margin-top: 0;
}


/* =========================================================
   CTA DEL FOOTER
   ========================================================= */

.footer-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #e50914 0%,
    #ff1b24 45%,
    #b90009 100%
  );
}

.footer-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 500px;
  height: 300px;
  background: rgba(0,0,0,.15);
  transform: skewX(-25deg);
  pointer-events: none;
}

.footer-cta-content {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 125px;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-cta-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 10px;
  font-size: 26px;
  flex-shrink: 0;
}

.footer-cta-text {
  flex: 1;
}

.footer-cta-text h2 {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
}

.footer-cta-text p {
  margin: 0;
  font-size: 15px;
  opacity: .9;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  color: #111;
  padding: 15px 23px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all .25s ease;
  white-space: nowrap;
}

.footer-cta-button span {
  font-size: 21px;
  line-height: 1;
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  background: #f4f4f4;
}


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

.footer-main {
  background: #080808;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 55px 32px;
  display: grid;
  grid-template-columns:
    1.45fr
    .8fr
    1.25fr
    1fr;
  gap: 55px;
}


/* =========================================================
   MARCA
   ========================================================= */

.footer-brand img {
  width: 230px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 340px;
  margin: 0 0 22px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   COLUMNAS DEL FOOTER
   ========================================================= */

.footer-column h3 {
  position: relative;
  margin: 0 0 25px;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
}

.footer-column h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 10px;
  background: #e50914;
}

.footer-column > a {
  display: block;
  margin-bottom: 13px;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color .2s ease;
}

.footer-column > a:hover {
  color: #fff;
}


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

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

.footer-contact a,
.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.footer-contact a span,
.footer-location span {
  color: #aaa;
  font-size: 14px;
  line-height: 1.4;
}

.footer-contact a:hover span {
  color: #fff;
}


/* IMPORTANTE:
   Protege los iconos del contacto para que
   ninguna otra regla SVG los haga gigantes.
*/

.footer-contact .contact-icon-svg,
.footer-location .contact-icon-svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px;
  margin-top: 2px;
  fill: #ff1720 !important;
  display: block;
}


/* =========================================================
   REDES SOCIALES
   ========================================================= */

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid #3f3f3f;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #fff !important;
  text-decoration: none;
  transition: all .25s ease;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: #fff !important;
  color: #fff !important;
  opacity: 1 !important;
}


/* Instagram */

.footer-social a:nth-child(2) svg {
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 1.7;
}

.footer-social a:nth-child(2) svg circle:last-child {
  fill: #fff !important;
  stroke: none !important;
}


/* YouTube */

.footer-social a:nth-child(3) svg {
  fill: #fff !important;
}

.footer-social a:nth-child(3) .youtube-play {
  fill: #080808 !important;
}


/* Redes antiguas, por compatibilidad */

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 30px;
  height: 30px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
}

.socials a svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  transition: fill .2s ease;
}

.socials a:hover svg {
  fill: #ff1018;
}


/* Hover */

.footer-social a:hover {
  background: #e50914 !important;
  border-color: #e50914 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.footer-social a:hover svg {
  fill: #fff !important;
  color: #fff !important;
}

.footer-social a:hover svg path,
.footer-social a:hover svg circle {
  fill: #fff !important;
  stroke: #fff !important;
}


/* =========================================================
   BARRA INFERIOR DEL FOOTER
   ========================================================= */

.footer-bottom {
  width: 100%;
  border-top: 1px solid #252525;
  background: #060606;
}

.footer-bottom-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #888;
  font-size: 12px;
}

.footer-bottom-container > span {
  flex: 1;
}

.footer-bottom-container > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-separator {
  margin: 0 12px;
  color: #444;
}


/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  box-shadow:
    0 6px 18px rgba(0,0,0,.25),
    0 0 0 3px rgba(37,211,102,.12);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow:
    0 8px 25px rgba(0,0,0,.32),
    0 0 0 6px rgba(37,211,102,.12);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsapp-pulse 2.5s infinite;
}

@keyframes whatsapp-pulse {

  0% {
    transform: scale(1);
    opacity: .7;
  }

  70% {
    transform: scale(1.25);
    opacity: 0;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }

}


/* =========================================================
   RESPONSIVE 1050px
   ========================================================= */

@media (max-width: 1050px) {

  .service-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .brand-list {
    grid-template-columns: repeat(4,1fr);
  }

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

  .why-copy {
    width: 68%;
  }

  .footer-container {
    grid-template-columns:
      1.4fr
      .8fr
      1.2fr
      1fr;
    gap: 35px;
  }

}


/* =========================================================
   RESPONSIVE 800px
   ========================================================= */

@media (max-width: 800px) {

  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #080808;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 650px;
  }

  .hero-points {
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
  }

  .section {
    padding: 65px 0;
  }

  .section-head {
    display: block;
  }

  .section-copy {
    margin-top: 20px;
  }

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

  .why-image {
    width: 100%;
    opacity: .25;
  }

  .why-copy {
    width: 100%;
  }

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

  .cta-inner {
    display: block;
    padding: 65px 0;
  }

  .cta-box {
    margin-top: 30px;
  }

  .footer-container {
    grid-template-columns: repeat(2,1fr);
    gap: 35px;
  }

}


/* =========================================================
   RESPONSIVE 600px
   ========================================================= */

@media (max-width: 600px) {

  .footer-bottom-container {
    padding: 18px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom-container > div {
    justify-content: flex-start;
    white-space: normal;
    flex-wrap: wrap;
  }

  .footer-cta-content {
    padding: 25px 22px;
    flex-wrap: wrap;
  }

  .footer-cta-text {
    min-width: 200px;
  }

  .footer-cta-button {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }

}


/* =========================================================
   RESPONSIVE 520px
   ========================================================= */

@media (max-width: 520px) {

  .nav {
    height: 68px;
  }

  .brand img {
    width: 125px;
  }

  .hero-content {
    padding-top: 65px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-points {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 1.6 / 1;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 45px 22px;
  }

  .footer-brand img {
    width: 200px;
  }

  .section-head h2,
  .why h2,
  .cta h2 {
    font-size: 35px;
  }

  .project-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .project-caption h3 {
    font-size: 18px;
  }

}


/* =========================================================
   SEGURIDAD EXTRA PARA ICONOS SVG
   ========================================================= */

/*
   Esta regla evita que reglas generales o atributos
   del HTML hagan que los iconos del footer se disparen
   de tamaño.
*/

.footer-contact svg,
.footer-location svg {
  box-sizing: border-box;
}

.footer-contact .contact-icon-svg,
.footer-location .contact-icon-svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
}


/* =========================================================
   FIN DEL CSS
   ========================================================= */