/* Fonts */
:root {
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Work Sans", sans-serif;
}

/* Colors */
:root {
  --color-default: #364d59;
  --color-primary: #5682b8;
  --color-secondary: #52565e;
}

/* Smooth scroll behavior */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font-default);
  color: var(--color-default);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

.titulo-bienvenida {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.2rem;
  line-height: 1.4;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.5px;
}

.titulo-bienvenida span {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary); 
  display: inline-block;
  position: relative;
}

.titulo-bienvenida span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  border-radius: 2px;
}


/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f5f6f7;
}

.section-header {
  text-align: center;
  padding-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  color: #2e3135;
}

.section-header h2:before,
.section-header h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section-header h2:before {
  margin: 0 15px 10px 0;
}

.section-header h2:after {
  margin: 0 0 10px 15px;
}

.section-header p {
  margin: 0 auto 0 auto;
}

@media (min-width: 1199px) {
  .section-header p {
    max-width: 60%;
  }
}


.hover-color-primary a:hover {
  background: var(--color-primary);
  color: #fff !important;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 140px 0 60px 0;
  min-height: 50vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.breadcrumbs:before {
  content: "";
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
}

.breadcrumbs h2 {
  font-size: 45px;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-secondary);
  margin-top: 5%;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.breadcrumbs ol a:hover {
  text-decoration: underline;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #fff;
  content: "/";
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: #d5d7da;
  color: #000;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #fff;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #fff;
  border-color: var(--color-primary) transparent var(--color-primary) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1.5s linear infinite;
  animation: animate-preloader 1.5s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  z-index: 997;
  position: absolute;
  padding: 30px 0;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, #ffffff, #f5f6f7); /* De blanco a gris */
  border-top: 2px solid #f5f6f7;
}

.header a {
  color: black !important;
  font-size: 16px !important;
}

.header .logo img {
  max-height: 60px;
  margin-right: 6px;
}

.header .logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  font-family: var(--font-primary);
}

.header .logo h1 span {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navbar li {
    position: relative;
  }

  .navbar>ul>li {
    white-space: nowrap;
    padding: 10px 0 10px 28px;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--color-primary);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navbar a:hover:before,
  .navbar li:hover>a:before,
  .navbar .active:before {
    visibility: visible;
    width: 100%;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: #fff;
  }

  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 28px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
  }

  .navbar .dropdown ul li {
    min-width: 200px;
  }

  .navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--color-default);
    font-weight: 400;
  }

  .navbar .dropdown ul a i {
    font-size: 12px;
  }

  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }

  .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

@media (min-width: 1280px) and (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

@media (min-width: 1280px) {

  .mobile-nav-show,
  .mobile-nav-hide {
    display: none;
  }
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
  }

  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 50px 0 10px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 15px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    white-space: nowrap;
    text-transform: uppercase;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 16px;        /* antes: 2px */
    line-height: 1;         /* mejor alineación vertical */
    margin-left: 8px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus {
    color: #fff!important;
  }

  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin: 10px 20px;
    transition: all 0.5s ease-in-out;
    border: 1px solid #222428;
  }

  .navbar .dropdown>.dropdown-active,
  .navbar .dropdown .dropdown>.dropdown-active {
    display: block;
  }

  .mobile-nav-show {
    position: relative;
    color: var(--color-primary);
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    z-index: 9999;
    padding-right: 10px;
  }

  .mobile-nav-hide {
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navbar {
    right: 0;
  }

  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9996;
  }

  /* Color del chevron (flecha) en mobile */
  .navbar a .dropdown-indicator {
    color: #fff;
  }

  /* Si quieres que cambie cuando se abre el dropdown */
  .navbar .dropdown > a.active .dropdown-indicator {
    color: #fff ;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  padding: 40px;
  background: #fff;
  height: 100%;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: var(--color-secondary);
  font-size: 40px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
  line-height: 1.8;
}

.services .service-item .icon::before{
  position:absolute; content:"";
  inset:10px -15px auto auto; /* top/right como tenías */
  width:100%; height:100%;
  background:#f0f1f2;
  clip-path:polygon(
    25% 0%, 75% 0%,
    100% 50%, 75% 100%,
    25% 100%, 0% 50%
  );
  z-index:1; transition:.3s;
}
.services .service-item:hover .icon::before{
  transform:translateY(-2px);
}


