/* =========================
   BASE GENERAL
========================= */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-top: 0;
}

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

.hero-video {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.background-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Anclajes para navbar fija */
#nosotros {
  scroll-margin-top: 103px;
}

#servicios {
  scroll-margin-top: 105px;
}

#clientes {
  scroll-margin-top: 105px;
}

#contacto {
  scroll-margin-top: 103px;
}


/* =========================
   NAVBAR
========================= */

.navbar .container {
  max-width: 1320px;
}

.navbar-custom {
  background: transparent;
  transition: 0.3s;
  padding: 25px 0;
}

.navbar-scrolled {
  background: rgba(253, 185, 19, 0.82);
  backdrop-filter: blur(6px);
}

.navbar-nav {
  align-items: center;
}

.logo-navbar {
  height: 45px;
  width: auto;
}

/* Links navbar */
.navbar .nav-link {
  position: relative;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 400;
  margin-left: 10px;
  transition: 0.3s;
}

.navbar-scrolled .nav-link {
  color: #111111 !important;
  font-weight: 400;
}

/* Línea inferior animada */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #FDB913;
  transition: width 0.3s ease;
}

/* Hover navbar transparente */
.navbar .nav-link:hover {
  color: #FDB913 !important;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* Hover navbar con scroll */
.navbar-scrolled .nav-link:hover {
  color: #ffffff !important;
}

.navbar-scrolled .nav-link::after {
  background: #ffffff;
}


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

.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
              url("../img/grua-fondo.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.video-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 360px;
}

.hero-content-left {
  text-align: left;
  padding-left: 200px;
  width: 100%;
  max-width: 1200px;
}

.hero-title {
  font-size: 4.15rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 200;
  max-width: 700px;
  margin-top: 0;
}

.hero-btn {
  background: #FDB913;
  border: none;
  color: black;
  font-weight: 600;
}

.hero-btn:hover {
  background: #E0A800;
}

.video-control {
  position: absolute;
  right: 60px;
  bottom: 60px;
  z-index: 3;
  width: 65px;
  height: 65px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 26px;
  cursor: pointer;
  transition: 0.3s;
}

.video-control:hover {
  background: rgba(0, 0, 0, 0.9);
}


/* =========================
   TRANSICIÓN HERO
========================= */

.hero-transition {
  background: #111111;
  padding: 32px 0;
  border-top: 4px solid #FDB913;
}

.hero-transition p {
  color: #ffffff;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0;
}


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

.about-section {
  padding-top: 0;
  padding-bottom: 0;
  background: #f7f7f7;
}

.about-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
}

.about-content {
  padding-left: 90px;
  padding-right: 120px;
}

.about-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #222222;
  padding-top: 3px;
}

.about-line {
  width: 70px;
  height: 5px;
  background: #FDB913;
  margin-bottom: 45px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444444;
}

.about-extra {
  margin-top: 35px;
}

.about-extra h5 {
  font-weight: 650;
  margin-bottom: 12px;
}


/* =========================
   BANNER EXPERIENCIA
========================= */

.experience-banner {
  margin-top: 0;
}

.experience-box {
  background: #FDB913;
  width: 100%;
  padding: 20px 40px;
  text-align: center;
}

.experience-box h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 15px;
}

.experience-box p {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #111111;
  margin: 0;
}


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

.services-hero-section {
  position: relative;
  min-height: calc(100vh - 95px);
  padding: 45px 0 60px;
  background-image: url("../img/servicios-fondo.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.services-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
}

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

.services-hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.services-hero-line {
  width: 70px;
  height: 5px;
  background: #FDB913;
  margin-bottom: 35px;
}

.services-list-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.services-list-icon {
  width: 53px;
  height: 53px;
  flex-shrink: 0;
}

.services-list-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.services-list-item h4 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.services-list-item p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

/* Recuadro derecho */
.services-info-box {
  background: rgba(255, 255, 255, 0.94);
  padding: 42px;
  max-width: 560px;
  margin-left: auto;
}

.services-info-box span {
  display: block;
  color: #FDB913;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.services-info-box h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #222222;
  margin-bottom: 25px;
}

.services-info-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 35px;
}

