/* =============== ESTILOS GENERALES =============== */
.btn-custom {
  border: var(--border-width) solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  margin-right: var(--spacing-sm);
}


.btn-custom:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
}

/* =============== ESTRUCTURA PRINCIPAL =============== */
#content_fullwidth {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
  padding-top: 0px;
}

#content_fullwidth .content_middle {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 90px 0px;
}

#content_fullwidth .content_middle:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* =============== SLIDER PRINCIPAL =============== */
#slider {
  position: relative;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  overflow: hidden;
}

#videoFondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.5);
  object-fit: cover;
  z-index: var(--z-content);
}

.slider-content-container {
  position: relative;
  z-index: var(--z-hero-content);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  box-sizing: border-box;
}

.text-content {
  color: var(--text-light);
  font-family: var(--font-family-primary);
  width: 40%;
}

/* =============== HERO SECTION =============== */
.text-content h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-light);
  text-shadow: var(--shadow-text);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
  background: linear-gradient(10deg, #457D61, #ACD5C0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Para compatibilidad con otros navegadores */
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
  white-space: nowrap;
}

.text-content p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-light);
  text-shadow: var(--shadow-text-light);
  line-height: var(--line-height-relaxed);
}

/* =============== CARRUSEL =============== */
.carousel-wrapper {
  width: var(--carousel-width);
  max-width: var(--carousel-max-width);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-md);
  position: relative;
  backdrop-filter: blur(10px);
  border: var(--border-width-thin) solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.carousel-wrapper .carousel {
  height: 100%;
  background-color: transparent;
}

.carousel-wrapper .carousel-inner {
  height: 100%;
  background-color: transparent;
  border-radius: var(--border-radius-lg);
}

.carousel-wrapper .carousel-item {
  padding: var(--spacing-md);
  height: 100%;
  background-color: transparent;
  transition: all var(--transition-normal);
}

.carousel-wrapper .box-overslider {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-normal);
}

.carousel-wrapper .box-overslider:hover {
  transform: scale(1.02);
}

.carousel-wrapper .box-overslider img {
  width: 40%;
  max-width: 120px;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(var(--shadow-md));
  transition: all var(--transition-normal);
}

.carousel-wrapper .box-overslider:hover img {
  filter: drop-shadow(var(--shadow-lg));
  transform: scale(1.05);
}

/* =============== CAROUSEL =============== */
.carousel-wrapper .box-overslider h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.carousel-wrapper .box-overslider:hover h2 {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.carousel-wrapper .box-overslider p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  transition: all var(--transition-normal);
}

.carousel-wrapper .box-overslider:hover p {
  color: var(--text-dark);
  transform: translateY(-1px);
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
  width: var(--carousel-control-width);
  opacity: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.5;
}

/* =============== SECCIÓN KPI =============== */
.kpi-container {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--overlay-light) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  padding: var(--kpi-container-padding);
  border-radius: var(--border-radius-xxl);
  width: 100%;
  margin-left: 0%;
  box-shadow: var(--shadow-lg);
  border: var(--border-width-thin) solid var(--border-light);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.kpi-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--border-width-thin);
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.kpi-container .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 0px;
  gap: var(--spacing-sm);
}

.kpi-container .col-md-4 {
  flex: 0 0 28%;
  margin-bottom: 30px;
  transition: transform var(--transition-normal);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
}

.kpi-container .col-md-4:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.3);
}

/* =============== KPI SECTION =============== */
.kpi-container h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.kpi-container .col-md-4:hover h3 {
  color: var(--primary-hover);
  transform: scale(1.05);
}

.kpi-container p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
  line-height: var(--line-height-relaxed);
  transition: all var(--transition-normal);
}

/* =============== IMAGENES EN LÍNEA =============== */
.img_inline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 50px auto;
  padding: var(--spacing-lg) 0;
  position: relative;
}

.img_inline img {
  width: 45%;
  max-width: 600px;
  height: auto;
  margin-right: 5%;
}

