/* CSS CUSTOM HECHO EN EL SUR */

.no-js .slider { display: none; }
.js .slider { display: block; }

/* --------------------------- GENERALES --------------------------- */
html {
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Open Sans', sans-serif;
}

.text-white {
  color: #fff !important;
}

/* --------------------------- NAVBAR --------------------------- */

/* Fondo nav */
.navbar {
  background-color: #f8f9fa !important;
  padding: 1rem 2rem;
  border-bottom: 1px solid #dee2e6;
  width: 100%;
  margin: 0;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Sticky */
.navbar-area.sticky-add,
.header.sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.4s ease-in-out;
}

/* Subrayado animado */
.nav-underline-animated {
  position: relative;
  z-index: 10;
}
.nav-underline-animated::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #2F80ED, #56CCF2);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1s ease forwards;
}
@keyframes underlineGrow {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Espaciador degradado debajo del nav */
.nav-gradient-spacer {
  height: 40px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-gradient-spacer.hidden {
  opacity: 0;
}

/* Ítems del menú */
.navbar-nav .nav-item .page-scroll {
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar-nav .nav-item .page-scroll:hover,
.navbar-nav .nav-item .page-scroll:focus {
  background-color: #e2e6ea;
  color: #0d6efd !important;
}

/* Hover general de enlaces */
.navbar-nav .nav-item > a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.navbar-nav .nav-item > a:hover,
.navbar-nav .nav-item > a:focus {
  background-color: rgba(13, 110, 253, 0.1);
}

/* --------------------------- HAMBURGER --------------------------- */

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

.navbar-toggler {
  z-index: 99999 !important; /* superior al navbar-collapse */
  position: relative;
}

.navbar-toggler .toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #0d6efd; /* color primario */
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.navbar-toggler:hover .toggler-icon {
  background-color: #003399;; /* oscuro en hover */
}

/* Animación al abrir */
.navbar-toggler.active .toggler-icon:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggler.active .toggler-icon:nth-child(2) {
  opacity: 0;
}
.navbar-toggler.active .toggler-icon:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.custom-nav-divider {
  border: none;
  height: 1px;
  margin: 0.5rem 0;
  background: linear-gradient(to right, transparent, #999, transparent);
  opacity: 0.4;
}

/* Fin Hamburger */
/* --------------------------- MOBILE NAV --------------------------- */

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #f8f9fa;
    box-shadow:
      0 4px 10px rgba(0, 0, 0, 0.1),
      0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    position: relative;
  }

  .mobile-menu-divider {
    width: 75%;
    height: 1px;
    margin: 0.5rem auto;
    border: none;
    background-image: linear-gradient(to right, transparent, #0d6efd, transparent);
    opacity: 0.2;
  }
}

/* --------------------------- OTROS ELEMENTOS --------------------------- */

.nomostrar {
  display: none;
  visibility: hidden;
}

.video-wrapper,
.embed-responsive-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.video-wrapper iframe,
.embed-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.icon.icon-lg {
  font-size: 40px;
  width: 72px;
  height: 72px;
  line-height: 72px;
  text-align: center;
  border-radius: 50%;
  background-color: #0d6efd;
  color: white;
  display: inline-block;
}
@media (max-width: 576px) {
  .icon.icon-lg {
    font-size: 36px;
    width: 64px;
    height: 64px;
    line-height: 64px;
  }
  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .clients-logo-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  .client-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

.services-section .single-feature {
  margin-bottom: 40px;
}
.services-section .icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-color: #0d6efd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-img-rounded {
  width: 100%;
  height: auto;
  border-radius: 12px !important;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

h4 {
  color: #0d6efd !important;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.team-style-1 {
  background: #fff !important;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #0d6efd;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: all 0.3s ease-in-out;
}
.scroll-top:hover {
  background-color: #084cdf;
}
.scroll-top.show {
  display: flex !important;
  justify-content: center;
  align-items: center;
}


/* Logo */
.logo-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 36px; /* Ajustá según sea necesario */
  color: #007bff; /* Azul clásico, podés cambiar a #007bff #0044cc si preferís el azul bootstrap */
  font-weight: bold;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}

.logo-text:hover {
  color: #003399; /* tono más oscuro al pasar el mouse */
}


/* Barra modo mantenimiento activo */
.dev-mode-banner {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #ffeeba;
  z-index: 9999;
}

/* --------------------------- TITULOS RESPONSIVE --------------------------- */

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }
  h5 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }
  h5 {
    font-size: 0.95rem;
  }
}

/* ========================= HERO SLIDER ========================= */
.hero-slider {
  position: relative;
  height: 85vh;
  min-height: 400px;
  max-height: 100vh;
}

.hero-slider .swiper-slide {
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slider .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-slider .container {
  position: relative;
  z-index: 2;
}

/* Título (h1) del slide */
.hero-slider .hero-content h1 {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Subtítulo (p) del slide */
.hero-slider .hero-content p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Botones y paginación */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.8;
}

.swiper-pagination-bullet-active {
  background: #ff8948;
}

/* Actualizacion del Logo */
.logo-text {
  /*font-family: 'Times New Roman', Times, serif;*/
  font-family: 'Nanum Myeongjo', serif;
  font-weight: bold;
  line-height: 1;
  color: #3A3E96; /* #007bff;*/
  font-size: clamp(1.5rem, 6vw, 2.5rem); /* ← más grande en todos los rangos */
  transition: all 0.3s ease-in-out;
}

.logo-text:hover {
  color: #003399;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    1px 1px 0 #eee,
    2px 2px 0 #bbb,
    3px 3px 4px rgba(0, 0, 0, 0.3);
}

/* Menu Hamburger Recuadro Fino */

.navbar-toggler:focus {
  outline: 2px solid rgba(0, 0, 0, 0.4); /* Más fino y suave */
  outline-offset: 2px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
}
/* Fin Hamburger */


.hr-powerbi {
  border: none;
  height: 3px;
  width: 100%;
  margin: 2rem auto;
  background: radial-gradient(circle, #f9c300 0%, transparent 70%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75% 100%;
  opacity: 0.8;
}

.hr-powerbi-horizontal {
  border: none;
  height: 2px;
  width: 100%;
  margin: 2rem auto;
  background: linear-gradient(to right, transparent, #f9c300, transparent);
  opacity: 0.9;
}


/* Video PowerBi */
.poster-overlay {
  position: relative;
  background: #000;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 8px;
}

.poster-overlay img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  font-size: 2.5rem;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 5;
}

/* NEWS */
.post-container {
  max-width: 960px;
  margin: 0 auto;
}

.post-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.post-date {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
}

.post-body p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
}

.post-body ul {
  padding-left: 1.2rem;
  list-style: disc;
}


/* Corrección alineación de íconos en contact.php */
.contact-section .single-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-section .single-item .icon {
  min-width: 32px;
  margin-right: 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #0d6efd;
}

.contact-section .single-item .text {
  flex: 1;
}

.contact-section .single-item .text a {
  word-break: break-all;
  display: block;
}
/* Fin correcion */

/* Mail de contacto */

.form-alert {
  margin-top: 1rem;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  animation: fadeIn 0.3s ease-in-out;
}
.form-alert.success {
  background-color: #28a745;
}
.form-alert.error {
  background-color: #dc3545;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mejora en envio de mails */
.form-alert {
  margin-top: 1rem;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
.form-alert.success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.form-alert.error {
  background-color: #f8d7da;
  color: #842029;
}
