@font-face {
  font-family: 'Avenir Next';
  src: url('avenir_next_medium.woff2') format('woff2'),
       url('avenir_next_medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('avenir_next_demi_bold.woff2') format('woff2'),
       url('avenir_next_demi_bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Avenir Next', sans-serif;
  color: #21283B;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

.sticky-top {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Scroll margin en anclas --- */
#inicio {
  scroll-margin-top: 85px;
}

#experiencia, #casos, #faq, #clientes {
  scroll-margin-top: 35px;
}

@media (max-width: 991.98px) {
  #inicio {
    scroll-margin-top: -85px;
  }
  #experiencia, #casos, #faq, #clientes {
    scroll-margin-top: 340px;
  }
}

/* --- Decoración --- */
.subrayado-azul {
  background-image: linear-gradient(to top, #4daaf1 3px, transparent 3px);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 100%;
}

/* --- Hero --- */
.hero {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

/* --- Botones y colores --- */
.bg-primary { background-color: #0476B4 !important; }
.bg-success { background-color: #60AE7A !important; }
.bg-dark    { background-color: #435278 !important; }
.bg-info    { background-color: #06AEEF !important; }

.btn-primary       { background-color: #435278 !important; border-color: #435278 !important; }
.btn-secondary     { background-color: #06AEEF !important; border-color: #06AEEF !important; }
.btn-outline-primary, .btn-outline-primary:hover {
  border: 2px solid #0476B4 !important;
}
.btn-outline-primary {
  color: #0476B4 !important;
}
.btn-outline-primary:hover {
  background-color: #0476B4 !important;
  color: white !important;
}
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 0;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1); /* capa de luz */
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.btn:hover::after {
  opacity: 1;
}

/* --- Mega Menú --- */
.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  border-top: 3px solid #435278;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .mega-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

.mega-menu .dropdown-item {
  font-size: 18px;
  padding: 14px 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.mega-menu .dropdown-item:hover {
  background: #f8f9fa;
  color: #435278;
}

@media (max-width: 991px) {
  .mega-menu {
    position: relative;
    top: 100%;
    left: 0;
    background: transparent;
    display: none;
    padding: 0;
    box-shadow: none;
    z-index: 9999;
  }
  .mega-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .mega-menu .dropdown-item {
    display: block;
    text-align: center;
    padding: 12px;
    width: 100%;
  }
}

/* --- Icono Hamburguesa --- */
.hamburguesa-icon {
  display: inline-block;
  width: 30px;
  height: 22px;
  position: relative;
  transition: transform 0.3s ease;
}

.hamburguesa-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #435278;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburguesa-icon span:nth-child(1) { top: 0; }
.hamburguesa-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburguesa-icon span:nth-child(3) { bottom: 0; }

.navbar-toggler {
  border: none;
}

.navbar-toggler[aria-expanded="true"] .hamburguesa-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburguesa-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburguesa-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --- Glow efecto --- */
.glow-box {
  position: relative;

  cursor: pointer;
  transition: background 0.3s;
}

.glow-box::before {
  content: '';
  position: absolute;
/*  overflow: hidden; */
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
  transition: top 0.2s, left 0.2s;
  border-radius: 50%;
}

/* --- miga de pan --- */
.breadcrumb a {
  color: #435278 !important;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  color: #6c757d; /* color gris similar al default de Bootstrap */

}

/* --- Inicio --- */
#inicio {
  background-color: #f5f8fa;
  padding: 60px 0;
}

#inicio h1 {
  font-weight: 600;
  font-size: 2.5rem;
  color: #333;
}

#inicio p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

#inicio .row .col div {
  overflow: hidden;
}

#inicio .caluga {
  min-height: 200px;
  text-align: left;
}

#inicio .caluga img {
  position: absolute;
  width: 95%;
  top: -20%;
  left: 20%;
}

@media (max-width: 991px) {
  #inicio .caluga {
    min-height: 100px !important;
    text-align: left;
  }

  #inicio .caluga img {
    position: absolute;
    width: 55% !important;
    top: -80% !important;
    right: -5% !important;
    left: auto !important;
  }
}

/* --- Casos --- */
#casos .container .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#casos .caso {
  min-height: 88px;
}

#casos .caso .btn {
  font-weight: bold;
  font-size: 110%;
}

#casos .caso.bg-dark .btn { color: #435278 !important; }
#casos .caso.bg-info .btn { color: #06AEEF !important; }
#casos .caso.bg-success .btn { color: #60AE7A !important; }
#casos .caso.bg-primary .btn { color: #0476B4 !important; }

/* --- FAQ --- */
.faq .accordion-button {
  font-weight: bold;
}

.accordion-custom {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #2e2e2e;
  text-align: left;
}

.accordion-custom:focus {
  outline: none;
  box-shadow: none;
}

.accordion-custom .question-text {
  flex: 1;
  margin-right: 1rem;
  text-align: left;
  word-break: break-word;
}

.icon-circle {
  width: 32px;
  height: 32px;
  background-color: #38456A;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.arrow-icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.accordion-custom[aria-expanded="true"] .arrow-icon {
  transform: rotate(-135deg);
}

.accordion-body {
  color: #435278;
}

.accordion-item {
  border: none;
}

.accordion-button::after {
  font-weight: bold;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
}

/* --- Clientes --- */
.clients img {
  max-width: 120px;
  margin: 10px;
}

/* --- Footer --- */
footer {
  background: #343a40;
  color: white;
  padding: 20px 0;
}

.logo-footer {
  max-width: 200px;
  height: auto;
}

footer .btn {
  border-radius: 20px;
}

footer .bi {
  transition: transform 0.3s ease-in-out;
}

footer .bi:hover {
  transform: scale(1.2);
}

footer .text-white {
  font-size: 24px;
  transition: 0.3s;
}

footer .text-white:hover {
  color: #007bff;
}

/* --- Article --- */

article h1 {
  margin-top: 0;
}
article h2 {
  font-size: 20px;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

.sidebar .nav-link {
  font-size: 1rem;
  color: #0476B4;
  padding: 5px 0 0 20px;
  position: relative;
  transition: color 0.3s;
}

.sidebar .nav-link::before {
  content: "→";
  color: #0476B4;
  font-size: 1rem;
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s;
}

.sidebar .nav-link:hover {
  color: #035b92;
}

.sidebar .nav-link:hover::before {
  color: #035b92;
}

/* --- Extra --- */
.quote {
  font-style: italic;
  font-size: 1.2em;
  padding: 15px;
  background: #f0f4f8;
  border-left: 5px solid #007bff;
  margin: 20px 0;
  color: #333;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #f8f9fa;
  color: #333;
}
.custom-table th, .custom-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
}
.custom-table th {
  background: #343a40;
  color: white;
}
.custom-table td img {
  max-width: 30px;
}

h1, h2, h3, h4 {
  color: #343a40;
  font-weight: 500;
  margin-top: 20px;
}

h2 {
  position: relative;
  padding-left: 35px;
  display: inline-flex;
  align-items: center;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid #06AEEF;
}

article h2 {
  padding-left: 0;
}

article h2::before {
  content: none;
}

p {
  line-height: 1.6;
}

.soluciones h3 {
  font-size: 22px;
  margin-top: 0;
}

.txt-up {}
.txt-dn {}

#categoria .service-box {
  min-height: 180px;
}