.services-info-btn {
  background: #111111;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 0;
  font-weight: 600;
}

.services-info-btn:hover {
  background: #FDB913;
  color: #111111;
}

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

.servicios-detalle-page {
  padding-top: 0;
}

.servicios-detalle-hero {
  position: relative;
  min-height: calc(100vh - 105px);
  margin-top: 105px;
  background-image: url("../img/servicios/servicios-fondo.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
}

.servicios-detalle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.60) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.servicios-detalle-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #ffffff;
}

.servicios-detalle-content h1 {
  font-size: 3.6rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.servicios-detalle-content p {
  font-size: 1.07rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.servicios-detalle-section {
  padding: 90px 0;
  background: #ffffff;
}

.servicios-detalle-header {
  margin-bottom: 45px;
}

.servicios-title-wrapper {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 24px;
}

.servicios-detalle-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.servicios-detalle-line {
  flex: 1;
  height: 4px;
  background: #FDB913;
  margin-top: 8px;
}

.servicios-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 65px;
}

.servicios-intro-grid p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 22px;
}

.servicios-intro-grid strong {
  color: #FDB913;
  font-weight: 700;
}

.servicios-card-grid {
  margin-top: 20px;
}

.servicio-box {
  display: block;
  height: 100%;
  padding: 38px 32px;
  background: #f3f3f3;
  border-radius: 16px;
  text-decoration: none;
  color: #111111;
  transition: 0.35s ease;
}

.servicio-box:hover {
  transform: translateY(-8px);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.servicio-box i {
  display: block;
  font-size: 3rem;
  color: #FDB913;
  margin-bottom: 22px;
}

.servicio-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.servicio-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
  margin: 0;
}

@media (max-width: 768px) {
  .servicios-detalle-content h1 {
    font-size: 2.5rem;
  }

  .servicios-title-wrapper {
    gap: 20px;
  }

  .servicios-detalle-title {
    font-size: 2rem;
    white-space: normal;
  }

  .servicios-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================
   CLIENTES
========================= */

#clientes {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #ffffff;
}

#clientes .row {
  margin-top: 55px;
  margin-bottom: 35px;
}

.client-logo-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-placeholder {
  width: 100%;
  height: 70px;
  background: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: bold;
  filter: grayscale(100%);
}

.client-logo-img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
}

.client-logo-img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.section-line {
  width: 85px;
  height: 4px;
  background: #FDB913;
  border-radius: 10px;
}


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

.contact-section {
  background: #f5f5f5;
}

.contact-info-side {
  position: relative;
  min-height: 100%;
  background-image: url("../img/contacto-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.contact-info-content {
  position: relative;
  z-index: 2;
  padding: 80px;
  color: white;
}

.contact-info-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-line {
  width: 70px;
  height: 5px;
  background: #FDB913;
  margin-bottom: 50px;
}

.contact-item {
  margin-bottom: 40px;
}

.contact-item h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-whatsapp-btn {
  display: inline-block;
  margin-top: 10px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-whatsapp-btn:hover {
  background: #1ebe5d;
  color: white;
}

.contact-form-wrapper {
  padding: 18px 90px;
  background: #ffffff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: #222;
}

.contact-input {
  border-radius: 0;
  padding: 18px;
  border: 1px solid #dcdcdc;
  box-shadow: none;
}

.contact-input:focus {
  border-color: #FDB913;
  box-shadow: none;
}

.contact-form-wrapper label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
}

.contact-btn {
  background: #FDB913;
  color: #000000;
  padding: 15px 35px;
  border-radius: 0;
  font-weight: 600;
  border: none;
}

.contact-btn:hover {
  background: #FDB913;
  color: #111111;
}


/* =========================
   EQUIPOS - HERO
========================= */

.equipos-hero {
  position: relative;
  min-height: calc(100vh - 105px);
  margin-top: 105px;
  background-image: url("../img/equipos-fondo2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
}

.equipos-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.62) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.equipos-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #ffffff;
}

