
/* ========================================
   BOLTING — SERVICIOS
======================================== */

.servicios-hero,
.servicios-area,
.servicios-rental,
.servicios-training,
.servicios-cta {
  --rojo: #d71920;
  --negro: #101010;
  --gris: #5d5d5d;
  font-family: "Inter", Arial, sans-serif;
}

.servicios-hero *,
.servicios-area *,
.servicios-rental *,
.servicios-training *,
.servicios-cta * {
  box-sizing: border-box;
}

.servicios-hero .container,
.servicios-area .container,
.servicios-rental .container,
.servicios-training .container,
.servicios-cta .container {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}

.servicios-hero h1,
.servicios-area h2,
.servicios-rental h2,
.servicios-training h2,
.servicios-cta h2,
.servicios-area h3,
.servicios-rental h3,
.servicios-training h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.servicios-hero .text-red,
.servicios-area .text-red,
.servicios-rental .text-red,
.servicios-training .text-red,
.servicios-cta .text-red {
  color: #d71920;
}

.servicios-hero .section-eyebrow,
.servicios-area .section-eyebrow,
.servicios-rental .section-eyebrow,
.servicios-training .section-eyebrow,
.servicios-cta .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.servicios-hero .eyebrow-line,
.servicios-area .eyebrow-line,
.servicios-rental .eyebrow-line,
.servicios-training .eyebrow-line,
.servicios-cta .eyebrow-line {
  width: 34px;
  height: 3px;
  flex-shrink: 0;
  background: #d71920;
}

/* HERO */

.servicios-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  background: #111 url("../assets/imagenes/hero_servicios.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.servicios-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.97) 0%,
    rgba(0,0,0,.82) 48%,
    rgba(0,0,0,.25) 100%
  );
  pointer-events: none;
}

.servicios-hero-contenido {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 100px;
}

.servicios-hero h1 {
  max-width: 950px;
  font-size: clamp(45.6px, 5.1vw, 85.2px);
  line-height: .84;
  margin: 35px 0 28px;
}

.servicios-hero p {
  max-width: 570px;
  color: #ccc;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.servicios-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
}

.servicios-hero-links a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 17px 23px;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .09em;
  transition: .25s ease;
  background: var(--btn-gradient);
}

.servicios-hero-links a:hover {
  background: var(--btn-gradient-hover);
  border-color: #242424;
  color: #fff;
}

/* ENCABEZADOS DE ÁREAS */

.servicios-area,
.servicios-rental,
.servicios-training {
  scroll-margin-top: 90px;
  padding: 120px 0 140px;
}

.servicios-area-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 55px;
  margin-bottom: 60px;
}

.servicios-area-header h2 {
  font-size: clamp(85px, 10vw, 155px);
  line-height: .85;
  margin: 27px 0 0;
}

.servicios-area-header > p {
  max-width: 420px;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.8;
}

/* ========================================
   SERVICES — CINTA ANIMADA
======================================== */

.servicios-area {
  background: linear-gradient(
  125deg,
  #ffffff 0%,
  #d1d1d1 25%,
  #858585 55%,
  #c2c2c2 80%,
  #ffffff 100%
);
  color: #111;
  padding: 90px 0 110px;
  overflow: hidden;
}

/* ENCABEZADO */

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 55px;
}

.services-header h2 {
  font-size: clamp(80px, 9vw, 145px);
  line-height: .85;
  margin: 0;
}

.services-header p {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* CINTA */

.services-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.services-track {
  display: flex;
  width: max-content;
  animation: servicesScroll 38s linear infinite;
}

.services-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

/* CARDS */

.services-card {
  position: relative;
  flex: 0 0 330px;
  width: 330px;
  height: 330px;
  padding: 115px 30px 35px;

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

  background: #171717 url('../assets/imagenes/fondo_cards_services.png') center / cover no-repeat;
  border: none;

  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );

  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}

.services-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: #d71920;
}

.services-card h3 {
  font-size: 34px;
  line-height: .95;
  margin: 0 0 20px;
  color: #111;
}

.services-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* HOVER */

.services-marquee:hover .services-track {
  animation-play-state: paused;
}
 
.services-card:hover {
  background-image: url('../assets/imagenes/fondo_cards_services_hover.png');
  transform: translateY(-12px) scale(1.035);
}

.services-card h3 {
  position: relative;
  z-index: 2;
  font-size: 34px;
  line-height: .95;
  margin: 0 0 20px;
  color: #fff;
  transition: color .3s ease;
}

