:root {
  --red: #c00000;
  --red-dark: #8e0000;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-1: #f4f4f4;
  --gray-2: #e2e2e2;
  --gray-3: #9a9a9a;
  --gray-4: #555555;
}

@font-face {
  font-family: 'Aptos';
  src: url('../fonts/Aptos.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER GENERAL */
header {
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 100;
}

.header-top-bg {
  background-image: url("../img/fondo_plomo_clarov2.png");


  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 15px 5%;
}

/* FILA SUPERIOR */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bottom-bg {
  background:
    linear-gradient(rgba(2, 16, 49, 0.514), rgba(17, 43, 105, 0.384)),
    url("../img/imagennavbarbor.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 0 5%;
}

.header-bot {
  min-height: 62px;

  display: flex;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-slogan {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-4);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.logo-slogan span {
  color: var(--red);
  margin: 0 8px;
}

/* LOGO */
.logo img {
  height: 70px;
  width: auto;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1px;
}

.logo-main {
  height: 80px !important;
  width: auto;
  transform: scale(0.85);
  transform-origin: center;
}

.logo-secondary {
  height: 68px !important;
}

.logo-divider {
  width: 1px;
  height: 58px;
  background: rgba(255, 255, 255, 0.75);
  margin: 0 12px;
}

.logo-group {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .logo-slogan {
    padding-left: 0;
    font-size: 12px;
  }

  .logo-slogan::before {
    display: none;
  }
}

/* CONTACTO */
.contact-info {
  display: flex;
  align-items: center;
  gap: 25px;
  color: white;
  font-size: 14px;
}

/* CONTACTO */
.correo-info {
  color: white;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

/* BUSCADOR E IDIOMA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions input {
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  outline: none;
  width: 180px;
}

.header-actions i {
  font-size: 22px;
  cursor: pointer;
}

.lang-btn {
  border: 3px solid white;
  color: white;
  background: transparent;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 1000;
  cursor: pointer;
}

nav ul {
  color: white;
  display: flex;
  gap: 28px;
  list-style: none !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  color: var(--red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

/* HERO */
.hero {
  position: relative;
  height: 80vh;
  min-height: 350px;
  max-height: 550px;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;

  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 140px;
  left: 5%;
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255);
}

.hero-dots span.active {
  background: var(--red);
}

/* SERVICIOS */

.services-home {
  max-width: 1400px;
  margin: auto;
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: bold;
}

.section-title span {
  color: #002147;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: 42px;
  margin: 15px 0;
}

.section-title p {
  max-width: 700px;
  margin: auto;
  color: #666;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-image {
  height: 230px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.02);
}

.service-content {
  padding: 35px;
  font-size: 20px;
  font-weight: bold;
}

.service-content h3 {
  font-size: 25px;
  margin-bottom: 20px;
}

.service-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #5d6674;
  margin-bottom: 24px;
}

.service-content a {
  color: #002147;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.service-content a i {
  margin-left: 8px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 350px;
  }

  .hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255);
  }
}

@media (max-width: 768px) {
  .services-home {
    max-width: 600px;
    margin: auto;
    padding: 30px 20px;
  }

  .logo img {
    height: 50px;
    width: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 250px;
  }

  .hero-slide {
    background-position: 70% center;
  }

  .hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255);
  }
}

/*======================================
    CERTIFICACIONES ISO
======================================*/

.iso-section {
  max-width: 1280px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.iso-header {
  text-align: center;
  margin-bottom: 70px;
}

.iso-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #8b93a4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.iso-subtitle::before,
.iso-subtitle::after {
  content: "";
  width: 60px;
  height: 2px;
  background: #e3e3e3;
}

.iso-header h2 {
  font-size: 64px;
  font-weight: 800;
  color: #aeaeae;
  margin: 0;
}

.iso-header h2 span {
  color: #002147;
}

.iso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
}

.iso-card {
  text-align: center;
  transition: 0.35s;
}

.iso-card:hover {
  transform: translateY(-8px);
}

.iso-card img {
  width: 220px;
  max-width: 100%;
  display: block;
  margin: 0 auto 30px;
  transition: 0.35s;
}

.iso-card:hover img {
  transform: scale(1.05);
}

.iso-card h3 {
  font-size: 42px;
  font-weight: 800;
  color: #aeaeae;
  margin-bottom: 20px;
}

.iso-card h3 span {
  color: #002147;
}

.iso-line {
  width: 70px;
  height: 6px;
  background: #002147;
  border-radius: 50px;
  margin: 0 auto 30px;
}

.iso-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3d52;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 25px;
}

