body, html {
  margin: 0;
  padding: 0;
}

a{
  text-decoration: none;
}

.logo-main{
  height: 48px;
}

.bg-gris{
  background-color: #475355;
}
.bg-negro{
  background-color: #13120d;
}

.topbar { background:#fff; border-bottom:1px solid #eee; }
.topbar .item-title { font-size:.78rem; color:#6c757d; line-height:1.1; }
.topbar .item-value { font-size:.9rem; font-weight:600; line-height:1.1; }
.topbar .price-title { font-size:.78rem; font-weight:700; line-height:1.1; }
.topbar .price-line { font-size:.85rem; white-space:nowrap; }
.topbar .vdiv { width:2px; background:#dc3545; align-self:stretch; }
.topbar i { font-size:1.2rem; }


.mafrissa-nav {
   background: #ff0000; /* red bar */
 }

 .mafrissa-nav .nav-link {
   color: #fff !important;
   font-weight: 600;
   padding: 1.25rem 1.5rem;
   position: relative;
 }

 .mafrissa-nav .nav-link.active::after,
 .mafrissa-nav .nav-link:hover::after {
   content: "";
   position: absolute;
   left: 50%;
   bottom: .55rem;
   transform: translateX(-50%);
   width: 46px;
   height: 3px;
   background: #fff;
   border-radius: 2px;
 }

 .mafrissa-nav .icon-btn {
   color: #fff;
   padding: 1.25rem 1.25rem;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
 }

 .mafrissa-nav .quote-btn {
   background: #f39a1e; /* orange */
   color: #fff !important;
   font-weight: 700;
   padding: 1.25rem 2rem;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: .75rem;
   white-space: nowrap;
 }

 .mafrissa-nav .quote-btn:hover {
   filter: brightness(.95);
 }

 /* make toggler icon white */
 .navbar-dark .navbar-toggler {
   border-color: transparent;

 }
 .navbar-dark .navbar-toggler-icon {

 }

 /* Mobile: give items a bit tighter padding */
 @media (max-width: 991.98px) {
   .mafrissa-nav .nav-link,
   .mafrissa-nav .icon-btn,
   .mafrissa-nav .quote-btn {
     padding: .9rem 1rem;
   }
   .mafrissa-nav .nav-link.active::after,
   .mafrissa-nav .nav-link:hover::after {
     left: 0;
     transform: none;
     width: 46px;
   }
   .mafrissa-nav{
     padding: 5px 0 !important;
   }
   .quote-btn{
     margin: 10px 0;
   }
   .logo-main{
      height: 75px;
      width: auto;
      margin: 0 auto;
      display: inline;
   }
   .logo-container{
     width: 100%;
   }
 }


 /* --- HERO SLIDER --- */
 .hero-slider .carousel-item {
   height: 100%;
   min-height: 520px;
   position: relative;
 }

 .hero-slider .slide-bg {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   transform: scale(1.02);
 }

.carousel-inner{
  height: 100%;
}


 /* subtle dark overlay to improve contrast */
 .hero-slider .slide-bg::after {
   content: "";
   position: absolute;
   inset: 0;
   background: rgba(0,0,0,.25);
 }

 /* overlay card */
 .hero-slider .hero-card {
   position: absolute;
   left: 6%;
   top: 16%;
   width: min(720px, 92%);
   background: rgba(255,255,255,.88);
   padding: 48px;
   box-shadow: 0 10px 30px rgba(0,0,0,.18);
 }

 .hero-slider .hero-card h1{
   font-weight: 800;
   line-height: 1.05;
   font-size: clamp(1.9rem, 2.6vw, 3rem);
   margin-bottom: 18px;
   color: #111;
 }

 .hero-slider .hero-card p{
   color: #666;
   max-width: 520px;
   margin-bottom: 28px;
 }

 .btn-cta-red{
   background: #ff0000;
   border-color: #ff0000;
   color: #fff;
   font-weight: 700;
   padding: 12px 22px;
   border-radius: 0;
 }
 .btn-cta-red:hover{ filter: brightness(.92); }

 /* --- STATS BAR --- */
 .hero-stats {
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   bottom: 22px;
   width: min(1200px, 94%);
   background: rgba(0,0,0,.62);
   backdrop-filter: blur(2px);
   color: #fff;
   border-radius: 18px;
   padding: 22px 22px 18px;
   z-index: 10000;
 }

 .hero-stats .stats-title{
   font-size: 2rem;
   font-weight: 300;
   margin: 0 0 14px;
 }
 .hero-stats .stats-title b{ font-weight: 800; }

 .hero-stats .stat {
   padding: 6px 14px;
 }

 .hero-stats .stat .label{
   font-size: .95rem;
   opacity: .95;
   line-height: 1.1;
   margin-bottom: 8px;
 }

 .hero-stats .stat .value{
   font-size: 1.45rem;
   font-weight: 800;
   color: #f39a1e; /* orange numbers */
 }

 .hero-stats .sep{
   width: 1px;
   background: rgba(255,255,255,.25);
   align-self: stretch;
 }

 /* arrows like the screenshot (simple thin) */
 .hero-slider .carousel-control-prev-icon,
 .hero-slider .carousel-control-next-icon{
   filter: invert(1);
   opacity: .9;
 }

 /* responsive tweaks */
 @media (max-width: 991.98px){
   .hero-slider .carousel-item{ height: 85vh; }
   .hero-slider .hero-card{
     left: 50%;
     transform: translateX(-50%);
     top: 14%;
     padding: 26px;
   }
   .hero-stats{
     border-radius: 14px;
     padding: 16px;
     bottom: 0px;
   }
   .hero-stats .stats-title{ font-size: 1.5rem; }
 }

 @media (max-width: 575.98px){
   .hero-slider .carousel-item{ height: 100%; min-height: 640px; }
   .hero-stats .sep{ display:none; }
   .hero-stats .stat{ padding: 10px 0; }
 }

 .about-section{
    background:#475355;              /* dark green/gray like screenshot */
    padding: 80px 0;
  }

  .about-title{
    font-weight: 800;
    letter-spacing: .5px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin-bottom: 24px;
    color:#fff;
  }
  .about-title .accent{ color:#f39a1e; }  /* orange */

  .about-text{
    color: rgba(255,255,255,.78);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
  }

  .about-link{
    color:#f39a1e;
    font-weight: 600;
    text-decoration: none;
    display:inline-flex;
    gap:.5rem;
    align-items:center;
  }
  .about-link:hover{ filter: brightness(.92); }

  .dark-card{
    background:#0b0f10;
    border: 1px solid rgba(255,255,255,.08);
    padding: 34px 36px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .dark-card h3{
    color:#fff;
    font-weight: 500;                /* screenshot: not super bold */
    letter-spacing: .5px;
    margin-bottom: 14px;
    font-size: 1.8rem;
  }
  .dark-card p{
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 16px;
  }

  /* spacing like the screenshot */
  @media (min-width: 992px){
    .about-left{ padding-right: 60px; }
    .dark-card{ width: 92%; }
  }

  .services-sec{
    background:#4b5658; /* gray like screenshot */
    padding: 70px 0 90px;
  }

  .services-title{
    text-align:center;
    color:#fff;
    font-weight:300;
    letter-spacing:1px;
    margin-bottom: 50px;
    font-size: clamp(1.8rem, 3vw, 3rem);
  }
  .services-title .accent{ color:#f39a1e; font-weight:800; }

  /* cards */
  .service-card{
    background:#1f2628;
    color:#fff;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    border: 0;
  }
  .service-card .img-wrap{
    position:relative;
    height: 250px;
  }
  .service-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform: scale(1.02);
  }

  /* round icon over image */
  .service-icon{
    position:absolute;
    left:50%;
    bottom:-26px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
    border: 3px solid #f39a1e;
  }
  .service-icon i{ font-size: 1.6rem; color:#3f4a4c; }

  .service-body{
    padding: 46px 28px 26px; /* extra top for the icon overlap */
  }

  .service-body h5{
    font-weight: 700;
    margin-bottom: 16px;
  }
  .service-body p{
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    font-size: .95rem;
    margin-bottom: 18px;
  }
  .service-more{
    color:#f39a1e;
    font-weight: 600;
    text-decoration:none;
    font-size: .9rem;
    display:inline-flex;
    gap:.4rem;
    align-items:center;
  }

  /* carousel arrows */
  .services-carousel .carousel-control-prev,
  .services-carousel .carousel-control-next{
    width: 6%;
  }
  .services-carousel .carousel-control-next-icon,
  .services-carousel .carousel-control-prev-icon{
    filter: invert(1);
    opacity: .95;
    transform: scale(1.25);
  }

  /* dots like screenshot */
  .services-carousel .carousel-indicators{
    bottom: -55px;
  }
  .services-carousel .carousel-indicators [data-bs-target]{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: 2px solid rgba(255,255,255,.85);
  }
  .services-carousel .carousel-indicators .active{
    background: rgba(255,255,255,.9);
  }

  /* spacing between cards */
  .service-col{ padding: 0 16px; }

  /* responsive: smaller image area on mobile */
  @media (max-width: 575.98px){
    .service-card .img-wrap{ height: 210px; }
    .services-carousel .carousel-control-prev,
    .services-carousel .carousel-control-next{ width: 12%; }
  }


  .join-hero{
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .join-hero .bg{
    position:absolute;
    inset:0;
    background-image:url("images/unete-al-equipo.jpg");
    background-size:cover;
    background-position:center;
    transform: scale(1.02);
  }

  /* dark overlay */
  .join-hero .bg::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.15) 100%);
  }

  .join-hero .content{
    position: relative;
    z-index: 2;
    padding: 70px 0;
  }

  .join-title{
    color:#fff;
    font-weight: 800;
    letter-spacing: .5px;
    font-size: clamp(2.2rem, 3.4vw, 3.5rem);
    margin-bottom: 18px;
  }
  .join-title .accent{ color:#f39a1e; } /* orange */

  .join-card{
    background: rgba(0,0,0,.65);
    color: rgba(255,255,255,.85);
    padding: 26px 28px;
    max-width: 560px;
    margin-bottom: 18px;
  }
  .join-card p{
    margin:0;
    line-height: 1.6;
    font-weight: 600;
  }

  /* stacked buttons */
  .join-actions{
    max-width: 560px;
  }
  .join-actions .btn{
    background:#ff0000;
    border-color:#ff0000;
    color:#fff;
    font-weight: 800;
    text-align:left;
    padding: 14px 22px;
    border-radius: 0;
  }
  .join-actions .btn + .btn{
    margin-top: 10px;
  }
  .join-actions .btn:hover{ filter: brightness(.92); }

  /* make the hero feel like the screenshot (left aligned) */
  .join-left{
    padding-left: clamp(12px, 3vw, 60px);
  }

  @media (max-width: 991.98px){
    .join-hero{ min-height: 85vh; }
    .join-left{ padding-left: 12px; padding-right: 12px; }
    .join-card, .join-actions{ max-width: 100%; }
  }

  .diff-sec{
    background:#fff;
    padding: 80px 0 60px;
  }

  .diff-title{
    text-align:center;
    font-weight: 800;
    letter-spacing: .5px;
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 45px;
  }
  .diff-title .accent{ color:#ff0000; }

  .diff-card{
    background:#f3f3f3;
    padding: 60px 22px;
    text-align:center;
    height: 100%;
  }

  .diff-icon{
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .diff-card p{
    margin:0;
    font-weight: 600;
    color:#4b4b4b;
    line-height: 1.35;
  }

  .btn-red{
    background:#ff0000;
    border-color:#ff0000;
    color:#fff;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 0;
  }
  .btn-red:hover{ filter: brightness(.92); }

  /* spacing like screenshot */
  @media (min-width: 992px){
    .diff-grid{ max-width: 980px; margin: 0 auto; }
    .diff-card{ min-height: 260px; }
  }

  /* SECTION BACKGROUND */
.projects-section{
  background:#0f0f0f url("images/nuestros-proyectos.jpg") center/cover no-repeat;
  padding:80px 0 100px;
  position:relative;
}

/* TITLE */
.projects-title{
  text-align:center;
  color:#fff;
  font-weight:800;
  margin-bottom:40px;
  letter-spacing:1px;
}
.projects-title span{
  color:#f39a1e;
}

/* SLIDE WRAPPER */
.project-slide{
  display:flex;
  max-width:1200px;
  margin:0 auto;
  background:rgba(0,0,0,.35);
}

/* IMAGE */
.project-image{
  flex:1.6;
  min-height:420px;
  background-size:cover;
  background-position:center;
}

/* CONTENT PANEL */
.project-content{
  flex:1;
  background:#1c2325;
  color:#fff;
  padding:40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.project-content h5{
  font-weight:700;
  margin-bottom:20px;
}
.project-content p{
  font-size:.95rem;
  line-height:1.6;
  color:rgba(255,255,255,.8);
}

/* BUTTON */
.btn-project{
  margin-top:15px;
  background:#ff0000;
  color:#fff;
  font-weight:700;
  border-radius:0;
  padding:12px 22px;
  width:fit-content;
}

/* INDICATORS */
.carousel-indicators{
  bottom:-45px;
}
.carousel-indicators [data-bs-target]{
  width:10px;
  height:10px;
  border-radius:50%;
  background:transparent;
  border:2px solid #fff;
}
.carousel-indicators .active{
  background:#fff;
}

/* ARROW */
.carousel-control-next-icon{
  filter:invert(1);
  transform:scale(1.4);
}

/* RESPONSIVE */
@media(max-width:991px){
  .project-slide{
    flex-direction:column;
  }
  .project-image{
    min-height:280px;
  }
}

.exp-sec{
    background:#4b5658; /* gray */
    padding: 70px 0 85px;
  }

  .exp-title{
    text-align:center;
    color:#fff;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: clamp(2rem, 3vw, 3.1rem);
    margin-bottom: 55px;
  }
  .exp-title .accent{
    color:#f39a1e; /* orange */
    font-weight: 800;
  }

  .exp-lead{
    color:#fff;
    font-weight: 800;
    line-height: 1.25;
    font-size: clamp(1.2rem, 1.55vw, 1.65rem);
    max-width: 520px;
    margin-bottom: 22px;
  }

  .exp-small{
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    font-size: .92rem;
    max-width: 520px;
    margin-bottom: 28px;
  }

  .btn-exp{
    background:#ff0000;
    border-color:#ff0000;
    color:#fff;
    font-weight: 800;
    border-radius: 0;
    padding: 12px 26px;
  }
  .btn-exp:hover{ filter: brightness(.92); }

  .exp-img{
    width: 100%;
    max-width: 620px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display:block;
    margin-left:auto;
  }

  @media (max-width: 991.98px){
    .exp-img{ margin: 0 auto; max-width: 100%; }
    .exp-lead, .exp-small{ max-width: 100%; }
  }

  .site-footer{
    background:#ececec;
    padding: 50px 0 18px;
    color:#111;
  }

  .footer-links a{
    color:#111;
    text-decoration:none;
    font-weight:600;
    display:block;
    margin-bottom:10px;
  }
  .footer-links a:hover{ text-decoration:underline; }

  .footer-contact{
    font-weight:700;
    margin-bottom:10px;
  }

  .social-btn{
    width: 34px;
    height: 34px;
    border: 1px solid #111;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#111;
    text-decoration:none;
    margin-right:10px;
  }
  .social-btn:hover{ background:#111; color:#fff; }

  .footer-hr{
    border:0;
    border-top: 2px solid rgba(0,0,0,.45);
    margin: 40px 0 14px;
  }

  .footer-copy{
    text-align:center;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.2px;
    margin:0;
  }

  .cert-logos img{
    max-height: 52px;
    width:auto;
  }

/* La franja gris con borde rasgado arriba */
.torn{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;          /* pega perfecto */
  height: 110px;         /* grosor del gris */
  background: #5c6163;   /* gris */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* puedes cambiar a 80vh o px */
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2;
}

/* Texto */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  margin-left: auto;
  padding-right: 8%;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 8%;
    margin-left: 0;
  }
}

/* Page Servicios */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* puedes cambiar a 80vh o px */
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 800px;
}

/* Video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2;
}

/* Texto */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  margin-left: auto;
  padding-right: 8%;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 8%;
    margin-left: 0;
  }
}


/* El rasgado (borde) */
.rasgado-arriba-gris, .rasgado-abajo-gris, .rasgado-arriba-blanco, .rasgado-abajo-blanco, .rasgado-abajo-negro, .rasgado-arriba-negro{
  position: relative;
}
.rasgado-arriba-gris::before, .rasgado-abajo-gris::after, .rasgado-arriba-blanco:before, .rasgado-abajo-blanco:before,
.rasgado-arriba-negro::before, .rasgado-abajo-negro::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:90px;
  z-index: 10;
}
.rasgado-arriba-gris::before{
  top:-70px;
  background-image:url("images/orilla_arriba.png");
  background-position: top;
}

.rasgado-abajo-gris::after{
  bottom:-70px;
  background-image:url("images/orilla_abajo.png");
  background-position: bottom;
}

.rasgado-arriba-blanco:before{
  top:-70px;
  background-image:url("images/orilla_arriba_blanca.png");
  background-position: top;
}

.rasgado-abajo-negro::after{
  bottom:-70px;
  background-image:url("images/orilla_negra_abajo.png");
  background-position: bottom;
}

.rasgado-arriba-negro:before{
  top:-70px;
  background-image:url("images/orilla_arriba_negra.png");
  background-position: top;
}


#servicios{

  padding: 100px 0;
}

/* Card wrapper */
.service-card {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Optional outer “frame” like the screenshot */
.service-card-frame {
  margin: 40px 0;
}

/* Inner panel */
.service-card-inner {
  border-radius: 0;
  overflow: hidden;
  background: #1e2629; /* dark */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.service-card-left {
  padding: 42px 46px;
  color: #e9eef0;
  min-height: 260px;
}

.service-card-title {
  color: #f4a018; /* orange */
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
}

.service-card-left p {
  color: #d6dde0;
  margin-bottom: 18px;
}

.service-card-left ul {
  margin: 0;
  padding-left: 18px;
  color: #d6dde0;
}

.service-card-left li {
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-card-right {
  background: #0f1416;
  min-height: 260px;
}

.service-card-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center floating icon */
.service-card-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #f4a018;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

/* Make it responsive: move icon a bit up on small screens */
@media (max-width: 767.98px) {
  .service-card-icon {
    top: 45%;
  }
  .service-card-left {
    padding: 28px 22px;
  }
}

.slider-gradient{
  background: linear-gradient(to right, #E3E2E8 0%, rgba(227, 226, 232, 0) 40%);
}


.why-mafrissa {
    padding: 70px 0;
    background: #fff;
  }

  .why-mafrissa .kicker {
    color: #f4a018;
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .why-mafrissa h2 {
    font-weight: 800;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.12;
    color: #0b0b0b;
    margin: 0;
  }

  .why-mafrissa .lead-text {
    color: #666;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 6px;
  }

  .why-mafrissa .icon-card {
    text-align: center;
    padding: 18px 12px;
  }

  .why-mafrissa .icon-box {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    background: #f5f5f5;
    display: grid;
    place-items: center;
  }

  .why-mafrissa .icon-box svg {
    width: 44px;
    height: 44px;
    fill: #e10000;
  }

  .why-mafrissa .icon-label {
    color: #e10000;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
  }

  .why-mafrissa .bullets {
    margin-top: 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.65;
  }

  .why-mafrissa .bullets li {
    margin-bottom: 10px;
  }

  .why-mafrissa .bullets b {
    color: #444;
  }

  .why-mafrissa .cta-wrap {
    margin-top: 34px;
  }

  .why-mafrissa .btn-cta {
    background: #e10000;
    border-color: #e10000;
    padding: 12px 26px;
    border-radius: 0;
    font-weight: 700;
  }

  .why-mafrissa .btn-cta:hover {
    background: #c90000;
    border-color: #c90000;
  }

  .rent-machinery {
    padding: 70px 0;
    background: #fff;
  }

  .rent-machinery .title {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .rent-machinery .title .accent {
    color: #e10000;
  }

  .rent-machinery .subtitle {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-bottom: 36px;
  }

  .machine-card {
    border: 1px solid #cfd4d9;
    border-radius: 0;
    background: #fff;
    height: 100%;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .machine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }

  .machine-img-wrap {
    height: 120px; /* similar to screenshot */
    display: grid;
    place-items: center;
    margin-bottom: 12px;
  }

  .machine-img-wrap img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .machine-name {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.25;
  }

  /* Make the grid match 5 columns on lg like the image */
  @media (min-width: 992px) {
    .col-lg-20 {
      flex: 0 0 auto;
      width: 20%;
    }
  }


  .transport-rent {
    background: #676767; /* gray backdrop */
    padding: 70px 0 90px;
    color: #fff;
  }

  .transport-rent .title {
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    font-size: clamp(28px, 3.2vw, 44px);
  }

  .transport-rent .title .accent {
    color: #f4a018; /* orange */
  }

  .transport-rent .subtitle {
    text-align: center;
    margin-top: 10px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
  }

  .transport-card-wrap {
    position: relative;
    margin-top: 46px;
  }

  .transport-panel {
    background: #1f272a; /* dark box */
    padding: 34px 34px 34px 34px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
  }

  .transport-panel h3 {
    color: #f4a018;
    font-weight: 800;
    margin: 0 0 14px;
    font-size: 18px;
  }

  .transport-panel p {
    color: rgba(255,255,255,.85);
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
    max-width: 270px;
  }

  /* Floating image */
  .transport-photo {
    width: 260px;
    height: 260px;
    background: #ddd;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .transport-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }


  /* Desktop layout: image overlaps the dark panel */
  @media (min-width: 992px) {
    .transport-card {
      position: relative;
      min-height: 320px;
    }

    .transport-photo.left {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translate(0, -50%);
      z-index: 3;
    }

    .transport-photo.right {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translate(0, -50%);
      z-index: 3;
    }

    /* give room inside column for the absolute image */
    .transport-panel.left {
      margin-left: 250px;  /* overlaps like screenshot */
    }

    .transport-panel.right {
      margin-left: 250px;  /* image on left of panel (inside right card) */
    }
  }

  /* Mobile: stack image above panel */
  @media (max-width: 991.98px) {
    .transport-photo {
      width: 100%;
      height: 240px;
      margin-bottom: 16px;
    }
    .transport-panel p {
      max-width: none;
    }
    .slider-gradient{
      background: linear-gradient(to right, #E3E2E8 100%, rgba(227, 226, 232, 0) 70%);
    }
  }

/* Page End Servicios */


/* Page nosotros */

.why-us {
    /* page gray */
    padding: 70px 0 80px;
    color: #fff;
  }

  .why-us .section-title {
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 42px;
    font-size: clamp(26px, 3vw, 40px);
  }
  .why-us .section-title .accent {
    color: #f4a018;
  }

  .why-us .panel {
    background: #1f272a; /* dark panel */
    border-radius: 0;
    padding: 28px 30px;
    height: 100%;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
  }

  .why-us .panel h3 {
    color: #f4a018;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
    margin: 0 0 12px;
    letter-spacing: .6px;
  }

  .why-us .panel p {
    color: rgba(255,255,255,.86);
    font-size: 12.8px;
    line-height: 1.65;
    margin: 0;
    max-width: 520px;
  }

  .why-us .values-panel {
    padding: 24px 26px;
  }

  .why-us .values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .why-us .value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    white-space: nowrap;
  }

  .why-us .value-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
  }

  .why-us .value-icon svg {
    width: 26px;
    height: 26px;
    stroke: #f4a018;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Responsive */
  @media (max-width: 991.98px) {
    .why-us .values-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 575.98px) {
    .why-us .values-grid {
      grid-template-columns: 1fr;
    }
    .why-us .value-item {
      white-space: normal;
    }
  }

  .quality-policy {
    position: relative;
    padding: 80px 0 70px;
    color: #fff;
    overflow: hidden;
    background: #050607;
  }

  /* Background image + dark overlay */
  .quality-policy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/politica-de-calidad.jpg")
      center/cover no-repeat;
    filter: saturate(1.1) contrast(1.05);
    z-index: 0;
  }
  .quality-policy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.72) 35%,
      rgba(0,0,0,.35) 65%,
      rgba(0,0,0,.15) 100%
    );
    z-index: 1;
  }

  .quality-policy .content {
    position: relative;
    z-index: 2;
  }

  .cv-empresarial h2, .quality-policy h2 {
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 14px;
    font-size: clamp(28px, 3.2vw, 46px);
  }
  .cv-empresarial h2 .accent, .quality-policy h2 .accent {
    color: #e10000;
  }

  .quality-policy .desc {
    max-width: 420px;
    color: rgba(255,255,255,.82);
    font-size: 12.8px;
    line-height: 1.65;
  }

  /* Principles box */
  .principles-box {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 22px 18px 18px;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(2px);
  }

  .principles-title {
    color: #f4a018;
    font-weight: 800;
    margin: 0 0 16px;
    font-size: 16px;
  }

  .principles-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .principle {
    padding: 18px 16px;
    min-height: 110px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.55;
  }

  /* Vertical dividers like the screenshot */
  .principle + .principle {
    border-left: 1px solid rgba(255,255,255,.25);
  }

  /* Responsive */
  @media (max-width: 1199.98px) {
    .principles-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .principle:nth-child(4) {
      border-left: none;
    }
    .principle {
      border-top: 1px solid rgba(255,255,255,.18);
    }
    .principle:nth-child(-n+3) {
      border-top: none;
    }
  }

  @media (max-width: 575.98px) {
    .principles-grid {
      grid-template-columns: 1fr;
    }
    .principle {
      border-left: none !important;
      border-top: 1px solid rgba(255,255,255,.18);
    }
    .principle:first-child {
      border-top: none;
    }
  }

  .about-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* puedes cambiar a 80vh o px */
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  /* Left image (background-like) */
  .about-hero .photo {
    position: absolute;
    height: 100%;
    min-height: 320px;
    background: url("images/hero-nosotros.jpg") left center/cover no-repeat;
    width: 100%;
  }

  /* Subtle right-side gradient like screenshot */
  .about-hero .photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.0) 0%,
      rgba(0,0,0,.0) 55%,
      rgba(255,255,255,.60) 78%,
      rgba(255,255,255,.92) 100%
    );
  }

  .about-hero .content {
    position: relative;
    padding: 70px 18px;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .about-hero h2 {
    font-weight: 800;
    font-size: clamp(26px, 3vw, 42px);
    margin: 0 0 14px;
    color: #111;
  }

  .about-hero p {
    color: #666;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 520px;
  }

  .about-hero .btn-cta {
    background: #e10000;
    border-color: #e10000;
    border-radius: 0;
    font-weight: 700;
    padding: 12px 22px;
  }
  .about-hero .btn-cta:hover {
    background: #c90000;
    border-color: #c90000;
  }

  /* Desktop: split like screenshot (photo left, content right) */
  @media (min-width: 992px) {
    .about-hero .photo {
      min-height: 420px;
    }
    .about-hero .content {
      padding: 0 48px;
      min-height: 420px;
    }
  }

/* Page End Nosotros */