.services .service-item h3 {
  color: var(--color-default);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid #ebebed;
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item .readmore {
  margin-top: 15px;
  display: inline-block;
  color: var(--color-primary);
}

.services .service-item:hover .icon:before {
  background: var(--color-primary);
}

.services .service-item:hover h3 {
  border-color: var(--color-primary);
}


/*--------------------------------------------------------------
# Servicios electro y mecanicos
--------------------------------------------------------------*/
.service-tabs .nav-link{
  border-radius: 999px;
  font-weight: 600;
  padding: .5rem 1rem;
  color: #334155;
  background: #f1f5f9;
  margin-right: .5rem;
  transition: all .2s ease;
}
.service-tabs .nav-link:hover{ background: #e2e8f0; }
.service-tabs .nav-link.active{
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}

/* Lista de servicios (consistente con tu estilo) */
.svc-list{
  list-style: none;
  padding: 0; margin: 0;
}
.svc-list li{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: #334155;
  line-height: 1.6;
}

.svc-list span{ display: block; }


/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  padding: 15px 0;
  transition: 0.3s;
  color: var(--color-secondary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid #e2e4e6;
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: var(--color-primary);
}

.features .nav-link.active {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--color-primary);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Our Projects Section
--------------------------------------------------------------*/
.projects .portfolio-flters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.projects .portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.projects .portfolio-flters li:hover,
.projects .portfolio-flters li.filter-active {
  color: var(--color-primary);
}

.projects .portfolio-flters li:first-child {
  margin-left: 0;
}

.projects .portfolio-flters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .projects .portfolio-flters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.projects .portfolio-content {
  position: relative;
  overflow: hidden;
}

.projects .portfolio-content img {
  transition: 0.3s;
}

.projects .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.projects .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #fff;
  display: inline-block;
  background-color: var(--color-primary);
}

.projects .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.projects .portfolio-content .portfolio-info .preview-link,
.projects .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.projects .portfolio-content .portfolio-info .preview-link-center,
.projects .portfolio-content .portfolio-info .details-link-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.projects .portfolio-content .portfolio-info .preview-link:hover,
.projects .portfolio-content .portfolio-info .details-link:hover {
  color: var(--color-primary);
}

.projects .portfolio-content .portfolio-info .preview-link-center:hover,
.projects .portfolio-content .portfolio-info .details-link-center:hover {
  color: var(--color-primary);
}

.projects .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.projects .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.projects .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# clientes Section
--------------------------------------------------------------*/
.clientes  {
  padding-top: 5% !important;
}

.clientes .swiper {
  padding: 10px 0;
  max-height: 200px;
}

.clientes .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  padding-bottom: 50px;
}

.clientes .cliente-wrap {
  align-items: center;
  justify-content: center;
  height: 100%; /* Asegura que ocupe todo el alto del slide */
  padding: 0;
  margin: 0;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Logo image styling */
.cliente-img {
  max-height: 100px; /* Reduce el tamaño del logo */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
  image-rendering: auto;
}

/* Swiper bullets */
.clientes .swiper-pagination {
  margin-top: 10px;
  position: relative;
}

.clientes .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  opacity: 1;
  margin: 0 4px;
}

.clientes .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary, #007bff);
}

/* Responsive */
@media (max-width: 767px) {
  .clientes .swiper {
    max-height: 120px;
  }

  .cliente-img {
    max-height: 80px;
  }
}


/*--------------------------------------------------------------
# Alt Services Section
--------------------------------------------------------------*/
.alt-services .img-bg {
  background-size: cover;
  background-position: center center;
  min-height: 400px;
}

.alt-services h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.alt-services h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.alt-services .icon-box {
  margin-top: 50px;
}

.alt-services .icon-box i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: 0.3s;
}

.alt-services .icon-box:hover i {
  background-color: var(--color-primary);
  color: #fff;
}

.alt-services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services .icon-box h4 a {
  color: #000;
  transition: 0.3s;
}

.alt-services .icon-box h4 a:hover {
  color: var(--color-primary);
}

.alt-services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}


/*--------------------------------------------------------------
# Stats Counter Section
--------------------------------------------------------------*/
.stats-counter .stats-item {
  background: #fff;
  box-shadow: 0px 0 30px rgba(82, 86, 94, 0.05);
  padding: 30px;
}

.stats-counter .stats-item i {
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
  color: var(--color-primary);
}

.stats-counter .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: var(--color-secondary);
}

.stats-counter .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Servie Cards Section
--------------------------------------------------------------*/
.services-cards h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
}

.services-cards p {
  font-size: 15px;
}

.services-cards ul li {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding-top: 10px;
}

.services-cards ul li i {
  font-size: 16px;
  color: var(--color-primary);
  margin-right: 6px;
}

/*--------------------------------------------------------------
# Projet Details Section
--------------------------------------------------------------*/
.project-details .portfolio-details-slider img {
  width: 100%;
}

.project-details .swiper {
  position: relative;
}

.project-details .swiper-slide img {
   width: 100%;
  height: 100%;
  object-fit: cover; /* o 'contain' si no quieres recorte */
  display: block;
}


.project-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.project-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

.project-details .swiper-button-prev,
.project-details .swiper-button-next {
  width: 48px;
  height: 48px;
  top: 40%;
}

.project-details .swiper-button-prev:after,
.project-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project-details .swiper-button-prev:hover:after,
.project-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 575px) {

  .project-details .swiper-button-prev,
  .project-details .swiper-button-next {
    display: none;
  }
}

.project-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.project-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.project-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.project-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.project-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: #838893;
  font-size: 14px;
}

.project-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  transition: 0.3s;
}

.project-details .portfolio-info .btn-visit:hover {
  background: #ffc019;
}

.project-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.project-details .portfolio-description p {
  padding: 0;
}

.project-details .portfolio-description .cliente-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: #f5f6f7;
  height: 100%;
  margin-bottom: 50px;
}

.project-details .portfolio-description .cliente-item .cliente-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid #fff;
  float: left;
  margin: 0 10px 0 0;
}

.project-details .portfolio-description .cliente-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.project-details .portfolio-description .cliente-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.project-details .portfolio-description .cliente-item .quote-icon-left,
.project-details .portfolio-description .cliente-item .quote-icon-right {
  color: #ffd565;
  font-size: 26px;
  line-height: 0;
}

