body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}

/* Loading overlay styles */
#site-loader.site-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  /* Ensure loader sits above modals (PromotionsModal uses z-index:200000) */
  z-index: 300000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.site-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid rgba(3,67,95,0.08);
  border-top-color: #03435f;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: site-spin 1s linear infinite;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.loader-logo {
  width: 64%;
  height: 64%;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
}
.loader-text {
  margin-top: 18px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  color: #03435f;
  letter-spacing: 0.6px;
}
.loader-text .dots { display:inline-block; margin-left:6px; }
.loader-text .dots span { opacity: 0; display:inline-block; animation: loader-dots 1s infinite; }
.loader-text .dots span:nth-child(1) { animation-delay: 0s; }
.loader-text .dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-text .dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes site-spin { to { transform: rotate(360deg); } }
@keyframes loader-dots { 0% { opacity: 0; transform: translateY(-2px);} 50% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(2px);} }

h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 15px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  color: #608dfd;
  font-weight: 400;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
  -webkit-padding: 0;
  -moz-padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}
/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  content: "";
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}

/* Aplicar el mismo estilo solo al último elemento del menú (por petición) */
#menu.navbar-default .navbar-nav > li:last-child > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  /* keep default inline margin on anchor, spacing applied to the li instead */
  margin: 9px 20px 0;
}
#menu.navbar-default .navbar-nav > li:last-child > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  content: "";
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li:last-child > a:hover:after {
  width: 100%;
}

/* Apply right spacing to the last menu item container so it moves away from page edge */
#menu.navbar-default .navbar-nav > li:last-child {
  margin-right: 50px;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #608dfd;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #608dfd;
}
.section-title {
  margin-bottom: 70px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.section-title p {
  font-size: 18px;
}
.img-half {
  width: 100% !important;
  aspect-ratio: 16 / 9; /* horizontal 16:9 */
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #5ca9fb;
  background-image: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #6372ff;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}
.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}
.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}
.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}
/* Features Section */
#features {
  background: #f6f6f6;
}
#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
/* About Section */
#about {
  padding: 100px 0;
}
#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}
#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}
#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}
#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #5ca9fb;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}
#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 24px;
  margin: 30px 0;
}
/* Services Section */
#Servicios {
  /* Mantener el padding vertical y añadir un padding horizontal para margen lateral */
  padding: 100px 20px;
  background: #03435f; /* sección con fondo sólido solicitado */
  color: #fff;
}
#Servicios .section-title h2 {
  color: #fff;
}
#Servicios .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
#Servicios .service-wrapper {
  background: #fff; /* cada item mantiene fondo blanco */
  border-radius: 6px;
  padding: 18px;
  margin: 12px 0;
  /* usar aspecto 1:1 para cajas cuadradas; quitar el ajuste dinámico por JS */
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
#Servicios .service-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
#Servicios .service-image-placeholder img {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* horizontal 16:9 */
  object-fit: cover;
  border-radius: 4px;
}
#Servicios .service-content h3 {
  font-weight: 600;
  margin: 8px 0;
  color: #03435f; /* título del item en azul de la sección */
}
#Servicios .service-content p {
  color: #03435f; /* texto dentro del item en azul */
  opacity: 0.9;
}

/* Masonry-like cascade using CSS columns */
.services-grid {
  column-count: 3; /* desktop: 3 columns */
  column-gap: 24px;
}
.service-item {
  display: inline-block; /* required for column flow */
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

@media (max-width: 992px) {
  .services-grid { column-count: 2; }
}
@media (max-width: 576px) {
  .services-grid { column-count: 1; }
}
/* Portfolio Section */
#portfolio {
  padding: 100px 0;
}

/* Promotions modal styles */
.promotions-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promotions-backdrop {
  position: absolute;
  inset: 0;
  background: #ffffff; /* fondo blanco sólido */
}

/* Ofertas section title: reuse the same visual style but inline in the page */
.ofertas-section .ofertas-title {
  display: inline-block;
  margin: 0 auto 18px auto;
  padding: 8px 18px;
  border: 3px solid #c0392b;
  background: #fff;
  color: #c0392b;
  font-weight: 800;
  border-radius: 8px;
  font-size: clamp(20px, 2.6vw, 32px);
  text-align: center;
}

/* Remove generic small underline added by .section-title h2::after for this section */
.ofertas-section .section-title h2::after {
  display: none;
}

