/* nav menu */
:root {
  /*  --primary-color: #2c5530;
    --primary-hover: #245027;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-color: #ff6b35;*/
}

/* Wrapper principal */
/* Estilos adicionales para el header con menú móvil */
.header-sticky .container-fluid {
    position: relative;
}

.btn-show-menu-mobile {
    margin-right: 15px;
}

/* Asegurar que el logo no se solape con el botón */
.navbar-brand {
    margin-left: 0 !important;
}

/* En desktop, asegurar espaciado correcto */
@media (min-width: 992px) {
    .btn-show-menu-mobile {
       /* display: none !important;*/
    }
    
    .main-menu {
        display: flex !important;
    }
}

/* En móvil, ajustar layout */
@media (max-width: 991px) {
    .header-contact-btn {
        display: none;
    }
    
    .navbar-brand {
        flex: 1;
        text-align: center;
    }
}
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav__wrapper.expanded {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Overlay */
.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav__wrapper.expanded .mobile-nav__overlay {
    opacity: 1;
}
/* Contenido del menú */
.mobile-nav__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobile-nav__wrapper.expanded .mobile-nav__content {
    transform: translateX(0);
}
/* Header */
.mobile-nav__header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--marron-tierra);
    flex-shrink: 0;
    position: relative;
}
.mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bs-border-color-translucent);;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
    z-index: 10;
}
.mobile-nav__close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.mobile-nav__logo img {
    max-width: 160px;
    height: auto;
}
/* Body con scroll */
.mobile-nav__body {
    flex: 1;
    overflow: hidden;
    background: var(--secondary-color);
}
.mobile-nav__scroll-container {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    position: relative;
}
/* Sistema de niveles */
.mobile-nav__level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: var(--secondary-color);/*var(--gris-perla);*/
    transform: translateX(100%);
    transition: transform 0.4s ease;
    visibility: hidden;
    opacity: 0;
}
.mobile-nav__level.active {
    position: relative;
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}
/* Botón Atrás */
.mobile-nav__back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-hover);
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-nav__back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* Título del nivel */
.mobile-nav__level-title {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    margin: 0;
    background: var(--primary-hover);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Listas */
.mobile-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav__item--highlighted {
    background: var(--marron-tierra)!important; /*rgba(255, 107, 53, 0.1);*/
    border-left: 3px solid var(--bs-danger-text-emphasis)
}

/* Enlaces */
.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--bs-danger-text-emphasis);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.mobile-nav__link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-nav__icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-nav__arrow {
    color: var(--text-muted);
    font-size: 12px ;
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;}

/* Badge destacado */
.mobile-nav__badge {
;

}
.mobile-nav__check {
    color: #4CAF50;
}
.mobile-nav__flag {
    font-size: 20px;
    margin-right: 8px;
}
.mobile-nav__footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--gris-perla);
}
.mobile-nav__footer-copyright {
    color: var(--bs-danger-text-emphasis);
    font-size: 12px;
    text-align: center;
}
.btn-show-menu-mobile {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    padding: 0;
}
.menubar-box {
    width: 100%;
    height: 100%;
    position: relative;
}
.menubar-inner {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.menubar-inner::before,
.menubar-inner::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.menubar-inner::before {
    top: -8px;
}
.menubar-inner::after {
    bottom: -8px;
}
.btn-show-menu-mobile.active .menubar-inner {
    background: transparent;
}
.btn-show-menu-mobile.active .menubar-inner::before {
    top: 0;
    transform: rotate(45deg);
}
.btn-show-menu-mobile.active .menubar-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}
.languageBtn{
    display: none;
}
@media (max-width: 1199.98px) {
    
    .btn-show-menu-mobile {
        display: block;
    }
    
    /* Ocultar menú desktop en móvil */
    .main-menu {
        display: none !important;
    }
    .languageBtn{
         display: flex;
    }
}   

em {
    line-height: 2.0rem;
}
.descripcion-larga ol >li,
.long-description ol > li {
    line-height: 2rem;}
/* PRELOADER CONTAINER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9f7f60 0%, #f9eedf 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: logoFloat 2s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
.preloader-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    position: relative;
}
.spinner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #f0f0f0;
    border-top-color: #5e442b; /* Color principal de tu tema */
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
}
@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}
/* Spinner alternativo: Multiple circles */
.spinner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.spinner-dot {
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}
.spinner-dot:nth-child(1) {
    animation-delay: 0s;
}
.spinner-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.spinner-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.preloader-text {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
    animation: textFade 1.5s ease-in-out infinite;
}
@keyframes textFade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}
@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}
.preloader-progress {
    width: 200px;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto 0;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    width: 0%;
    animation: progressAnimation 2s ease-in-out infinite;
}
@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .preloader-logo {
        width: 150px;
    }
    
    .preloader-text {
        font-size: 14px;
    }
    
    .preloader-progress {
        width: 150px;
    }
}
/* LANGUAGE SWITCH INDICATOR */
.preloader-message {
    font-size: 14px;
    color: #007bff;
    margin-top: 15px;
    font-weight: 500;
}
/* HEADER STICKY STYLES */
.header-sticky {
    position: relative;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}