.iso-card p {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/*======================================
    RESPONSIVE
======================================*/

@media (max-width: 1200px) {
  .iso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .iso-section {
    padding: 0 20px;
  }

  .iso-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .iso-header h2 {
    font-size: 42px;
  }

  .iso-card img {
    width: 180px;
  }

  .iso-card h3 {
    font-size: 34px;
  }

  .iso-card h4 {
    font-size: 20px;
  }

  .iso-card p {
    font-size: 16px;
  }

  .iso-subtitle {
    gap: 12px;
    letter-spacing: 4px;
    font-size: 12px;
  }

  .iso-subtitle::before,
  .iso-subtitle::after {
    width: 35px;
  }
}

/* FEATURE CARDS */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 5%;
  transform: translateY(60px);
  position: relative;
  z-index: 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  background: var(--white);
}

.feature-card {
  padding: 24px 22px;
  border-right: 1px solid var(--gray-2);
}

.feature-card:last-child {
  border-right: none;
}

.feature-icon {
  width: 34px;
  height: 34px;
  background: var(--gray-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--red);
  font-weight: 800;
}

.feature-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 800;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--gray-4);
  margin-bottom: 14px;
}

.feature-card img {
  border-radius: 8px;
  height: 90px;
  width: 100%;
  object-fit: cover;
}

/* SECTION SPACING */
section {
  padding: 90px 5% 60px;
}

.section-tight {
  padding-top: 120px;
}

/* ANALYSIS SECTION */
.analysis-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.analysis-title .accent {
  color: var(--red);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.affiliate-grid .logo {
  margin-bottom: 18px;
}

.affiliate-grid h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.affiliate-grid h3+h3 {
  color: var(--red);
  margin-bottom: 18px;
}

.affiliate-grid p {
  color: var(--gray-4);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 380px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gray-3);
  color: var(--black);
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.affiliate-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

.affiliate-photos img {
  border-radius: 10px;
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.photo-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.photo-label span {
  display: block;
  font-weight: 400;
  color: var(--gray-4);
  text-transform: none;
  font-size: 11px;
  margin-top: 2px;
}

.affiliate-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}

.dots-row {
  display: flex;
  gap: 8px;
}

.dots-row span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-2);
}

.dots-row span.active {
  background: var(--red);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-red span {
  font-weight: 400;
  text-transform: none;
  opacity: 0.85;
}

/* REFERENCES */
.references {
  background: var(--black);
  color: var(--white);
  padding: 50px 5%;
  position: relative;
  overflow: hidden;
}

.references::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(192, 0, 0, 0.35), transparent 60%);
}

.references h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 26px;
  position: relative;
}

.ref-logos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  position: relative;
}

.ref-logos div {
  background: var(--white);
  color: var(--black);
  min-width: 140px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

/* PRODUCT GROUPS */
.product-groups h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--gray-4);
  margin-bottom: 30px;
}

.pg-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  cursor: pointer;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  flex: 1;
}

.pg-card {
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  overflow: hidden;
}

.pg-card .pg-img {
  height: 160px;
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-card .pg-img img {
  height: 90%;
  object-fit: contain;
}

.pg-card p {
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BLASTING ENGINEERING */
.be-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 30px;
  margin: 0 5%;
  overflow: hidden;
  color: var(--white);
}

.be-banner {
  height: 240px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1605101479435-fb43160e6878?q=80&w=1600&auto=format&fit=crop") center/cover;
  display: flex;
  align-items: center;
  padding: 0 50px;
}

.be-banner h2 {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 480px;
}

.be-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
  align-items: center;
}

.be-body ul {
  list-style: none;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 30px;
}