/* Force the heading text to the sale red in case other rules apply */
.ofertas-section .ofertas-title {
  color: #c0392b !important;
}

/* Reuse modal arrow styles for the section controls */
.promo-prev, .promo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: #03435f;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}
.promo-prev { left: 8px; }
.promo-next { right: 8px; }
.promotions-content {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff; /* fondo blanco sólido solicitado */
  padding: 18px 28px 28px 28px; /* add top/bottom padding to keep image clear of title */
  border-radius: 10px;
}

/* Title banner above promotions content */
.promotions-title {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2015;
  padding: 10px 22px;
  border: 3px solid #c0392b; /* rojo venta, no chillante */
  background: #fff;
  color: #c0392b;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.2vw, 28px);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
}
.promotions-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2010;
  background: #fff;
  border: none;
  color: #03435f; /* flecha azul */
  font-size: 28px;
  width:40px;
  height:40px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.promo-image-wrap {
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px;
  box-sizing: border-box;
}
.promo-image-wrap img {
  display:block;
  width: auto;
  height: auto;
  max-height: calc(70vh - 120px); /* leave room for title and controls */
  max-width: calc(100% - 160px); /* leave lateral space for controls */
  object-fit: contain; /* fit without cropping */
  border-radius: 8px;
  background: #fff; /* fondo blanco sólido */
}

/* Background sizing adjustments for portrait vs landscape banners/offers */
.hero-slide.bg-portrait { background-size: 100% auto !important; background-position: center top !important; background-color: #fff; }
.hero-slide.bg-landscape { background-size: auto 100% !important; background-position: center center !important; }

/* Tall-mode: when container height > width, use an <img> inside the slide sized by viewport height (letterbox) */
.hero-banners--tall .hero-slide { background-image: none !important; display:flex; align-items:center; justify-content:center; background-color: #fff; }
.hero-banners--tall .hero-slide .hero-img { height: 100vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.hero-banners--tall .hero-slide.bg-landscape .hero-img { height: 100vh; }
.hero-banners--tall .hero-slide.bg-portrait .hero-img { height: 100vh; }

.oferta-slide.bg-portrait { background-size: 100% auto !important; background-position: center top !important; background-color: #fff; }
.oferta-slide.bg-landscape { background-size: auto 100% !important; background-position: center center !important; }

/* Promotions modal: when image is portrait, let width dominate and preserve aspect ratio (letterbox vertically) */
.promo-image-wrap img.portrait { width: 100%; height: auto; max-height: 100vh; object-fit: contain; }
.promo-image-wrap img.landscape { width: auto; height: 70vh; max-height: 70vh; object-fit: cover; }
.promo-prev, .promo-next {
  background: #fff; /* botón blanco para contraste */
  color: #03435f; /* flecha azul */
  border: 1px solid #03435f;
  font-size: 28px;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010; /* above oferta slides (which use z-index 2 when active) */
}
.promo-prev { left: 12px; }
.promo-next { right: 12px; }

/* While promotions modal open, hide hero banners to avoid visual clash */


/* Ofertas section styles (replacement for gallery) */
.ofertas-section { padding: 40px 0 80px; }
.ofertas-carousel { position: relative; height: 70vh; overflow: hidden; }
/* Position slides absolutely so they overlap and only opacity changes — prevents lateral shifting */
.oferta-slide {
  position: absolute;
  inset: 0 0 0 0;
  width: 100%;
  max-width: none;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 400ms ease;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.oferta-slide.active { opacity: 1; z-index: 2; }
.oferta-inner { width: 100%; height: 100%; display:flex; align-items:center; justify-content:center; }
.oferta-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(3,67,95,0.6); color: #fff; border: none; font-size: 30px; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; z-index:2002; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}
.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(
    to right,
    rgba(99, 114, 255, 0.8) 0%,
    rgba(92, 169, 251, 0.8) 100%
  );
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}
.casos-de-exito, /* fallback selector for older code */
/* Casos de Éxito Section */
#CasosDeExito {
  padding: 100px 0;
  background: #f6f6f6;
}
#CasosDeExito i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team {
  padding: 100px 0;
}
#team h4 {
  margin: 5px 0;
}
#team .team-img {
  width: 240px;
}
#team .thumbnail {
  background: transparent;
  border: 0;
}
#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}
/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}
/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}