.services-card p {
  position: relative;
  z-index: 2;
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  transition: color .3s ease;
}

.services-card:hover h3,
.services-card:hover p {
  color: #fff;
}


.services-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* MOVIMIENTO */

@keyframes servicesScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========================================
   RENTAL — HEXÁGONOS
======================================== */

.servicios-rental {
  background: linear-gradient(
  135deg,
  #160809 0%,
  #3b0c10 35%,
  #651219 65%,
  #19090b 100%
);
  color: #fff;
  padding: 75px 0 100px;
  overflow: hidden;
}

/* DISTRIBUCIÓN */

.rental-layout {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, 320px);
  gap: 0 12px;
  align-items: center;
}

/* INTRO */

.rental-intro {
  grid-column: 1 / 3;
  grid-row: 1;
  padding-right: 25px;
}

.rental-line {
  display: block;
  width: 80px;
  height: 4px;
  background: #d71920;
  margin-bottom: 30px;
}

.rental-intro h2 {
  font-size: clamp(75px, 8vw, 125px);
  line-height: .85;
  margin: 0 0 28px;
}

.rental-intro p {
  max-width: 380px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* HEXÁGONOS */

.rental-hex {
  position: relative;
  width: 100%;
  height: 310px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  transition: filter .35s ease;
}

/* IMÁGENES EXISTENTES */

.rental-01 {
  grid-column: 3 / 5;
  grid-row: 1;
  background-image: url('../assets/imagenes/servicios_rental_torque.png');
}

.rental-02 {
  grid-column: 5 / 7;
  grid-row: 1;
  background-image: url('../assets/imagenes/servicios_rental_bridas.png');
}

.rental-03 {
  grid-column: 1 / 3;
  grid-row: 2;
  background-image: url('../assets/imagenes/servicios_rental_cilindro.png');
}

.rental-04 {
  grid-column: 3 / 5;
  grid-row: 2;
  background-image: url('../assets/imagenes/servicios_rental_compresores.png');
}

.rental-05 {
  grid-column: 5 / 7;
  grid-row: 2;
  background-image: url('../assets/imagenes/servicios_rental_generadores.png');
}

/* CAPA OSCURA */

.rental-hex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.48) 55%,
    rgba(0,0,0,.15) 100%
  );
  transition: background .35s ease;
}

/* CONTENIDO */

.rental-hex-content {
  position: absolute;
  z-index: 2;
  left: 13%;
  right: 13%;
  bottom: 24%;
  transition: transform .35s ease;
}

.rental-hex-content::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #d71920;
  margin-bottom: 14px;
}

.rental-hex h3 {
  font-size: clamp(24px, 2.3vw, 35px);
  line-height: .95;
  margin: 0;
  color: #fff;
}

.rental-hex p {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition:
    opacity .3s ease,
    max-height .35s ease,
    transform .35s ease;
}

/* HOVER */

.rental-hex:hover,
.rental-hex:focus-visible {
  filter: brightness(1.15);
}

.rental-hex:hover::before,
.rental-hex:focus-visible::before {
  background: linear-gradient(
    0deg,
    rgba(120,0,0,.92) 0%,
    rgba(30,0,0,.65) 55%,
    rgba(0,0,0,.2) 100%
  );
}

.rental-hex:hover .rental-hex-content,
.rental-hex:focus-visible .rental-hex-content {
  transform: translateY(-12px);
}

.rental-hex:hover p,
.rental-hex:focus-visible p {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
}


/* ========================================
   TRAINING — ACORDEÓN
======================================== */

.servicios-training {
  background: #f5f5f5 url("../assets/imagenes/fondo_training.png") center center / cover no-repeat;
  color: #111;
}

/* CINTA DE IMÁGENES TRAINING */

.training-carrusel {
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
}

.training-carrusel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: trainingScroll 35s linear infinite;
}

.training-carrusel-track img {
    width: 260px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.training-carrusel:hover .training-carrusel-track {
    animation-play-state: paused;
}

@keyframes trainingScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}


.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.training-card {
  display: block;
  min-height: 0;
  padding: 0;
  background: linear-gradient(
    115deg,
    #161616 0%,
    #292020 40%,
    #5b1118 78%,
    #a41620 100%
  );
  border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid #d71920;
  color: #fff;
  overflow: hidden;
  transition: background .3s ease;
}

/* FILA CERRADA */