.be-body ul li::before {
  content: "— ";
  opacity: 0.7;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.be-img {
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
}

.be-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* PROJECTS */
.projects h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.project-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.project-card .ptag {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.project-card .ploc {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: var(--white);
  font-size: 11px;
  opacity: 0.85;
}

.projects-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.btn-black-outline {
  border: 1px solid var(--black);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.nav-arrows {
  display: flex;
  gap: 10px;
}

.nav-arrows .arrow-btn {
  background: var(--gray-1);
  color: var(--black);
  width: 38px;
  height: 38px;
  font-size: 15px;
}

/* CAREERS */
.careers {
  background: var(--gray-1);
  color: var(--black);
  border-radius: 30px;
  margin: 90px 5% 0;
  overflow: hidden;
}

.careers-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding: 60px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.careers-top img {
  border-radius: 12px;
}

.careers-top h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.careers-top h3 .accent {
  color: var(--red);
}

.careers-top p {
  color: black;
  font-size: 14px;
  max-width: 560px;
  margin-bottom: 24px;
}

.btn-red-sm {
  background: var(--red);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

.careers-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 60px;
  align-items: center;
}

.careers-bottom img {
  border-radius: 12px;
  height: 300px;
  object-fit: cover;
  width: 100%;
}

.careers-bottom h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.careers-bottom p {
  color: black;
  font-size: 14px;
  margin-bottom: 30px;
}

.careers-bottom .progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  position: relative;
  margin-top: 20px;
}

.careers-bottom .progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 30%;
  background: var(--red);
}

/* DISCOVER */
.discover h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.discover p {
  color: var(--gray-4);
  font-size: 14px;
  margin-bottom: 30px;
  max-width: 520px;
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.discover-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.discover-card.one {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.discover-card.two {
  background: linear-gradient(135deg, #2a2a2a, var(--black));
}

.discover-card h4 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.discover-dot {
  text-align: center;
  margin-top: 24px;
}

.discover-dot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

/* NEWS */
.news h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card img {
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 14px;
}

.news-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 13px;
  color: var(--gray-4);
}

.news-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 5% 30px;
  margin-top: 30px;
  border-radius: 30px 30px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-grid h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 18px;
  font-weight: 800;
}

.footer-grid ul {
  list-style: none;
  font-size: 13px;
  color: var(--gray-3);
  line-height: 2.2;
}

.footer-grid ul li a:hover {
  color: var(--white);
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-logo span {
  color: var(--red);
}

.footer-grid .addr p {
  font-size: 13px;
  color: var(--gray-3);
  margin-bottom: 6px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-3);
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  nav {
    display: none;
  }

  .feature-cards,
  .projects-grid,
  .discover-grid,
  .pg-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .affiliate-grid,
  .be-body,
  .careers-top,
  .careers-bottom {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-cards {
    transform: none;
    margin-top: 30px;
  }

  .hero {
    border-radius: 0 0 24px 24px;
  }
}

/* =========================
   DROPDOWN SERVICIOS
========================= */

nav ul li {
  position: relative;
}

.dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown>a i {
  font-size: 11px;
  transition: 0.3s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;

  min-width: 280px;

  background: #fff;

  border-top: 4px solid var(--red);

  border-radius: 0 0 12px 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  padding: 10px 0;

  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.25s ease;

  z-index: 999;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;

  padding: 12px 22px;

  font-size: 13px;

  font-weight: 600;

  text-transform: none;

  letter-spacing: normal;

  transition: 0.25s;
}

.dropdown-menu a:hover {
  background: rgba(192, 0, 0, 0.05);
  color: var(--red);
  padding-left: 28px;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.active>a {
  color: var(--red);
}

.dropdown.active>a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/*ELIMINA LA FLECHITA HACIA ABAJO GENERADA POR BOOTSTRAP*/
.dropdown-toggle::after {
  display: none !important;
}

/*boton hamburguesa*/
.mobile-menu-btn {
  display: none;

  border: none;
  background: none;

  font-size: 34px;

  color: var(--red);

  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;

  width: min(350px, 100%);
  height: 100vh;

  background: #fff;

  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  transition: right 0.3s ease;

  z-index: 9999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 15px;
}

.mobile-menu-content a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
}

.mobile-sub-item {
  display: flex;
  align-items: center;
}

.mobile-item-link {
  flex: 1;
  padding: 12px 0;
  font-weight: 600;
  color: var(--black);
}

.mobile-sub-btn {
  width: 45px;
  border: none;
  background: transparent;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-sub-btn i {
  transition: 0.3s;
}

.mobile-sub-item.active .mobile-sub-btn i {
  transform: rotate(180deg);
}

.mobile-sub-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
}

.mobile-sub-item.active+.mobile-sub-content {
  max-height: 500px;
}

@media (max-width: 1200px) {
  .header-bot {
    display: none;
  }

  .contact-info {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 500px;
}

@media (max-width: 1200px) {
  .header-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
  }

  .mobile-menu-btn {
    display: block;
  }
}

.mobile-dropdown-btn {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 0;

  border: none;
  background: transparent;

  cursor: pointer;

  font-size: 15px;
  font-weight: 600;
  color: var(--black);

  text-align: left;

  transition: 0.3s;
}

.mobile-dropdown-btn:hover {
  color: var(--red);
}

.mobile-dropdown-btn i {
  transition: 0.3s;
  font-size: 12px;
}

.mobile-dropdown.active .mobile-dropdown-btn {
  color: var(--red);
}

.mobile-dropdown.active .mobile-dropdown-btn i {
  transform: rotate(180deg);
}

.mobile-dropdown-content a {
  display: block;

  padding: 10px 0 10px 20px;

  font-size: 14px;
  font-weight: 500;

  color: var(--gray-4);

  transition: 0.3s;
}

.mobile-dropdown-content a:hover {
  color: var(--red);
  padding-left: 28px;
}

.mobile-dropdown.active {
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

/*ESTILOS PARA MOSTRAR SUBITEMS DE LOS ITEMS DE SERVICIOS*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
  /* alinea con el borde superior del padre */
}

/* Mostrar al hacer hover en escritorio */
@media (min-width: 992px) {
  .dropdown-submenu:hover>.submenu {
    display: block;
  }
}

.submenu-arrow {
  float: right;
  margin-left: 10px;
  font-size: 0.75rem;
}

/* Si el submenú se sale de la pantalla por la derecha, se abre hacia la izquierda */
.dropdown-submenu.submenu-left>.submenu {
  left: auto;
  right: 100%;
}

/*estilos para carrusel en productos*/
/* =============================================
   CARRUSEL: PRODUCT GROUPS
   ============================================= */
.product-groups {
  padding: 3rem 0;
}

.product-groups h3 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.pg-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* contenedor con overflow oculto */
.pg-track-outer {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg, 8px);
  cursor: grab;
  user-select: none;
}

.pg-track-outer.dragging {
  cursor: grabbing;
}

/* la cinta que se desplaza */
.pg-grid {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pg-card {
  flex: 0 0 calc(25% - 1rem);
  /* 4 cards visibles en desktop */
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.pg-card:hover {
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.3));
  transform: translateY(-3px);
}

.pg-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.pg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-card p {
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

/* botones flecha compartidos */
.arrow-btn {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  color: inherit;
  transition:
    background 0.2s,
    border-color 0.2s;
  user-select: none;
}

.arrow-btn:hover {
  background: var(--primary-red, #c0392b);
  border-color: transparent;
}

/* =============================================
   CARRUSEL: PROJECTS
   ============================================= */
.projects {
  padding: 3rem 0;
}

.projects h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}

.projects-track-outer {
  overflow: hidden;
  border-radius: var(--radius-lg, 8px);
  cursor: grab;
  user-select: none;
  margin-bottom: 1.25rem;
}

.projects-track-outer.dragging {
  cursor: grabbing;
}

.projects-grid {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.project-card {
  flex: 0 0 calc(33.333% - 1rem);
  /* 3 visibles en desktop */
  min-width: 220px;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.3));
  transform: translateY(-3px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.06);
}

.project-card .ptag {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.55rem 0.75rem 0.15rem;
}

.project-card .ploc {
  font-size: 0.78rem;
  opacity: 0.6;
  margin: 0 0.75rem 0.65rem;
}

.projects-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-arrows {
  display: flex;
  gap: 0.5rem;
}

/* botón outline negro (ya deberías tenerlo, por si acaso) */
.btn-black-outline {
  padding: 0.55rem 1.4rem;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-black-outline:hover {
  background: var(--primary-red, #c0392b);
  border-color: var(--primary-red, #c0392b);
  color: #fff;
}

/* ——— responsive ——— */
@media (max-width: 900px) {
  .pg-card {
    flex-basis: calc(50% - 0.75rem);
  }

  .project-card {
    flex-basis: calc(50% - 0.75rem);
  }
}

@media (max-width: 560px) {
  .pg-card {
    flex-basis: 80%;
  }

  .project-card {
    flex-basis: 85%;
  }
}

.submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submenu-link {
  flex: 1;
}

.submenu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/*==========================
  SELECTOR DE IDIOMA
==========================*/

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 44px;
  padding: 0 16px;

  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 50px;

  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.25s;
}

.lang-btn:hover {
  border-color: #c00000;
  box-shadow: 0 6px 18px rgba(192, 0, 0, 0.15);
}

.lang-btn i {
  font-size: 12px;
  transition: 0.25s;
}

.lang-dropdown:hover .lang-btn i {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 220px;

  background: #fff;

  border-radius: 14px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);

  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: 0.25s;

  z-index: 9999;
}

.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 15px 18px;

  color: #222;
  text-decoration: none;

  font-size: 15px;

  transition: 0.25s;
}

.lang-menu a:hover {
  background: #f8f8f8;
  color: #c00000;
  padding-left: 24px;
}

.lang-menu a:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

/* Texto corporativo junto al logo */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  line-height: 1.15;
  white-space: nowrap;
  font-family: 'Aptos', sans-serif;
  font-weight: 800;
  letter-spacing: 0.8px;
}

/* Primera línea */
.logo-text span:first-child {
  font-size: 20px;
  color: #002147;
}

/* Segunda línea */
.logo-text span:last-child {
  font-size: 12px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* WHATSAPP FLOTANTE */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Icono SVG de WhatsApp */
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Tooltip opcional */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Animación de pulso */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Versión móvil: mover a la izquierda para no tapar contenido */
@media (max-width: 768px) {
  .whatsapp-float {
    left: 20px;
    right: auto;
    bottom: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-tooltip {
    left: 70px;
    right: auto;
    transform: translateX(-10px);
  }

  .whatsapp-tooltip::after {
    left: -8px;
    right: auto;
    border-left-color: transparent;
    border-right-color: #333;
  }

  .whatsapp-float:hover .whatsapp-tooltip {
    transform: translateX(0);
  }
}