/* =============== ELEMENTOS FLOTANTES =============== */
.wsp {
  position: fixed;
  right: var(--spacing-md);
  bottom: 90px;
  z-index: var(--z-whatsapp);
  text-align: right;
  transition: all var(--transition-normal);
}

.wsp:hover {
  transform: scale(1.1);
}

.wsp span {
  display: block;
  background: var(--background-white);
  border-radius: 20px;
  border: var(--border-width-thin) solid var(--border-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-small);
  color: var(--text-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.wsp:hover span {
  opacity: 1;
  transform: translateY(0);
}

.wsp img {
  width: 50px;
  transition: all var(--transition-normal);
  filter: drop-shadow(var(--shadow-sm));
  border-radius: 50%;
}

.wsp img:hover {
  filter: drop-shadow(var(--shadow-lg));
  transform: scale(1.05);
}

.socials {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: var(--z-social);
  transform: translateY(-50%);
}

span.ico_social {
  display: block;
  background: var(--background-white);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-top-left-radius: var(--border-radius-lg);
  border-bottom-left-radius: var(--border-radius-lg);
  border-top: var(--border-width-thin) solid var(--border-color);
  border-left: var(--border-width-thin) solid var(--border-color);
  border-bottom: var(--border-width-thin) solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

span.ico_social::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 163, 136, 0.1),
    transparent
  );
  transition: left var(--transition-slow);
}

span.ico_social:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

span.ico_social:hover::before {
  left: 100%;
}

span.ico_social a {
  color: var(--text-dark);
  transition: color var(--transition-normal);
  display: block;
}

span.ico_social a:hover {
  color: var(--primary-color);
}

/* =============== FOOTER =============== */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: var(--text-light);
  font-family: var(--font-family-primary);
  box-shadow: var(--shadow-footer);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  min-width: 100%;
}

.footer-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--border-width-thin);
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 0 var(--spacing-lg) 30px;
  box-sizing: border-box;
  transition: transform var(--transition-normal);
  width: 100%;
}

/* First column (Visual IQ description) gets more space but not double */
.footer-column:first-child {
  flex: 2;
  min-width: 500px;
}

/* Other columns get standard space */
.footer-column:not(:first-child) {
  flex: 1;
  min-width: 250px;
}

.footer-column:hover {
  transform: translateY(-2px);
}

.footer-column h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  transition: width var(--transition-normal);
}

.footer-column:hover h4::after {
  width: 100%;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
  transition: transform var(--transition-fast);
}

.footer-column ul li:hover {
  transform: translateX(5px);
}

.footer-column ul li a {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--text-light);
  transition: all var(--transition-normal);
  position: relative;
  padding-left: var(--spacing-sm);
}

.footer-column ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  color: var(--primary-color);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-md);
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Address alignment fix - ensure it aligns with other text in the column */
.footer-column ul li a[href*="maps"] {
  text-align: left;
  display: block;
  line-height: 1.4;
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: all var(--transition-normal);
  filter: brightness(1);
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.viq-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.viq-image {
  flex: 0 0 auto;
  margin-right: var(--spacing-lg);
  margin-bottom: 0;
  transition: transform var(--transition-normal);
  text-align: left;
}

.viq-image:hover {
  transform: scale(1.05);
}

.viq-image img {
  width: 100px;
  height: auto;
  filter: drop-shadow(var(--shadow-sm));
}

.viq-text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-light);
  transition: color var(--transition-normal);
  text-align: left;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.viq-section:hover .viq-text {
  color: var(--text-light);
}

.squared-border {
  /*border: 2px solid var(--primary-color);*/
  border-radius: 0;
  padding: 15px;
  /*background: rgba(111, 163, 136, 0.05);*/
  /*box-shadow: 0 2px 8px rgba(111, 163, 136, 0.1);*/
}

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