.training-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 75px;
  padding: 17px 30px;
  cursor: pointer;
  list-style: none;
}

.training-card summary::-webkit-details-marker {
  display: none;
}

.training-card summary::marker {
  content: "";
}

.training-card h3 {
  flex: 1;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1;
}

/* VER MÁS Y FLECHA */

.training-more {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.training-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  transition: transform .3s ease;
}

.training-arrow::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-3px) rotate(45deg);
}

/* DESCRIPCIÓN DESPLEGADA */

.training-card-body {
  padding: 0 30px 23px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.training-card-body p {
  max-width: none;
  margin: 17px 0 0;
  color: #e1e1e1;
  font-size: 14px;
  line-height: 1.7;
}

/* HOVER */

.training-card:hover {
  background: linear-gradient(
    115deg,
    #241012 0%,
    #541118 55%,
    #c31825 100%
  );
}

/* ESTADO ABIERTO */

.training-card[open] {
  border-left-color: #ff5058;
}

.training-card[open] .training-arrow {
  transform: rotate(180deg);
}

.training-card[open] .training-more {
  color: #fff;
}



/* TRAINING — DETALLE DEL CURSO */

.training-course-detail {
  padding: 35px 38px 45px;
  background: linear-gradient(
    135deg,
    #151515 0%,
    #21191a 55%,
    #351316 100%
  );
}

/* ENCABEZADO */

.training-course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 35px;
  padding-bottom: 30px;
}

.training-course-label {
  display: block;
  margin-bottom: 13px;
  color: #ef4b53;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.training-course-header h4 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.training-course-header p {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
}

.training-course-code {
  flex-shrink: 0;
  padding: 15px 22px;
  border: 1px solid rgba(255,255,255,.2);
  text-align: center;
}

.training-course-code span,
.training-info-item span {
  display: block;
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.training-course-code strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
}

/* DATOS DESTACADOS */

.training-course-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 35px;
}

.training-info-item {
  padding: 22px 25px;
  background: rgba(255,255,255,.055);
  border-top: 3px solid #d71920;
}

.training-info-item strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 29px;
  font-weight: 800;
}

/* OBJETIVO */

.training-course-objective {
  padding: 30px;
  margin-bottom: 40px;
  background: rgba(215,25,32,.09);
  border-left: 3px solid #d71920;
}

.training-course-objective h5,
.training-syllabus-heading h5 {
  margin: 0 0 15px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 29px;
  font-weight: 800;
}

.training-course-objective p {
  max-width: 100%;
  margin: 0;
  color: #d5d5d5;
  font-size: 14px;
  line-height: 1.9;
}

/* TEMARIO */

.training-syllabus-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.training-syllabus-heading h5 {
  margin: 0;
}

.training-syllabus-heading span {
  color: #ef4b53;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* MÓDULOS */

.training-module {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 27px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.training-module-number {
  color: #e02b34;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 53px;
  font-weight: 800;
  line-height: 1;
}

.training-module-content h6 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}

.training-module-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 35px;
  row-gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-module-content li {
  position: relative;
  padding-left: 17px;
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.65;
}

.training-module-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #d71920;
}




/* CTA */

.servicios-cta {
    padding: 95px 0;
    background:
        linear-gradient(
            115deg,
            rgba(0,0,0,.85),
            rgba(0,0,0,.65),
            rgba(0,0,0,.90)
        ),
        url('../assets/imagenes/fondo_cards_services.png') center / cover no-repeat;
    color: #fff;
}

.servicios-cta-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.servicios-cta .eyebrow-line {
  background: white;
}

.servicios-cta .section-eyebrow {
    justify-content: center;
}

.servicios-cta h2 {
    font-size: clamp(42px, 4vw, 65px);
    line-height: .95;
    max-width: 850px;
    margin: 25px auto 20px;
}

.servicios-cta .text-red {
  color:  #d71920;
}

.servicios-cta p {
  margin: 0;
  color: #fff;
  line-height: 1.7;
}



.btn-contacto-hex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 125px;
    margin: 10px auto 0;
    background: var(--btn-gradient);
    color: #fff;
    clip-path: polygon(
        25% 0%, 75% 0%,
        100% 50%,
        75% 100%, 25% 100%,
        0% 50%
    );
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 0, 20, .30);
    transition: all .3s ease;
}

.btn-contacto-hex:hover {
    background: var(--btn-gradient-hover);
    color: #fff;
}


