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

html {
  scroll-behavior: auto !important;
}

body {
  font-family: "Inter", Helvetica, sans-serif;
  background-color: #f0f0f0;
  color: #111;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica", Arial, sans-serif;
}

section {
  padding: 80px 10%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(-40px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: slideDownFade 1s ease forwards;
}

/* =========================================
   NAVBAR
========================================= */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  background: transparent;
}

.navbar-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: clamp(3.5rem, 9vw, 7rem);
  padding: 0.25rem;
}

.logo-box img {
  max-height: 100%;
  max-width: 90%;
  width: auto;
  height: 130px;
  display: block;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list a {
  text-decoration: none;
  position: relative;
  color: white;
  font-weight: 600;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #f3c300;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  height: 100vh;
  background: url('assets/projects/maquiladora/maquiladora-7.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: none !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--next-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;

  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.hero.fading::after {
  opacity: 1;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .cta {
  opacity: 0;
  animation: slideDownFade 1s ease-out forwards;
  position: relative;
  z-index: 1;
}

.hero h1 {
  animation-delay: 0.3s;
}

.hero p {
  animation-delay: 0.6s;
}

.hero .cta {
  animation-delay: 0.9s;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  max-width: 700px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  padding: 12px 20px;
  background: #f3c300;
  color: #111;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.25s ease, transform 0.25s ease;
  position: relative;
  width: fit-content;
}

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

.hero-tabs {
  position: absolute;
  bottom: 40px;
  left: 10%;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.hero-tab {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hero-tab:hover {
  color: #f3c300;
}

.hero-tab.active {
  border-bottom: 2px solid #f3c300;
  color: #f3c300;
}

/* =========================================
   HEADINGS
========================================= */
h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================
   SOBRE NOSOTROS
========================================= */
.about {
  background: #fff;
  font-size: 25px;
  font-weight: 400;
}

/* =========================================
   POLÍTICA DE CALIDAD
========================================= */
.quality-policy {
  background: #f0f0f0;
}

.quality-policy-desc {
  margin-top: 20px;
  line-height: 1.5;
}

/* =========================================
   PROJECTS GRID
========================================= */
.projects {
  background: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-grid figure {
  background: #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-grid figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-grid figure:hover img {
  transform: scale(1.05);
}

figcaption {
  padding: 15px;
  font-weight: 600;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.projects-btn-container {
  text-align: center;
  margin-top: 25px;
}

.projects-btn {
  display: inline-block;
  padding: 14px 34px;
  background: #f3c300;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.3s ease;
}

.projects-btn:hover {
  transform: translateY(-4px);
  background: #ffe066;
}

/* ================================
   HOME SERVICES PREVIEW
================================ */
.services-home {
  background: #f0f0f0;
  padding: 80px 10%;
  text-align: center;
}

.services-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: #f3c300;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

.services-cta {
  margin-top: 50px;
}

.cta-yellow {
  display: inline-block;
  padding: 12px 26px;
  background: #f3c300;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.25s ease;
}

.cta-yellow:hover {
  background: #ffe066;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }
}

/* ================================
   HOME FULL-WIDTH CTA
================================ */
.home-cta {
  background: #111;
  color: #fff;
  padding: 90px 10%;
  text-align: center;
  margin-top: 60px;
}

.home-cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.home-cta-content p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #f3c300;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  background: #ffe066;
}

@media (max-width: 768px) {
  .home-cta-content h2 {
    font-size: 28px;
  }

  .home-cta-content p {
    font-size: 16px;
  }
}

/* =========================================
   PROYECTOS
========================================= */
.hero-projects {
  height: 50vh;
  background: url('assets/projects/cholula/cholula-3.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.hero-projects h1 {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.hero-projects h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.projects-desc {
  font-size: 20px;
  font-weight: 400;
  background: white;
}

.projects-desc-p {
  line-height: 30px;
  margin-bottom: 30px;
}

.projects-desglose-industria {
  background: #f0f0f0;
}

.projects-desglose-inmobiliario {
  background: white;
}

.project-block {
  display: flex;
  gap: 100px;
  margin-top: 100px;
  align-items: center;
}

.project-block.reverse {
  flex-direction: row-reverse;
}

.project-block .info {
  padding-left: 90px;
}

.project-block.reverse .info {
  padding-left: 0;
  padding-right: 90px;
}

.project-block.reverse .info::before {
  left: auto;
  right: 0;
}

@media (max-width: 768px) {

  .project-block,
  .project-block.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .project-block .info,
  .project-block.reverse .info {
    padding-left: 0;
    padding-right: 0;
  }

  .project-block .info::before {
    display: none;
  }

  .gallery-slider {
    width: 100%;
    height: 450px;
  }
}

.gallery-slider {
  width: 65%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 550px;
}

.info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-left: 90px;
}

.info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #f3c300;
  border-radius: 3px;
}

.slider-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

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

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.25s ease, transform 0.25s ease;
}

.arrow.left {
  left: 12px;
}

.arrow.right {
  right: 12px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.08);
}

.arrow svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* =========================================
   SERVICIOS
========================================= */
.hero-servicios {
  height: 50vh;
  background: url('assets/projects/maquiladora/maquiladora-18.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.hero-servicios h1 {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.hero-servicios h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.servicios-desc {
  font-size: 20px;
  font-weight: 400;
  background: white;
}

.servicios-desc-p {
  line-height: 30px;
  margin-bottom: 30px;
}

.servicios-desglose {
  background: #f0f0f0;
}

.servicios-desglose h2 {
  margin-bottom: 100px;
}

.servicio-bloque {
  text-align: center;
  padding: 10px 10%;
}

.servicio-bloque h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
}

.servicio-bloque p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 18px;
}

.servicio-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
}

.servicio-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.servicio-gallery img.active {
  opacity: 1;
}

.servicio-bloque ul {
  list-style-type: none;
}

.services-columns {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 10%;
  flex-wrap: wrap;
  background: white;
}

.column-service {
  flex: 1 1 300px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.column-service h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
}

.column-service p {
  font-size: 18px;
  line-height: 1.6;
}

.column-service ul {
  margin-top: 50px;
  list-style-type: none;
}

.servicio-bloque+.servicio-bloque::before {
  content: "";
  display: block;
  width: 500px;
  height: 4px;
  background-color: #f3c300;
  border-radius: 3px;

  margin: 80px auto;
}

@media (max-width: 768px) {
  .servicio-bloque+.servicio-bloque::before {
    width: 120px;
    margin: 30px auto;
  }
}

/* =========================================
   CONTÁCTANOS
========================================= */
.hero-contact {
  height: 50vh;
  background: url('assets/projects/tequileria_leon/leon-6.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.hero-contact h1 {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.hero-contact h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.contact {
  background: white;
}

.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.contact-form button {
  padding: 14px;
  background: #111;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #333;
}

.contact-p {
  padding-bottom: 80px;
}

.contact-desc {
  font-size: 20px;
  font-weight: 400;
  background: white;
}

.contact-desc-p {
  line-height: 30px;
  margin-bottom: 30px;
}

.privacy-label {
  font-size: 14px;
}

.privacy-label a {
  color: #0066cc;
  text-decoration: underline;
}

.animate-restart {
  animation: slideDownFade 1s ease-out forwards;
}

.info-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.info-contact-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #0b7285;
  flex: 0 0 2rem;
}

.info-contact-item .icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.info-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.15;
}

.info-contact-link {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.info-contact-note {
  font-size: 0.85rem;
  color: #555;
}

.info-contact-link:hover,
.info-contact-link:focus {
  text-decoration: underline;
  outline: none;
}

@media (min-width: 720px) {
  .info-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-items: start;
  }

  .info-contact-item {
    align-items: flex-start;
  }
}

.gps-location {
  display: flex;
  justify-content: center;
}

.gps-location .map-frame {
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 100px;
}

.gps-location iframe {
  display: block;
  border: none;
  border-radius: 8px;
}

/* =========================================
   CONÓCENOS
========================================= */
.hero-about {
  height: 50vh;
  background: url('assets/about-temp.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.hero-about h1 {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.hero-about h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.about-desc {
  font-size: 20px;
  font-weight: 400;
  background: white;
}

.about-p {
  line-height: 30px;
  margin-bottom: 30px;
}

.about-clientes {
  background: #f0f0f0;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  padding: 20px;
  align-items: stretch;
}

.clientes-logo-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3.5rem, 9vw, 7rem);
  padding: 0.25rem;
  box-sizing: border-box;
}

.clientes-logo-box img {
  max-height: 100%;
  max-width: 90%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .clientes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clientes-logo-box {
    height: clamp(4rem, 12vw, 8rem);
  }
}

/* =========================================
   POLIZA DE PRIVACIDAD
========================================= */
.hero-privacy {
  height: 50vh;
  background: url('assets/projects/maquiladora/maquiladora-12.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.hero-privacy h1 {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.hero-privacy h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.privacy-desc {
  font-size: 20px;
  font-weight: 400;
}

.privacy-p {
  line-height: 30px;
  margin: 10px 0px;
}

.privacy-desglose {
  background: white;
}

.privacy-desglose h2 {
  margin-top: 40px;
}

.privacy-bullet_points {
  margin-left: 50px;
}

.privacy-bullet_points li {
  margin: 10px 0px;
}

.privacy-update_date-container {
  position: relative;
  margin: 100px 0;
}

.privacy-update_date {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 14px;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

footer a {
  color: #0073e6;
}

footer button {
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 16px;
}