/* ======================= MEDIA QUERIES ======================= */
/* Pantallas grandes (1200px) */
@media (max-width: 1200px) {
  .text-content h2 {
    font-size: 4rem;
    text-align: center;
  }

  .text-content p {
    font-size: 1.6rem;
    text-align: center;
  }

  .carousel-wrapper {
    max-width: 550px;
  }

  .kpi-container {
    width: 65%;
    padding: 50px 30px;
  }

  .kpi-container h3 {
    font-size: 32px;
  }

  .kpi-container p {
    font-size: 18px;
  }
}

/* Tablets grandes (992px) */
@media (max-width: 992px) {
  .slider-content-container {
    padding: 0 8%;
  }

  .text-content h2 {
    font-size: 3.5rem;
  }

  .text-content p {
    font-size: 1.4rem;
  }

  .carousel-wrapper {
    width: 50%;
    height: auto;
    max-width: 500px;
  }

  .carousel-wrapper .box-overslider h2 {
    font-size: 1.6rem;
  }

  .carousel-wrapper .box-overslider p {
    font-size: 1rem;
  }

  .img_inline {
    flex-direction: column;
  }

  .img_inline img {
    width: 60%;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .kpi-container {
    width: 80%;
    margin-left: 0;
  }

  .kpi-container .col-md-4 {
    flex: 0 0 45%;
  }

  #navbarNav .btn-custom {
    display: block;
    width: 100%;
    padding: 5px 10px;
    margin: 8px 0;
    font-size: 1em;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  /* Make navbar buttons 1.3x larger on desktop */
  @media (min-width: 768px) {
    #navbarNav .btn-custom {
      font-size: calc(1em * 1.3);
      padding: calc(5px * 1.3) calc(10px * 1.3);
      margin: calc(8px * 1.3) 0;
    }
  }

  #navbarNav .btn-custom:hover {
    background-color: #f8f9fa;
  }
}

/* Tablets pequeñas (768px) */
@media (max-width: 768px) {
  #slider {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .slider-content-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 15px 5% 20px;
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .text-content {
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .text-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .carousel-wrapper {
    height: auto;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    z-index: 5;
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kpi-container .col-md-4 {
    flex: 0 0 100%;
    text-align: center;
  }

  .kpi-container h3 {
    font-size: 28px;
  }

  .img_inline img {
    width: 80%;
  }

  /* Footer responsive styles for 768px */
  .footer-menu {
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1;
    min-width: 200px;
    margin: 0 10px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column:first-child {
    flex: 2;
    min-width: 400px;
    width: 100%;
  }

  .viq-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .viq-image {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: left;
  }

  .viq-text {
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }
}

/* Móviles (576px) */
@media (max-width: 576px) {
  #slider {
    min-height: 100vh;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .text-content {
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
    flex: 0 0 45%;
  }

  .text-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
  }

  .text-content p {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .carousel-wrapper {
    height: auto;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    flex: 0 0 45%;
  }

  .carousel-wrapper .box-overslider img {
    width: 30%;
  }

  /* KPI en móviles */
  .kpi-container {
    padding: 30px;
  }

  .kpi-container h3 {
    font-size: 25px;
  }

  .kpi-container p {
    font-size: 16px;
  }

  /* Footer responsive styles for 576px */
  .footer-menu {
    padding: 25px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1;
    min-width: 150px;
    margin: 0 5px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column:first-child {
    flex: 2;
    min-width: 350px;
    width: 100%;
  }

  .viq-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .viq-text {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
  .slider-content-container {
    padding: 40px 5% 30px;
    gap: 20px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-content {
    width: 100%;
    margin-bottom: 0;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .text-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .carousel-wrapper {
    height: auto;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-wrapper .box-overslider img {
    width: 30%;
  }

  /* Imágenes en línea en móviles */
  .img_inline img {
    width: 100%;
  }

  /* Footer responsive styles for 480px */
  .footer-menu {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1;
    margin: 0 0 20px 0;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column:first-child {
    flex: 2;
    min-width: 100%;
    width: 100%;
  }

  .viq-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .viq-image {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: left;
  }

  .viq-text {
    max-width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }

  .img_inline > div {
    width: 100%;
  }
}
