/* Variables de color */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --accent-color: #3498db;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    user-select: none;
       
    
}


/* Contenedor de barras fijas */
.fixed-header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

/* Barra superior */
.top-bar {
    width: 100%;
    background-color: var(--dark-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/*/*********idiomas********/
/****************************/
.language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.lang-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ffffff20;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: background-color 0.3s, transform 0.2s;
}

.lang-circle:hover {
    background-color: #ffffff40;
    transform: scale(1.1);
}
/*********************************/
/* Barra de navegación principal */
/*************************************/
/* Variables de color */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --accent-color: #3498db;
}



/*****************************************/
/******************************************/

/* Barra de navegación - Estilos generales */
/*****************************************/
/******************************************/


 .fixed-header-container {
     transition: transform 0.3s ease-in-out;
     z-index: 1030;


 }

 @media (min-width: 992px) {

     .main-navbar,
     .fixed-header-container {
         margin-bottom: 0 !important;
         padding-bottom: 0 !important;
     }

     .main-content {
         margin-top: 0 !important;
     }
 }

 @media (max-width: 991px) {
     .main-content {
         margin-top: 88px;
     }
 }

 
/*************************************************/
 /* Barra de navegación - Estilos generales */
 /*********************************************/

 .navbar-brand img.logo-custom {
     width: 150px;
     height: 100px;
     margin-left: 10px;
 }

 @media (max-width: 768px) {
     .navbar-brand img.logo-custom {
         width: 100px;
         height: auto;
         margin-left: 15px;
     }
 }


.main-navbar {
    width: 100%;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: white;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}
.nav-link.active {
    color: #ffc107 !important;
    /* amarillo Bootstrap */
    font-weight: bold;
    border-bottom: 2px solid #ffc107;
}
/* Menú colapsable en móvil */
.navbar-collapse {
    background-color: var(--dark-color);
}

/* Ajustes específicos para móvil */
@media (max-width: 991.98px) {
    .fixed-header-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    .main-navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav {
        padding-top: 0.5rem;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 0.75rem 0;
    }

   
   
    .main-content {
        margin-top: 88px;
        /* Reducido para móvil */
    }

    /* Ajustes específicos para el hero en móvil */
    .hero-slider {
        height: 70vh;
        margin-top: 0;
        /* Eliminar cualquier margen adicional */
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}


/******************************************/
/*****************HERO************************/
/******************************************/
.hero-slider {
    width: 100%;
    height: 100vh;
    max-height: 800px;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-1 {
    background-image: url('../img/slider/slider-2.avif');
}

.slide-2 {
    background-image: url('../img/slider/slider-3.jpg');
}

.slide-3 {
    background-image: url('../img/slider/slider-1.jpg');
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Estilos para la paginación y navegación de Swiper */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
    background: var(--secondary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Ocultar flechas de navegación en móvil */


/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}




/*********************************/
/*********************************/
/*********************************/
/*********************************/


/* Buscador */
.search-container {
    position: relative;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 300px;
}



/* Secciones */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Tarjetas destacadas */
.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 180px;
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img-top img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--secondary-color);
}

/* Servicios */
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-top: 132px;
        /* Más espacio para el menú expandido */
    }

    .search-box {
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }

    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/************************************/
/*************boton arriba**********/
/**************************************/

.toupbutton {
    visibility: hidden;
    position: fixed;
    z-index: 4;
    left: 2rem;
    bottom: 40px;
    width: 40px;
    height: 40px;
    transition: all 0.5s ease;
    transform: scale(0);
    opacity: 0;
    background: #ffc451;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toupbutton i {
    font-size: 24px;
    color: #000;
    /* Cambia el color del ícono */
}

.toupbutton.upIsActive {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    cursor: pointer;
}