.equipos-hero-content h1 {
  font-size: 3.6rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.equipos-hero-content p {
  font-size: 1.07rem;
  line-height: 1.7;
  margin-bottom: 0;
}


/* =========================
   EQUIPOS - LISTA
========================= */

.equipos-page {
  padding-top: 170px;
}

.equipos-section {
  padding: 90px 0;
  background: #ffffff;
}

/* Encabezado */
.equipos-header {
  margin-bottom: 70px;
}

.equipos-title-wrapper {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 24px;
}

.equipos-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.equipos-line {
  flex: 1;
  height: 4px;
  background: #FDB913;
  margin-top: 8px;
}

.equipos-description {
  max-width: 760px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

/* Grid */
#equipos .row {
  align-items: stretch;
}

#equipos .col-md-4 {
  display: flex;
}

/* Card */
.equipment-card {
  width: 100%;
  background: #ffffff;
  height: 100%;
  text-align: center;
  transition: 0.35s ease;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.equipment-card:hover {
  transform: translateY(-6px);
}

.equipment-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Imagen */
.equipment-image {
  width: 100%;
  height: 250px;
  flex-shrink: 0;

  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;
  margin-bottom: 25px;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.35s ease;
}

.equipment-card:hover .equipment-image img {
  transform: scale(1.04);
}

/* Contenido */
.equipment-content {
  min-height: 170px;
  background: #ffffff;
  padding: 0 20px;
  text-align: center;
}

.equipment-content h5 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.equipment-spec {
  display: block;
  font-size: 1rem;
  color: #222222;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.equipment-line {
  width: 100%;
  max-width: 260px;
  height: 4px;
  background: #FDB913;
  margin: 0 auto 14px;
}

.equipment-content p {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 0;
}

.equipment-img-small {
  width: 165% !important;
  height: 165% !important;
  object-fit: contain;
}

.equipo-detalle-section {
  padding: 180px 0 100px;
  background: #ffffff;
}

.equipo-detalle-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.equipo-detalle-tag {
  display: inline-block;
  color: #FDB913;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.equipo-detalle-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 10px;
}

.equipo-detalle-section h2 {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 28px;
}

.equipo-detalle-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 28px;
}

.equipo-detalle-list {
  padding-left: 20px;
  margin-bottom: 35px;
}

.equipo-detalle-list li {
  margin-bottom: 12px;
  color: #333333;
}

.equipo-detalle-btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 15px 34px;
  text-decoration: none;
  font-weight: 700;
}

.equipo-detalle-btn:hover {
  background: #FDB913;
  color: #111111;
}

.equipment-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.equipment-link:hover {
  color: inherit;
}

/* =========================
   MAQUINARIA - HERO
========================= */

.equipo-hero {
  position: relative;
  min-height: calc(100vh - 105px);
  margin-top: 105px;

  background-image:
    linear-gradient(
      90deg,
      #050505 0%,
      #050505 35%,
      rgba(5, 5, 5, 0.95) 48%,
      rgba(5, 5, 5, 0.35) 65%,
      rgba(5, 5, 5, 0.05) 100%
    ),
    url("../img/maquinarias/heli-fondo.jpg");

  background-size: cover, auto 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center, right center;

  display: flex;
  align-items: center;
}

.equipo-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.equipo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #ffffff;
}


.equipo-hero-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin: 0;
}


.equipo-hero-content p {
  font-size: 1.07rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/*  RESPONSIVE  */

@media (max-width: 991px) {

  .equipo-hero {
    min-height: 70vh;
  }

  .equipo-hero-content h1 {
    font-size: 2.8rem;
  }

}

@media (max-width: 768px) {

  .equipo-hero {
    min-height: 60vh;
    margin-top: 90px;
  }

  .equipo-hero-content {
    max-width: 100%;
  }

  .equipo-hero-content h1 {
    font-size: 2.2rem;
  }

  .equipo-hero-content p {
    font-size: 1rem;
  }

}

/* =========================
   GALERÍA MAQUINARIA
========================= */

.equipo-galeria-section {
  padding: 100px 0;
  background: #f5f5f5;
}

.equipo-galeria-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 50px;
}