.header-sticky.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.35s ease-in-out;
    border-radius: unset;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.header-sticky.is-sticky .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}
.header-sticky.is-sticky .navbar-brand {
    max-width: 180px !important;
    transition: max-width 0.3s ease;
}
.header-sticky-spacer {
    height: 0;
    transition: height 0.3s ease;
}
.header-sticky-spacer.active {
    /* La altura se establecerá dinámicamente con JS */
}
.badge.badge-price.precio-numerico {
    background: #f2efed;
    color: #262626;
    font-weight: 400;
    min-width: 85px;
    text-align: center;
    display: inline-block;
}
.badge.badge-price.precio-texto {
background: #f2efed;
color: #262626;
font-style: italic;
font-size: 0.65em;  
white-space: nowrap;
font-weight: 400;
}
.card.treatment-card .card-text {
height: 80px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
word-break: break-word;
}
.breadcrumb-item+.breadcrumb-item::before {
    color: rgb(255 255 255);
    content: var(--bs-breadcrumb-divider, "/");
}
.dropdown-item.active {
background-color: #5e442b;
color: white;
}
.dropdown-item:hover:not(.active) {
background-color: #f8f9fa;
}
.dropdown-menu {
min-width: 220px;
}
.dropdown-item.active {
    background-color: #5e442b;
    color: white;
}
.service-entry ul li {
    line-height: 1.8rem;
}
.hero-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
}
.treatment-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}
.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
/* Estilos del Sidebar */
.category-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
hr.section-divider .w50 {
    margin: 0.5rem 1rem;
}
.page-single-sidebar .form-select-sm {
  border-radius: 1rem;
}
.category-sidebar .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem;
}
.category-filter-item {
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.category-filter-item:hover {
    background-color: #f8f9fa;
    border-left-color: #667eea;
}
.category-filter-item.active {
    background-color: #e7eaf6;
    border-left-color: #667eea;
    font-weight: 400;
}
.category-filter-item .badge {
    float: right;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.category-filter-item.active .badge {
    background: #667eea;
}
.category-icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
}
.category-filter-item.active .category-icon {
    background: #667eea;
}
.filter-stats {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.language-switcher {
    display: flex;
    gap:  0px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px;
    display: flex;          
    flex-direction: row;  
    justify-content: center; 
    align-items: center;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;     
    justify-content: center; 
    align-items: center; 
}
.lang-btn.active {
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}
.flag {
    font-size: 16px;
}
.code {
    font-size: 16px;
    font-weight: 400;
}
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 85%;
    }
    .container.max-width-70{
        max-width: 70%;
    }
}
/* Por defecto (móvil) - Ocultar menú desktop */
.navbar-collapse.main-menu {
    display: none !important;
}
.navbar-toggle {
    display: block;
}
.responsive-menu {
    display: block;
}

/* Desktop - Mostrar menú desktop a partir de 1200px */
@media (min-width: 1200px) {
    .navbar-collapse.main-menu {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-toggle {
        display: none !important;
    }
    .responsive-menu {
        display: none !important;
    }
    .navbar-expand-lg {
        flex-wrap: nowrap;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem!important;
        padding-left: 1rem!important;
    }
}

/* Tablet y móvil (menos de 1200px) */
@media (max-width: 1199.98px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 90%;
    }
    /* Asegurar que el header tenga el espacio correcto */
    .header-sticky .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    /* Logo más pequeño en móvil */
    .navbar-brand {
        max-width: 150px !important;
    }
    .navbar-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1000;
    }
    .header-contact-btn {
        display: none;
    }
    .page-single-category-list h3 {
        font-size: 20px;
        padding: 20px 10px;
    }
    .page-single-category-list ul li a {
        font-size: 1.0rem;
        font-weight: 500;
    }
}

/* Móvil pequeño (menos de 768px) */
@media (max-width: 767.98px) {
    .navbar-brand {
        max-width: 120px !important;
    }
    
    /* Ajustar padding del navbar en móvil */
    .header-sticky .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
section.blog-section {
    padding: 100px 0;
}
 .terminos ul li{
    line-height: 1.5em;
    margin-bottom: .2em;
}
.terminos a {
    color: var(--accent-color);
    text-decoration: underline;
}
.terminos .btn.golden-bg {
    border: var(--bs-danger-text-emphasis) !important;
    background-color: var(--accent-color);
    color: white;
}
.alert.golden-info {
    background-color: var(--beige-perla);
    color: var(--bs-danger-text-emphasis);
}
 .terms-conditions .terms-section {
    line-height: 1.7;
}

.terms-conditions .terms-section h2 {
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-light);
    padding-bottom: 0.5rem;
}

.terms-conditions .terms-section ul {
    padding-left: 1.5rem;
}

.terms-conditions .terms-section li {
    margin-bottom: 0.5rem;
}

.terms-conditions .section-divider {
    border: 0;
    border-top: 1px solid var(--bs-light);
    margin: 2rem 0;
}

.terms-conditions .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}