.project-details .portfolio-description .cliente-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.project-details .portfolio-description .cliente-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.project-details .portfolio-description .cliente-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
}

.portfolio-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content img {
  object-fit: cover;
  height: 250px; /* o ajusta según lo que necesites */
  width: 100%;
}

/* Reducir padding superior e inferior de las secciones */
section.project-details {
  padding: 0px !important;   /* antes suele ser 60px–100px */
}

section.projects {
  padding-bottom: 20px !important;   /* antes suele ser 60px–100px */
}



/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid #d5d7da;
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid #d9e3e8;
  margin: 20px 0;
  color: var(--color-secondary);
  transition: 0.3s;
}

.service-details .services-list a.active {
  font-weight: 700;
  border-color: var(--color-primary);
}

.service-details .services-list a:hover {
  border-color: var(--color-primary);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 28px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--color-primary);
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 20px 0 30px 0;
}

.contact .info-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  line-height: 0;
  color: var(--color-primary);

}

.contact .info-item h3 {
  font-size: 20px;
  color: #6c757d;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.contact .php-email-form .form-group {
  padding-bottom: 20px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #df1529;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #059652;
  border-top-color: #fff;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-primary);
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 5px;
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--color-secondary)
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hover sutil en desktop */
@media (hover:hover) {
  .info-item {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 48px rgba(13,110,253,.12), 0 8px 28px rgba(0,0,0,.10);
  }
}


/*--------------------------------------------------------------
# crcelo Section
--------------------------------------------------------------*/
.crcelo {
  overflow-x: hidden;
  padding: 0;
}

.crcelo .carousel {
  width: 100%;
  min-height: 100vh;
  padding: 80px 0;
  margin: 0;
  position: relative;
}

.crcelo .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
  transition-duration: 0.4s;
}

.crcelo .carousel-item::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  inset: 0;
}

.crcelo .info {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .crcelo .info {
    padding: 0 50px;
  }
}

.crcelo .info h2 {
  color: #fff;
  margin-bottom: 30px;
  padding-bottom: 30px;
  font-size: 56px;
  font-weight: 700;
  position: relative;
}

.crcelo .info h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

@media (max-width: 768px) {
  .crcelo .info h2 {
    font-size: 36px;
  }
}

.crcelo .info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.crcelo .info .btn-get-started {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  border: 2px solid var(--color-primary);
}

.crcelo .info .btn-get-started:hover {
  background: var(--color-primary);
}

.crcelo .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .crcelo .carousel-control-prev {
    padding-left: 15px;
  }
}

.crcelo .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .crcelo .carousel-control-next {
    padding-right: 15px;
  }
}

.crcelo .carousel-control-next-icon,
.crcelo .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crcelo .carousel-control-prev,
.crcelo .carousel-control-next {
  z-index: 3;
  transition: 0.3s;
}

.crcelo .carousel-control-prev:focus,
.crcelo .carousel-control-next:focus {
  opacity: 0.5;
}

.crcelo .carousel-control-prev:hover,
.crcelo .carousel-control-next:hover {
  opacity: 0.9;
}

.titulo-bienvenida{
  font-size: 40px !important;
}

/*--------------------------------------------------------------
# Footer (oscuro, prosa blanca uniforme + móvil alineado a la izquierda)
--------------------------------------------------------------*/

/* Tipografía del footer (ajusta a tu gusto) */
:root{
  --footer-font-base: 15px; /* tamaño uniforme de prosa */
  --footer-heading: 17px;   /* títulos de columna */
  --footer-legal: 13px;     /* franja legal */
  --footer-dark-1: #1a1d1f; /* grafito */
  --footer-dark-2: #0f1113; /* carbón */
  --footer-dark-3: #0a0a0a; /* negro */
}

.footer {
  color: #fff;
  font-size: var(--footer-font-base);
  padding: 80px 0 60px 0;
  position: relative;
  /* padding lateral base (se ajusta en media queries) */
  --footer-xpad: 1rem; /* ≈16px */

  /* Fondo serio + innovador (gris/negro) */
  background-image:
    /* Hexágonos tenues (ingeniería) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpolygon points='25,0 75,0 100,50 75,100 25,100 0,50'/%3E%3C/g%3E%3C/svg%3E"),
    /* Rejillas sutiles */
    repeating-linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 22px),
    /* Veladura para contraste */
    linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.24)),
    /* Gradiente base gris/negro */
    linear-gradient(135deg, var(--footer-dark-1) 0%, var(--footer-dark-2) 55%, var(--footer-dark-3) 100%);
  background-size:
    220px 220px, 22px 22px, 22px 22px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, repeat, no-repeat, no-repeat;
  background-position: center, center, center, center, center;
}

/* Márgenes/padding laterales dentro del footer */
.footer .footer-content > .container,
.footer .footer-legal > .container{
  padding-left: calc(var(--footer-xpad) + env(safe-area-inset-left));
  padding-right: calc(var(--footer-xpad) + env(safe-area-inset-right));
}

/* Nada tapa los clics */
.footer > * { position: relative; z-index: 1; }

/* ===== Prosa 100% blanca y uniforme ===== */
.footer p,
.footer li,
.footer a,
.footer .footer-content .footer-info p,
.footer .footer-links a,
.footer .footer-contact li a,
.footer .footer-legal .copyright {
  color: #fff !important;
  font-size: var(--footer-font-base);
  text-decoration: none;
  line-height: 1.6;
}