.equipo-galeria-main {
  height: 650px;
  overflow: hidden;
  border-radius: 18px;
}

.equipo-galeria-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.5s ease;
}

.equipo-galeria-main:hover img {
  transform: scale(1.03);
}

.equipo-galeria-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.equipo-galeria-item {
  height: 315px;
  overflow: hidden;
  border-radius: 18px;
}

.equipo-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.5s ease;
}

.equipo-galeria-item:hover img {
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

  .equipo-galeria-grid {
    grid-template-columns: 1fr;
  }

  .equipo-galeria-main {
    height: 500px;
  }

}

@media (max-width: 768px) {

  .equipo-galeria-side {
    grid-template-columns: 1fr;
  }

  .equipo-galeria-item {
    height: 250px;
  }

  .equipo-galeria-main {
    height: 350px;
  }

}

/* =========================
   SERVICIO INDIVIDUAL
========================= */

.servicio-individual-hero {
  position: relative;
  min-height: calc(100vh - 105px);
  margin-top: 105px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
}

.arriendo-gruas-hero {
  background-image: url("../img/servicios/servicio-individual-fondo.jpg");
}

.servicio-individual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.62) 50%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.servicio-individual-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #ffffff;
}

.servicio-individual-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin: 0;
}



/* CONTENIDO */
.servicio-individual-section {
  padding: 90px 0;
  background: #ffffff;
}

.servicio-individual-header {
  margin-bottom: 60px;
}

.servicio-individual-title-wrapper {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 28px;
}

.servicio-individual-title-wrapper h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.servicio-individual-line {
  flex: 1;
  height: 4px;
  background: #FDB913;
  margin-top: 8px;
}

.servicio-individual-header p {
  max-width: 950px;
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.8;
  margin: 0;
}

/* CARDS */
.servicio-individual-cards {
  align-items: stretch;
}

.servicio-individual-card {
  height: 100%;
  background: #f3f3f3;
  border-radius: 18px;
  overflow: hidden;
  padding: 34px 30px 0;
}

.servicio-individual-icon {
  font-size: 3rem;
  color: #FDB913;
  margin-bottom: 22px;
}

.servicio-individual-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.servicio-individual-card p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 28px;
}

.servicio-individual-img {
  height: 240px;

  margin-left: -30px;
  margin-right: -30px;
  margin-bottom: 0;
  margin-top: 30px;

  overflow: hidden;
}

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

/* GALERÍA */
.servicio-galeria-section {
  padding: 40px 0 95px;
  background: #ffffff;
}

.servicio-galeria-img {
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.servicio-galeria-img.grande {
  height: 540px;
}

.servicio-galeria-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.servicio-galeria-img:hover img {
  transform: scale(1.04);
}

/* CTA */
.servicio-cta {
  padding: 80px 0;
  background: #FDB913;
}

.servicio-cta-box {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.servicio-cta-box h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 18px;
}

.servicio-cta-box p {
  font-size: 1.05rem;
  color: #222222;
  margin-bottom: 30px;
}

.servicio-cta-btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 15px 34px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.servicio-cta-btn:hover {
  background: #ffffff;
  color: #111111;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .servicio-individual-content h1 {
    font-size: 2.5rem;
  }

  .servicio-individual-title-wrapper {
    gap: 20px;
  }

  .servicio-individual-title-wrapper h2 {
    font-size: 2rem;
    white-space: normal;
  }

  .servicio-galeria-img,
  .servicio-galeria-img.grande {
    height: 280px;
  }
}

/* =========================
   CLASE D
========================= */
.clase-d-hero {
  background-image: url("../img/servicios/apoyo-terreno-fondo.jpg");
}

