/* Fix para el contraste del menú desplegable */

/* Mejorar el contraste de los enlaces del dropdown menu */
.main-menu .main-menu__list > li > ul > li > a,
.main-menu .main-menu__list > li > ul > li > ul > li > a,
.stricky-header .main-menu__list > li > ul > li > a,
.stricky-header .main-menu__list > li > ul > li > ul > li > a {
  color: var(--jetly-black) !important;
  background-color: var(--jetly-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estado hover para los enlaces del dropdown */
.main-menu .main-menu__list > li > ul > li:hover > a,
.main-menu .main-menu__list > li > ul > li > ul > li:hover > a,
.stricky-header .main-menu__list > li > ul > li:hover > a,
.stricky-header .main-menu__list > li > ul > li > ul > li:hover > a {
  background-color: var(--jetly-primary) !important;
  color: var(--jetly-black) !important;
}

/* Asegurar que el contenedor del dropdown tenga buen contraste */
.shadow-box {
  background-color: var(--jetly-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fix para los iconos de flecha en el dropdown */
.main-menu .main-menu__list > li > ul > li > a::before,
.main-menu .main-menu__list > li > ul > li > ul > li > a::before,
.stricky-header .main-menu__list > li > ul > li > a::before,
.stricky-header .main-menu__list > li > ul > li > ul > li > a::before {
  color: var(--jetly-base) !important;
}

/* Fix para títulos responsive en móvil */

/* Estilos base para títulos de página */
.page-header__inner h2,
.section-title__title-about,
.section-title__title {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

/* Altura mínima para page-header */
.page-header {
  min-height: 350px !important;
}

/* Eliminar padding de about-four */
.about-four {
  padding: 0 !important;
}

/* Contener imágenes dentro de su contenedor */
.about-four__left {
  overflow: hidden !important;
}

.about-four__left .image-one {
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}

  .about-four__left .image-one img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    max-width: 100% !important;
  }

/* Centrar contenido de texto verticalmente en desktop */
@media (min-width: 1200px) {
  .col-xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .about-four__right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: 100% !important;
    margin-top: 0 !important;
  }
}

/* Estilos responsive para resoluciones intermedias */
@media (max-width: 1200px) {
  .page-header__inner {
    padding: 200px 0 80px !important;
  }
  
  .page-header__inner h2,
  .section-title__title-about,
  .section-title__title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
}

/* Estilos responsive para móvil */
@media (max-width: 992px) {
  .page-header__inner {
    padding: 220px 0 80px !important;
  }
  
  .page-header__inner h2,
  .section-title__title-about,
  .section-title__title {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  /* Títulos h4 más pequeños */
  h4.section-title__title-about {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 768px) {
  .page-header__inner {
    padding: 200px 0 60px !important;
  }
  
  .page-header__inner h2,
  .section-title__title-about,
  .section-title__title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    padding: 0 8px !important;
  }
  
  h4.section-title__title-about {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 576px) {
  .page-header__inner {
    padding: 180px 0 50px !important;
  }
  
  .page-header__inner h2,
  .section-title__title-about,
  .section-title__title {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    padding: 0 5px !important;
  }
  
  h4.section-title__title-about {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .page-header__inner {
    padding: 225px 0 40px !important;
  }
  
  .page-header__inner h2,
  .section-title__title-about,
  .section-title__title {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    padding: 0 5px !important;
  }
  
  h4.section-title__title-about {
    font-size: 1rem !important;
  }
}

/* Fix para breadcrumbs responsive */
.thm-breadcrumb {
  margin-top: 20px !important;
  justify-content: center !important;
  align-items: center !important;
}

.thm-breadcrumb li {
  padding: 10px 8px !important;
}

@media (max-width: 992px) {
  .breadcrumb-container {
    text-align: center;
    margin-top: 30px !important;
  }
  
  .thm-breadcrumb {
    font-size: 0.85rem;
    justify-content: center !important;
    gap: 3px !important;
  }
  
  .thm-breadcrumb li {
    padding: 8px 10px !important;
  }
  
  .thm-breadcrumb li span {
    margin: 0 3px !important;
    font-weight: normal !important;
  }
}

@media (max-width: 768px) {
  .breadcrumb-container {
    padding: 0 15px;
    margin-top: 25px !important;
  }
  
  .thm-breadcrumb {
    font-size: 0.8rem;
    flex-wrap: nowrap !important;
    gap: 2px !important;
  }
  
  .thm-breadcrumb li {
    padding: 6px 8px !important;
  }
  
  .thm-breadcrumb li span {
    margin: 0 2px !important;
  }
}

/* Mover title-container más abajo en móvil y tablet */
@media (max-width: 1200px) {
  .about-four__right {
    margin-top: 20px !important;
  }
  

}

@media (max-width: 992px) {


}



/* Modern Mobile Menu Styles */
/* Reset z-index for all menu elements */
.main-header {
  z-index: 99 !important;
}

.main-menu {
  z-index: 99 !important;
}

.main-menu__logo {
  position: relative;
  z-index: 99 !important;
}

.mobile-nav__toggler {
  position: relative;
  z-index: 99 !important;
}

/* Mobile Menu Styles */
.modern-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999 !important;
  display: none;
  overflow: hidden;
}

.modern-mobile-menu.active {
  display: block;
}

.modern-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000 !important;
}

.modern-mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #1c1c1c;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  z-index: 100001 !important;
}

.modern-mobile-menu.active .modern-mobile-sidebar {
  right: 0;
}

/* Ensure menu items are above the overlay */
.modern-mobile-header,
.modern-mobile-nav,
.modern-language-selector,
.modern-contact-section {
  position: relative;
  z-index: 100002 !important;
}

/* When menu is active, hide other elements */
body.menu-active {
  overflow: hidden;
}

body.menu-active .main-header,
body.menu-active .main-menu__logo,
body.menu-active .mobile-nav__toggler {
  z-index: 98 !important;
}

/* Custom scrollbar */
.modern-mobile-sidebar::-webkit-scrollbar {
  width: 4px;
}

.modern-mobile-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.modern-mobile-sidebar::-webkit-scrollbar-thumb {
  background: rgba(217, 178, 130, 0.5);
  border-radius: 2px;
}

/* Header Section */
.modern-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(217, 178, 130, 0.1);
}

.modern-mobile-logo img {
  max-width: 120px;
  height: auto;
  filter: brightness(1.1);
}

.modern-mobile-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.modern-mobile-close:hover {
  background: rgba(217, 178, 130, 0.2);
  color: rgb(217, 178, 130);
  transform: rotate(90deg);
}

/* Navigation */
.modern-mobile-nav {
  padding: 30px 0;
}

.modern-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.modern-nav-item:hover {
  background: rgba(217, 178, 130, 0.05);
}

.modern-nav-link {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.modern-nav-link:hover {
  color: rgb(217, 178, 130);
  background: rgba(217, 178, 130, 0.1);
  padding-left: 30px;
}

.modern-nav-link i {
  margin-right: 15px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: rgba(217, 178, 130, 0.8);
  transition: all 0.3s ease;
}

.modern-nav-link:hover i {
  color: rgb(217, 178, 130);
  transform: scale(1.1);
}

/* Dropdown functionality */
.modern-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.modern-nav-toggle .modern-nav-link {
  flex: 1;
  margin-right: 0;
}

.modern-dropdown-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 18px 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.modern-dropdown-btn:hover {
  color: rgb(217, 178, 130);
  background: rgba(217, 178, 130, 0.1);
}

.modern-dropdown-btn i {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-nav-item.active .modern-dropdown-btn i {
  transform: rotate(180deg);
  color: rgb(217, 178, 130);
}

.modern-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.modern-nav-item.active .modern-dropdown-menu {
  max-height: 600px;
  opacity: 1;
  padding: 10px 0;
}

.modern-dropdown-menu li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.modern-nav-item.active .modern-dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

.modern-nav-item.active .modern-dropdown-menu li:nth-child(1) { transition-delay: 0.1s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(2) { transition-delay: 0.15s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(3) { transition-delay: 0.2s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(4) { transition-delay: 0.25s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(5) { transition-delay: 0.3s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(6) { transition-delay: 0.35s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(7) { transition-delay: 0.4s; }
.modern-nav-item.active .modern-dropdown-menu li:nth-child(8) { transition-delay: 0.45s; }

.modern-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 50px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.modern-dropdown-menu a:hover {
  background: rgba(217, 178, 130, 0.15);
  color: rgb(217, 178, 130);
  border-left-color: rgb(217, 178, 130);
  padding-left: 55px;
}

.modern-dropdown-menu a i {
  margin-right: 12px;
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: rgba(217, 178, 130, 0.6);
}

.modern-dropdown-menu a:hover i {
  color: rgb(217, 178, 130);
}

/* Language Selector */
.modern-language-selector {
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
  background: rgba(217, 178, 130, 0.05);
}

.modern-language-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.modern-language-title i {
  margin-right: 10px;
  color: rgb(217, 178, 130);
  font-size: 18px;
}

.modern-language-options {
  display: flex;
  gap: 10px;
}

.modern-lang-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(217, 178, 130, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modern-lang-btn:hover {
  background: rgba(217, 178, 130, 0.2);
  border-color: rgb(217, 178, 130);
  color: #ffffff;
}

.modern-lang-btn.active {
  background: rgba(217, 178, 130, 0.3);
  border-color: rgb(217, 178, 130);
  color: #ffffff;
  font-weight: 600;
}

.flag-emoji {
  font-size: 16px;
}

/* Contact Section */
.modern-contact-section {
  padding: 25px 20px;
  margin-top: auto;
}

.modern-contact-item {
  margin-bottom: 20px;
}

.modern-contact-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 12px 15px;
  border-radius: 8px;
  background: rgba(217, 178, 130, 0.1);
  border: 1px solid rgba(217, 178, 130, 0.2);
}

.modern-contact-link:hover {
  color: rgb(217, 178, 130);
  background: rgba(217, 178, 130, 0.2);
  border-color: rgb(217, 178, 130);
  transform: translateY(-2px);
}

.modern-contact-link i {
  margin-right: 12px;
  font-size: 18px;
  color: rgb(217, 178, 130);
}

.modern-social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modern-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(217, 178, 130, 0.1);
  border: 1px solid rgba(217, 178, 130, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.modern-social-link:hover {
  background: rgba(217, 178, 130, 0.3);
  border-color: rgb(217, 178, 130);
  color: #ffffff;
  transform: translateY(-3px) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-mobile-sidebar {
    width: 320px;
    right: -320px;
  }
  
  .modern-mobile-header {
    padding: 20px 15px;
  }
  
  .modern-nav-link {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .modern-dropdown-menu a {
    padding: 10px 15px 10px 40px;
    font-size: 13px;
  }
  
  .modern-language-selector,
  .modern-contact-section {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .modern-mobile-sidebar {
    width: 300px;
    right: -300px;
  }
  
  .modern-mobile-header {
    padding: 15px 12px;
  }
  
  .modern-nav-link {
    padding: 14px 15px;
    font-size: 14px;
  }
  
  .modern-nav-link i {
    margin-right: 12px;
    font-size: 16px;
  }
  
  .modern-dropdown-menu a {
    padding: 8px 12px 8px 35px;
    font-size: 12px;
  }
  
  .modern-language-selector,
  .modern-contact-section {
    padding: 15px 12px;
  }
  
  .modern-lang-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .modern-contact-link {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .modern-social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Animation enhancements */
@media (prefers-reduced-motion: no-preference) {
  .modern-mobile-menu {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .modern-mobile-sidebar {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .modern-nav-item:hover .modern-nav-link {
    animation: slideInLeft 0.3s ease;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-10px);
    opacity: 0.8;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom Language Selector Styles */
.custom-lang-selector { 
    position: relative; 
    min-width: 150px;
    z-index: 9999;
    margin-left: 10px;
}

.custom-lang-display { 
    display: flex !important; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 12px; 
    border: 2px solid rgb(217, 178, 130); 
    border-radius: 4px; 
    background: rgba(0, 0, 0, 0.8) !important; 
    color: rgb(217, 178, 130) !important; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-lang-display:hover { 
    background: rgba(217, 178, 130, 0.2) !important; 
    border-color: rgb(217, 178, 130);
}

.custom-lang-display .flag-icon { 
    font-size: 18px; 
    line-height: 1;
}

.custom-lang-display .lang-text { 
    flex: 1; 
    font-size: 14px; 
    font-weight: 500;
}

.custom-lang-display i { 
    transition: transform 0.3s ease; 
    font-size: 12px; 
    color: rgb(217, 178, 130);
}

.custom-lang-options { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: rgba(0, 0, 0, 0.95); 
    border: 2px solid rgb(217, 178, 130); 
    border-radius: 4px; 
    border-top: none; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-lang-selector.active .custom-lang-options { 
    max-height: 200px; 
}

.custom-lang-option { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 12px; 
    color: rgb(217, 178, 130); 
    cursor: pointer; 
    transition: background 0.3s ease;
    font-weight: 500;
}

.custom-lang-option:hover { 
    background: rgba(217, 178, 130, 0.2); 
}

.custom-lang-option .flag-icon { 
    font-size: 18px; 
    line-height: 1;
}

.custom-lang-option .lang-text { 
    font-size: 14px; 
    font-weight: 500;
}

.custom-lang-selector.active .custom-lang-display i { 
    transform: rotate(180deg); 
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-left: 15px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #D9B282;
    border-radius: 4px;
    color: #D9B282;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(217, 178, 130, 0.1);
}

.language-btn .flag {
    font-size: 18px;
}

.language-btn i {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #1A1A1A;
    border: 2px solid #D9B282;
    border-radius: 4px;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #D9B282;
    cursor: pointer;
    transition: background 0.3s ease;
}

.language-option:hover {
    background: rgba(217, 178, 130, 0.1);
}

.language-option .flag {
    font-size: 18px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
    }
    
    .language-btn {
        padding: 6px 12px;
    }
}

/* Ensure main menu stays below mobile menu */
.main-menu {
  z-index: 99 !important;
}