/* Hover: mantener blanco (sin cambio de color) */
.footer a:hover,
.footer .footer-links a:hover,
.footer .footer-contact li a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* ---- Títulos de columnas ---- */
.footer .footer-heading{
  font-size: var(--footer-heading);
  font-weight: 700;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.footer .footer-heading::after{
  content:"";
  display:block;
  width: 44px; height: 2px;
  background: var(--color-primary);
  margin-top: 8px;
  border-radius: 2px;
}

/* ---- Bloques ---- */
.footer .footer-content .footer-info { margin-bottom: 30px; }

/* ---- Redes sociales (alineadas a la izquierda) ---- */
.footer .social-links{
  gap: 8px;
  display: flex;
  justify-content: center;  /* izquierda */
}
.footer .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  width: 40px; height: 40px;
  border-radius: 8px;
  transition: transform .2s ease, background-color .2s ease;
}
.footer .social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* ---- Listas y navegación ---- */

/* Quitar viñetas en la navegación del footer */
.footer .footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;             /* izquierda en móvil */
}
.footer .footer-links li { list-style: none !important; padding: 4px 0; }
.footer .footer-links li::marker { content: ""; }

/* Contacto (izquierda en móvil) */
.footer .footer-contact {
  list-style: none;
  padding: 0; margin: 0;
  text-align: left;
}
.footer .footer-contact li{
  padding: 4px 0;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start;
  word-break: break-word;
}
.footer .footer-contact li i{
  color: var(--color-primary);
  font-size: 1rem;
}

/* ---- Botón CTA ---- */
.btn-footer-cta{
  display: inline-flex;
  align-items:center; justify-content:center;
  gap: .4rem;
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-footer-cta:hover{
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.28);
}

/* ---- Franja legal (izquierda en móvil) ---- */
.footer .footer-legal .copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--footer-legal);
  text-align: center;
}

/* ---- Alineaciones responsivas ---- */
@media (min-width: 992px){
  .footer .footer-content .footer-info { text-align: left; }
  .footer .social-links { justify-content: flex-start; }
  .footer .footer-links { text-align: left; }
  .footer .footer-contact { text-align: left; }
  .footer .footer-contact li { justify-content: flex-start; }
  /* padding lateral en desktop un poco mayor si quieres */
  .footer{ --footer-xpad: 1.25rem; } /* ≈20px */
}

/* ---- Responsive compacto ---- */
@media (max-width: 991.98px){
  /* más aire lateral en tablet/móvil */
  .footer{ --footer-xpad: 1.25rem; } /* ≈20px */
}

@media (max-width: 576px){
  .footer { padding: 50px 0 40px 0; }
  .footer {
    background-size: 180px 180px, 20px 20px, 20px 20px, 100% 100%, 100% 100%;
  }
  /* aún más padding lateral en móvil pequeño */
  .footer{ --footer-xpad: 1.5rem; } /* ≈24px */
  /* Ajustes táctiles en móvil: iconos un poquito más grandes si quieres
  .footer .social-links a { width:44px; height:44px; } */
}


/* =========================
 * Botones flotantes (centrados verticalmente como grupo)
 * Orden top→bottom: WhatsApp, Instagram, Facebook, Correo
 * ========================= */

/* Variables: tamaño y separación fluidos */
:root{
  --float-size: 50px;                         /* tamaño desktop/tablet */
  --float-gap: clamp(48px, 8vh, 80px);        /* separación vertical entre botones (fluida con viewport) */
}

/* Reset por si quedan clases antiguas */
.floating-button{ 
  opacity: 1 !important; 
  pointer-events: auto !important; 
  animation: none !important; 
}
.floating-button.hide{ 
  opacity: 1 !important; 
  pointer-events: auto !important; 
  animation: none !important; 
}

/* Estilo base común */
.whatsapp-float,
.instagram-float,
.facebook-float,
.email-float{
  position: fixed;
  right: 0;                                   /* pegados al borde derecho */
  width: var(--float-size);
  height: var(--float-size);
  border-radius: 8px 0 0 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: calc(var(--float-size) * 0.56); /* escala icono al tamaño */
  text-decoration: none;
  box-shadow: -2px 2px 10px rgba(0,0,0,.3);
  z-index: 9996;
  transition: transform .3s ease, background-color .3s ease, opacity .3s ease;
}

/* Hovers (se mantiene translateY para respetar centrado por top) */
.whatsapp-float:hover,
.instagram-float:hover,
.facebook-float:hover,
.email-float:hover{
  transform: translateY(-50%) scale(1.1);
  text-decoration: none; color: #fff;
}