.servicio-galeria-video {
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.servicio-galeria-video.grande {
  height: 540px;
}

.servicio-galeria-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* HERO KOMATSU 5T */

.komatsu-hero {

  background-image:

    linear-gradient(
      90deg,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 38%,
      rgba(0,0,0,0.92) 52%,
      rgba(0,0,0,0.82) 55%,
      rgba(0,0,0,0.52) 68%,
      rgba(0,0,0,0.22) 82%,
      rgba(0,0,0,0) 100%
    ),

    url("../img/maquinarias/komatsu5T/komatsu-5t-fondo.jpeg");

  background-repeat: no-repeat;

  background-size:
    cover,
    auto 100%;

  background-position:
    center,
    right center;

}

/* HERO KOMATSU 3T */

.komatsu3t-hero{

background-image:
linear-gradient(
90deg,
rgba(0,0,0,.97) 0%,
rgba(0,0,0,.95) 28%,
rgba(0,0,0,.78) 45%,
rgba(0,0,0,.42) 63%,
rgba(0,0,0,.08) 100%
),

url("../img/maquinarias/komatsu3T/komatsu-3t-fondo.jpeg");

background-size: cover;

background-repeat:no-repeat;

background-position:center right;

}

/* =========================
   SELECTOR FLOTA 3T
========================= */

.flota-3t-section {
  padding: 90px 0;
  background: #ffffff;
}

.flota-3t-description {
  max-width: 760px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 45px;
}

.flota-3t-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.flota-3t-card {
  border: none;
  background: #f3f3f3;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: 0.3s ease;
}

.flota-3t-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  padding: 20px;
  background: #f3f3f3;
  transition: 0.3s ease;
}

.flota-3t-card span {
  display: block;
  padding: 0 22px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flota-3t-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.10);
}

.flota-3t-card:hover img {
  background: #ffffff;
}

.flota-3t-card.active {
  background: #f3f3f3;
  box-shadow: 0 0 0 3px #FDB913 inset;
}

.flota-3t-card.active img {
  background: #f3f3f3;
}

.flota-3t-card.active span {
  color: #FDB913;
}

/* DETALLE SELECCIONADO */

.flota-detalle-section {
  padding: 90px 0;
  background: #f5f5f5;
}

.flota-detalle-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  background: #ffffff;
  padding: 45px;
  border-radius: 22px;
}

.flota-detalle-main-img {
  height: 430px;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f4f4;
}

.flota-detalle-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 25px;
}

.flota-detalle-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 24px;
}

.flota-detalle-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

.flota-galeria-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.flota-galeria-img {
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.flota-galeria-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .flota-3t-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flota-detalle-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .flota-3t-grid,
  .flota-galeria-mini {
    grid-template-columns: 1fr;
  }

  .flota-detalle-box {
    padding: 28px;
  }

  .flota-detalle-main-img {
    height: 300px;
  }

  .flota-3t-card img {
    height: 230px;
  }
}

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

.servicios-portuarios-hero {
  background-image: url("../img/servicios/servicio-portuario-v4.jpg");
}

/* VIDEO GALERIA SERVICIOS */

.servicio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   CONSOLIDADO
========================= */

.consolidado-hero {
  background-image: url("../img/servicios/consolidado-v7.jpg");
}

/* =========================
   MENSAJES FORMULARIO 
========================= */

.alert-success {
  background: #e8fff0;
  border: 1px solid #c5f1d5;
  color: #198754;
  border-radius: 10px;
}

.alert-danger {
  background: #fff0f0;
  border: 1px solid #f5c2c7;
  color: #dc3545;
  border-radius: 10px;
}

/* =========================
   GALERÍA HOME
========================= */

#galeria {
  scroll-margin-top: -135px;
}

.home-galeria-section {
  padding: 100px 0;
  background: #f5f5f5;
}

.home-galeria-header {
  max-width: 760px;
  margin: 0 auto 55px;
}

.home-galeria-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 14px;
}

.home-galeria-header p {
  color: #555555;
  line-height: 1.7;
  margin: 0;
}