/* Colores por red */
.whatsapp-float  { background-color: #25d366; z-index: 9999; }
.instagram-float { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); z-index: 9998; }
.facebook-float  { background-color: #1877F2; z-index: 9997; }
.email-float     { background-color: var(--color-primary, #0d6efd); z-index: 9996; }

/* ========== Centrados como GRUPO (desktop/tablet y móvil) ==========
   Colocamos cada botón con 'top' relativo al centro del viewport (50%).
   El valor de 'top' representa el CENTRO del botón gracias a translateY(-50%).
   Offsets simétricos: -1.5*gap, -.5*gap, +.5*gap, +1.5*gap
*/
.whatsapp-float  { top: calc(50% - (1.5 * var(--float-gap))); transform: translateY(-50%); }
.instagram-float { top: calc(50% - (0.5 * var(--float-gap))); transform: translateY(-50%); }
.facebook-float  { top: calc(50% + (0.5 * var(--float-gap))); transform: translateY(-50%); }
.email-float     { top: calc(50% + (1.5 * var(--float-gap))); transform: translateY(-50%); }

/* Hover de color */
.whatsapp-float:hover  { background-color: #1ebe5b; }
.facebook-float:hover  { background-color: #166FE5; }
.email-float:hover     { background-color: var(--color-secondary, #0b5ed7); }

/* Íconos FA */
.whatsapp-float i,
.instagram-float i,
.facebook-float i,
.email-float i{ line-height: 1; }

/* =========================
 * Responsive (MÓVIL)
 * ========================= */
@media (max-width: 576px){
  :root{
    --float-size: 46px;                       /* tamaño táctil */
    --float-gap: clamp(40px, 10vh, 64px);     /* más compacto, pero aún fluido */
  }

  /* Hover en móvil: evita “salto” notable */
  .whatsapp-float:hover,
  .instagram-float:hover,
  .facebook-float:hover,
  .email-float:hover{
    transform: translateY(-50%) scale(1.06);
  }
}

/* Respeta usuarios con reducción de motion */
@media (prefers-reduced-motion: reduce){
  .whatsapp-float, .instagram-float, .facebook-float, .email-float{
    transition: background-color .2s ease;
  }
  .whatsapp-float:hover,
  .instagram-float:hover,
  .facebook-float:hover,
  .email-float:hover{
    transform: translateY(-50%); /* sin escala */
  }
}



/* =========================
 * Sección: Misión y Visión (CRCELO)
 * ========================= */
:root {
  --mv-bg1: #0b1220;             /* fondo oscuro sutil (modo oscuro) */
  --mv-bg2: #142a50;
  --mv-accent: #0d6efd;          /* coincide con Bootstrap primary */
  --mv-accent-2: #22c55e;        /* verde suave para detalles */
  --mv-card-bg: rgba(255,255,255,.08);
  --mv-border: rgba(255,255,255,.18);
}

/* Fondo con gradientes suaves (no interfiere con el resto del sitio) */
.mv-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at -10% -10%, rgba(13,110,253,.15), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(34,197,94,.14), transparent 60%),
    linear-gradient(180deg, #f8fafc, #ffffff);
}

@media (prefers-color-scheme: dark) {
  .mv-section {
    background:
      radial-gradient(900px 500px at -10% -10%, rgba(13,110,253,.25), transparent 60%),
      radial-gradient(800px 500px at 110% 110%, rgba(34,197,94,.22), transparent 60%),
      linear-gradient(180deg, var(--mv-bg1), var(--mv-bg2));
  }
}

/* Badge del título */
.mv-badge {
  color: #0b1220;
  padding: .4rem .75rem;
  font-size: 32px;
}
@media (prefers-color-scheme: dark) {
  .mv-badge {
    color: #e9eef6;
    border-color: rgba(255,255,255,.2);
  }
}

/* Tarjetas (glass) con borde degradado sin mask (100% cross-browser) */
.mv-card {
  position: relative;
  padding: clamp(20px, 3.2vw, 32px);
  border-radius: 20px;

  /* truco de doble background-clip para borde degradado */
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

/* Icono circular con glow */
.mv-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 30px;
  color: var(--color-primary);
  box-shadow: 0 12px 24px;
}
.mv-icon i { font-size: 1.25rem; }

/* Texto */
.mv-text {
  font-size: clamp(15px, 1.05rem, 18px);
  color: #334155; /* slate-700 */
  margin: 0;
}
@media (prefers-color-scheme: dark) {
  .mv-text { color: #e5edf7; }
}

/* Hover sutil en desktop */
@media (hover:hover) {
  .mv-card {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .mv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 48px rgba(13,110,253,.12), 0 8px 28px rgba(0,0,0,.10);
  }
}

/* Separación vertical de la sección en pantallas grandes */
@media (min-width: 992px) {
  .mv-section.py-5.py-lg-6 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}


/* =========================
 * Sección: CTA Contacto (panel detrás del texto + patrón construcción)
 * ========================= */
.cta-contact{
  position: relative;
  background: var(--color-secondary);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: #fff;
  overflow: hidden;          /* OK en desktop */
  min-height: 300px;         /* referencia visual en desktop */
  padding: 48px 0;           /* aire vertical base */
}

/* Capa de fondo con mosaico de herramientas + geometría */
.cta-contact::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    /* 1) Mosaico herramientas (SVG en data URI) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 70c20-35 60-35 80 0v20H60z'/%3E%3Cpath d='M52 90h96'/%3E%3Crect x='20' y='150' width='44' height='10' rx='2'/%3E%3Crect x='56' y='150' width='10' height='50' rx='3'/%3E%3Cpath d='M180 150l-20 20m20-20l20 20'/%3E%3Cpath d='M180 150v50'/%3E%3Cpath d='M170 200h20'/%3E%3Crect x='120' y='20' width='90' height='10' rx='2'/%3E%3Cpath d='M130 20v10M140 20v10M150 20v10M160 20v10M170 20v10M180 20v10M190 20v10'/%3E%3Cpath d='M130 170a12 12 0 1120 0l-30 30-10-10z'/%3E%3Cpath d='M90 120l30 10-20 20z'/%3E%3Cpath d='M100 130l-20 20'/%3E%3Cpath d='M200 110l-12 40h24z'/%3E%3Cpath d='M195 125h10'/%3E%3Crect x='20' y='100' width='30' height='12'/%3E%3Crect x='52' y='100' width='30' height='12'/%3E%3Crect x='36' y='114' width='30' height='12'/%3E%3C/g%3E%3C/svg%3E"),
    /* 2) Rejilla vertical */
    repeating-linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 24px),
    /* 3) Rejilla horizontal */
    repeating-linear-gradient(0deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 24px),
    /* 4) Puntos geométricos */
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.06) 0 2px, transparent 2px 100%);
  background-size: 240px 240px, 24px 24px, 24px 24px, 12px 12px;
  background-repeat: repeat, repeat, repeat, repeat;
  background-position: center, center, center, center;
  opacity: .22; /* baja si distrae (ej. .16) */
}

/* Contenido por encima del patrón */
.cta-contact > .container{
  position: relative;
  z-index: 1;
}

/* Panel sutil detrás del bloque de texto (columna izquierda) */
.cta-contact .col-lg-8{
  position: relative;
  z-index: 1;
}
.cta-contact .col-lg-8::before{
  content:"";
  position: absolute;
  inset: -12px -24px;    /* expande un poco el panel alrededor del texto */
  background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  z-index: 0;
}
.cta-contact .col-lg-8 > *{
  position: relative;
  z-index: 1;
}

/* Asegura que la columna del botón esté por encima de cualquier capa */
.cta-contact .col-lg-4{
  position: relative;
  z-index: 1;
}

/* Títulos y texto con refuerzo sutil */
.cta-contact h2{
  font-weight: 700;
  line-height: 1.2;
  color:#fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.cta-contact .lead{
  color:#fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/* Ícono con hexágono (si lo usas dentro del h2) */
.cta-contact .cta-icon{
  position: relative;
  font-size: 1.5rem;
  z-index: 2;
}
.cta-contact .cta-icon::before{
  content: "";
  position: absolute;
  left: -12px;
  top: -8px;
  width: 2.2em;
  height: 2.2em;
  background: #f0f1f2;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: 1px solid rgba(0,0,0,.05);
  z-index: -1;
  transition: transform .3s ease;
}
.cta-contact:hover .cta-icon::before{
  transform: translateY(-2px);
}

/* Botón */
.btn-contact {
  background: var(--color-primary);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  border-radius: 5px;

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  will-change: transform, box-shadow;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  overflow: hidden; /* ripple */
}

/* Hover / Focus: elevar y sombra */
.btn-contact:hover,
.btn-contact:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.15), 0 3px 6px rgba(0,0,0,.08);
  text-decoration: none;
  outline: none;
}

/* Activo */
.btn-contact:active{
  transform: translateY(0) scale(.985);
  box-shadow: 0 6px 12px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.08);
}

/* Foco accesible */
.btn-contact:focus-visible{
  box-shadow:
    0 0 0 .25rem rgba(255,255,255,.28),
    0 10px 20px rgba(0,0,0,.15),
    0 3px 6px rgba(0,0,0,.08);
}

/* Icono del botón */
.btn-contact i{
  transition: transform .25s ease;
}
.btn-contact:hover i,
.btn-contact:focus-visible i{
  transform: translateX(4px);
}

/* Ripple centrado */
.btn-contact::after{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: width .45s ease, height .45s ease, opacity .6s ease;
  pointer-events: none;
}
.btn-contact:active::after{
  width: 260px; height: 260px;
  opacity: .85;
  transition: none;
}

/* Hover color */
.btn-contact:hover { color: #fff; }

/* =========================
 * Responsive
 * ========================= */

/* Tablet y abajo */
@media (max-width: 991.98px){
  /* Deja crecer el contenido y evita recortes */
  .cta-contact{
    min-height: initial;
    overflow: visible;
    padding: 36px 0; /* un poco menos vertical en tablet/móvil */
  }

  /* Más “aire” horizontal en contenedor (texto no pegado) */
  .cta-contact > .container{
    padding-inline: 1.25rem; /* 20px aprox */
  }

  /* Panel del texto más compacto */
  .cta-contact .col-lg-8::before{
    inset: -8px -12px;
    border-radius: 10px;
  }

  /* Botón a ancho completo y centrado */
  .cta-contact .btn-contact{
    width: 100%;
    justify-content: center;
  }
}

/* Móvil chico */
@media (max-width: 575.98px){
  /* Aún más aire en laterales para pantallas pequeñas */
  .cta-contact > .container{
    padding-inline: 1.5rem; /* 24px */
  }

  /* Si sientes el texto muy apretado, puedes subir el interlineado */
  .cta-contact h2{ line-height: 1.25; }
  .cta-contact .lead{ line-height: 1.6; }
}

/* Respeta usuarios con reducción de motion */
@media (prefers-reduced-motion: reduce){
  .btn-contact,
  .btn-contact i{
    transition: none;
  }
  .btn-contact:hover,
  .btn-contact:focus-visible{
    transform: none;
    box-shadow: 0 0 0 .25rem rgba(255,255,255,.28);
  }
  .btn-contact::after{ display: none; }
}


/* ============================================================
   ABOUT PAGE – Responsive Fixes (Intro + Misión/Visión + Valores)
   ============================================================ */

/* ---------- Variables locales para estos bloques ---------- */
:root{
  --about-y: clamp(56px, 6vw, 84px);     /* padding vertical secciones */
  --about-x: 1.25rem;                    /* padding horizontal interno en móvil/tablet */
  --about-x-sm: 1.5rem;                  /* padding horizontal extra XS */
  --card-radius: 14px;
  --card-border: 1px solid rgba(0,0,0,.06);
  --shadow-1: 0 10px 24px rgba(0,0,0,.06);
  --shadow-2: 0 16px 36px rgba(0,0,0,.08);
  --text-900: #111827;
  --text-800: #1f2937;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #475569;
}

/* =========================
 * About Intro
 * ========================= */
.about-intro {
  margin-top: 5% !important;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  overflow: hidden;
  scroll-margin-top: 96px;
  color: #f1f5f9; /* texto claro */
  padding: 110px 0 !important;
}

/* ✨ efecto overlay con luces degradadas */
.about-intro::before,
.about-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}
.about-intro::before {
  top: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.6); /* azul */
}
.about-intro::after {
  bottom: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: rgba(236, 72, 153, 0.6); /* rosado/fucsia */
}

/* Contenido en primer plano */
.about-intro > .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Badge superior */
.about-intro .mv-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Título */
.about-intro h2 {
  color: #fff;
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.2;
}

/* Subtítulo */
.about-intro .lead {
  color: #e2e8f0;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 500;
}

/* Lista */
.about-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: grid;
  gap: .7rem;
}
.about-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: #f8fafc;
}
.about-list i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Tarjeta “highlight” */
.about-highlight {
  display: grid;
  gap: .75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
}
.about-highlight .ah-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #f8f9fa;
  font-weight: 600;
}
.about-highlight .ah-item i {
  color: var(--color-primary);
  font-size: 1.3rem;
}

/* Botón */
.about-highlight .btn-contact {
  display: inline-block;
  margin-top: .5rem;
  padding: .8rem 1.4rem;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: all .3s ease;
}

/* Lista (alineada a la izquierda) */
.about-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* antes estaba center */
  gap: .6rem;
  color: #f8fafc;
}

/* =========================
 * Misión & Visión (tarjetas)
 * ========================= */
#mision-vision{ background-color: #fff; }
#mision-vision > .container{
  padding-left: calc(var(--about-x) + env(safe-area-inset-left));
  padding-right: calc(var(--about-x) + env(safe-area-inset-right));
}


/* card */
.mv-card{
  background: #fff;
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-1);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mv-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mv-card h3{ color: var(--text-800); margin-bottom: .25rem; }
.mv-card .mv-text{ color: var(--text-500); margin: 0; line-height: 1.6; }