.home-galeria-carousel {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 55px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.home-galeria-carousel img {
  height: 560px;
  object-fit: cover;
}

.home-galeria-grid {
  margin-top: 10px;
}

.home-galeria-item {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.home-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.home-galeria-item:hover img {
  transform: scale(1.05);
}

.home-galeria-modal {
  background: transparent;
  border: none;
}

.home-galeria-modal img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

.home-galeria-close {
  position: absolute;
  top: -42px;
  right: 0;
  z-index: 10;
}

@media (max-width: 768px) {
  .home-galeria-section {
    padding: 75px 0;
  }

  .home-galeria-header h2 {
    font-size: 2.2rem;
  }

  .home-galeria-carousel img {
    height: 340px;
  }

  .home-galeria-item {
    height: 230px;
  }
}

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

.footer {
  background: #111;
  color: white;
  padding: 20px 0;
}


/* =========================
   FIX HERO HOME RESPONSIVE
========================= */

@media (max-width: 991px) {
  .navbar-custom {
    padding: 18px 0;
  }

  .navbar-custom .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo-navbar {
    height: 50px;
    max-width: 260px;
    object-fit: contain;
  }

  .navbar-collapse {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.88);
    padding: 18px;
    border-radius: 12px;
  }

  .navbar .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }

  .hero-content {
    justify-content: center;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content-left {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
    line-height: 1.05;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 95%;
  }

  .video-control {
    right: 24px;
    bottom: 35px;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .hero-video {
    height: 100svh;
    min-height: 720px;
  }

  .background-video {
    object-position: center center;
  }

  .video-overlay {
    background: rgba(0, 0, 0, 0.48);
  }

  .logo-navbar {
    height: 48px;
    max-width: 250px;
  }

  .hero-content-left {
    padding-left: 26px;
    padding-right: 26px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 280px;
  }

  .hero-content .btn {
    font-size: 1rem;
    padding: 10px 22px;
  }
}

/* =========================
   FIX DEFINITIVO MENÚ MÓVIL
========================= */

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 15px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.88);
  }

  .navbar-collapse .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    text-align: center;
  }

  .navbar-scrolled .navbar-collapse {
    background: rgba(253, 185, 19, 0.96) !important;
  }

  .navbar-scrolled .navbar-collapse .nav-link {
    color: #111111 !important;
  }

  .navbar-scrolled .navbar-collapse .nav-link:hover {
    color: #ffffff !important;
  }
}

/* =========================
   FIX FINAL NAVBAR MOBILE SCROLL
========================= */

@media (max-width: 991px) {

  .navbar-custom.navbar-scrolled,
  .navbar-custom.navbar-scrolled .container,
  .navbar-custom.navbar-scrolled .navbar-collapse,
  .navbar-custom.navbar-scrolled .navbar-collapse.show,
  .navbar-custom.navbar-scrolled .navbar-nav {
    background: rgba(253, 185, 19, 0.96) !important;
  }

  .navbar-custom.navbar-scrolled .navbar-collapse,
  .navbar-custom.navbar-scrolled .navbar-collapse.show {
    box-shadow: none !important;
    border-radius: 12px;
  }

  .navbar-custom.navbar-scrolled .nav-link {
    color: #111111 !important;
    opacity: 1 !important;
  }

  .navbar-custom.navbar-scrolled .nav-link:hover {
    color: #ffffff !important;
  }
}

/* =========================
   MOBILE MENU SIN BLOQUE AL HACER SCROLL
========================= */

@media (max-width: 991px) {
  .navbar-custom.navbar-scrolled .navbar-collapse,
  .navbar-custom.navbar-scrolled .navbar-collapse.show {
    background: transparent !important;
    padding: 18px 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .navbar-custom.navbar-scrolled .navbar-nav {
    background: transparent !important;
  }

  .navbar-custom.navbar-scrolled .nav-link {
    color: #111111 !important;
  }

  .navbar-custom.navbar-scrolled .nav-link:hover {
    color: #ffffff !important;
  }
}

/* =========================
   QUITAR BLOQUE AMARILLO MENÚ MÓVIL
========================= */

@media (max-width: 991px) {
  .navbar-custom.navbar-scrolled .container {
    background: transparent !important;
  }

  .navbar-custom.navbar-scrolled .navbar-collapse,
  .navbar-custom.navbar-scrolled .navbar-collapse.show,
  .navbar-custom.navbar-scrolled .navbar-nav,
  .navbar-custom.navbar-scrolled .navbar-nav .nav-item {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
}