.mv-icon i{ font-size: 1.25rem; color: var(--color-primary); }

/* =========================
 * Valores
 * ========================= */
.values{
  padding: var(--about-y) 0;
}
.values > .container{
  padding-left: calc(var(--about-x) + env(safe-area-inset-left));
  padding-right: calc(var(--about-x) + env(safe-area-inset-right));
}
.values h2{
  color: var(--text-800);
  font-size: 32px;
  line-height: 1.2;
}

.value-card{
  height: 100%;
  background: #fff;
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(13,110,253,.25);
}
.value-card h3{
  font-size: clamp(1rem, .95rem + .2vw, 1.05rem);
  margin: .4rem 0 .35rem 0;
  color: var(--text-900);
}
.value-card p{ margin: 0; color: var(--text-600); line-height: 1.6; }

.value-icon{
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  margin-bottom: .6rem;
}
.value-icon::before{
  content:"";
  position: absolute; inset: -6px;
  background: #f0f1f2;
  border: var(--card-border);
  border-radius: 10px;
  z-index: -1;
}
.value-icon i{ color: var(--color-primary); font-size: 1.25rem; }

/* =========================
 * Responsive Tweaks
 * ========================= */

/* Tablet: el highlight puede ir a 2 columnas si crece */
@media (min-width: 576px) and (max-width: 991.98px){
  .about-highlight{ grid-template-columns: 1fr 1fr; }
}

/* Móvil/Tablet: más aire lateral y evitar pegado a bordes */
@media (max-width: 991.98px){
  .about-intro > .container,
  #mision-vision > .container,
  .values > .container{
    padding-left: calc(var(--about-x) + env(safe-area-inset-left));
    padding-right: calc(var(--about-x) + env(safe-area-inset-right));
  }
  /* separar un pelín los bloques apilados */
  .about-highlight{ margin-top: 8px; }
}

/* XS: aún más padding lateral y 1 tarjeta por fila en Valores */
@media (max-width: 575.98px){
  .values{ padding: calc(var(--about-y) - 12px) 0; }

  .about-intro > .container,
  #mision-vision > .container,
  .values > .container{
    padding-left: calc(var(--about-x-sm) + env(safe-area-inset-left));
    padding-right: calc(var(--about-x-sm) + env(safe-area-inset-right));
  }

  /* Forzar 1 por fila sin tocar el HTML (sobrescribe col-6) */
  #valores .col-6{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* títulos un poquito más compactos */
  .about-intro h2{ line-height: 1.25; }
  .mv-card .mv-text,
  .values p{ line-height: 1.65; }
}


/* =========================
 * Sección Cotización (fondo geométrico sin imágenes)
 * ========================= */
.cotizacion {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 100px 20px;
  /* Base “blueprint” */
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #1f2937 100%); /* slate/graphite */
}

/* Rejilla tipo plano con líneas finas (vertical + horizontal) */
.cotizacion::before {
  content: "";
  position: absolute; inset: 0;
  background:
    /* líneas verticales */
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.05) 0 1px,
      transparent 1px 24px
    ),
    /* líneas horizontales */
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.05) 0 1px,
      transparent 1px 24px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Figuras geométricas: pernos/tuercas (círculos con aro) y placas */
.cotizacion::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* perno 1 */
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.14) 0 6px, transparent 7px),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.10) 0 2px, transparent 3px),
    /* perno 2 */
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.14) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.10) 0 2px, transparent 3px),
    /* perno 3 */
    radial-gradient(circle at 15% 75%, rgba(255,255,255,0.14) 0 6px, transparent 7px),
    radial-gradient(circle at 15% 75%, rgba(255,255,255,0.10) 0 2px, transparent 3px),
    /* placas diagonales */
    linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0) 60%),
    linear-gradient(300deg, rgba(255,255,255,0.05), rgba(255,255,255,0.0) 60%);
  opacity: 0.9;
  pointer-events: none;
}

/* Cinta de seguridad (amarillo/negro) en diagonal en la parte inferior */
.cotizacion .hazard {
  position: absolute;
  left: -10vw; right: -10vw; bottom: -40px;
  height: 120px;
  transform: rotate(-6deg);
  background:
    repeating-linear-gradient(
      -45deg,
      #facc15 0 22px,   /* amarillo */
      #0b0b0b 22px 44px /* negro */
    );
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0.9;
  pointer-events: none;
}

/* Contenido */
.cotizacion h2 {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(1.8rem, 1rem + 2.2vw, 2.6rem);
}
.cotizacion p {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: clamp(1rem, .95rem + .4vw, 1.15rem);
  opacity: 0.95;
}
.cotizacion .btn.btn-primary {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 999px;
}

/* Sutil desplazamiento de la rejilla (animación) */
@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 24px 24px, 24px 24px; }
}
.cotizacion::before {
  animation: gridShift 14s linear infinite;
}

/* Respeto a usuarios con “reducir movimiento” */
@media (prefers-reduced-motion: reduce) {
  .cotizacion::before { animation: none; }
}

/* Inserta la cinta dentro de la sección sin tocar el HTML principal */
.cotizacion { /* crea el elemento .hazard dinámicamente */
  --_inject: "";
}


/* =========================
 * Valores en línea index (match estilo About Intro)
 * ========================= */
.about-inline{
  margin-top: clamp(32px, 5vh, 64px);
  padding: clamp(48px, 7vh, 96px) 0;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  color: #f1f5f9;
  overflow: hidden;
  scroll-margin-top: 96px; /* por si anclas a #valores-inline */
}

/* Luces / glow */
.about-inline::before,
.about-inline::after{
  content:"";
  position:absolute; border-radius:50%;
  filter: blur(120px);
  opacity:.35; z-index:0;
}
.about-inline::before{
  top:-70px; left:-80px; width:300px; height:300px;
  background: rgba(59,130,246,.6); /* azul */
}
.about-inline::after{
  bottom:-90px; right:-60px; width:280px; height:280px;
  background: rgba(236,72,153,.6); /* fucsia */
}

/* Contenido por encima de las luces */
.about-inline > .container{ position: relative; z-index: 2; }

/* ===== Strip horizontal responsivo =====
   - En móvil/tablet: scroll-x con snap para mantener TODO horizontal.
   - En desktop: sin scroll, items se distribuyen en una fila. */
.kv-strip{
  list-style: none;
  margin: 0; padding: 0;

  display: flex; align-items: stretch; gap: 16px;

  /* comportamiento móvil/tablet */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px; /* espacio para scrollbar fino */
}
.kv-strip::-webkit-scrollbar{ height: 6px; }
.kv-strip::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.25); border-radius: 999px; }
.kv-strip::-webkit-scrollbar-track{ background: transparent; }

/* Card inline */
.kv-item{
  scroll-snap-align: start;
  flex: 0 0 82%;                /* móvil: ocupa gran parte del viewport */
  max-width: 420px;             /* evita crecer demasiado */
  min-width: 260px;

  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.kv-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.45), 0 0 0 3px rgba(59,130,246,.12) inset;
  border-color: rgba(59,130,246,.35);
  background: rgba(255,255,255,.10);
}

/* Icono */
.kv-icon{
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.kv-icon::before{
  content:"";
  position:absolute; inset:-6px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35), 0 0 24px rgba(59,130,246,.12);
}
.kv-icon i{
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* Texto */
.kv-text{
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: .2px;
}

/* ===== Desktop: una sola fila sin scroll ===== */
@media (min-width: 992px){
  .kv-strip{
    overflow: visible;
    scroll-snap-type: none;
    gap: 20px;
  }
  .kv-item{
    flex: 1 1 0%;       /* que se repartan equitativamente */
    min-width: 0;       /* permite que en desktop no fije ancho mínimo */
    max-width: none;
    padding: 18px 20;
  }
}
