/* -------------------------
   General
------------------------- */
html {
    scroll-padding-top: 80px;
    /* Altura de la barra */
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 45px;
    /* Altura aprox. del footer */
}

/* -------------------------
   Logo
------------------------- */
.logo {
    height: 60px;
    margin-left: 15px;
}

/* -------------------------
   Barra de navegación
------------------------- */
.custom-navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.custom-navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* -------------------------
   Links barra navegacion
------------------------- */
.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: #f0a500 !important;
}

/* -------------------------
   Iconos redes sociales en barra navegacion
------------------------- */
.redes {
    margin-right: 20px;
}

.icon-social {
    width: 45px;
    height: 45px;
    filter: invert(1);
    /* iconos blancos para fondo oscuro */
    transition: filter 0.3s ease;
}

.icon-social:hover {
    filter: invert(0.7) sepia(1) saturate(4) hue-rotate(30deg);
}

.social-icons a {
    color: white;
    margin-left: 20px;
    font-size: 18px;
}

.social-icons a:hover {
    color: #f0a500;
}

/* -------------------------
   Búsqueda en barra navegacion
------------------------- */
form input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
}

form input::placeholder {
    color: #ddd;
}

form button {
    border: none;
}

/* -------------------------
   Resaltado resaltado en palabras
------------------------- */
.highlight {
    background-color: yellow;
    color: black;
    font-weight: bold;
}

mark.search-highlight {
    background-color: yellow;
    padding: 0 2px;
    border-radius: 2px;
}

/* -------------------------
   Panel lateral búsqueda con indice
------------------------- */
.search-panel {
    position: fixed;
    top: 70px;
    /* altura aprox. barra */
    right: -350px;
    /* oculto por defecto */
    width: 300px;
    height: calc(100% - 70px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1050;
    padding: 10px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.search-panel.show {
    right: 0;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.search-panel-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#searchResultsList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#searchResultsList li {
    padding: 6px;
    border-bottom: 1px solid #444;
    cursor: pointer;
}

#searchResultsList li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* -------------------------
   Menú hamburguesa en dispositivos pequeños
------------------------- */
.navbar-toggler {
    border-color: rgb(255, 255, 255);
}

.navbar-toggler:hover {
    border-color: #f0a500;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(240,165,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* -------------------------
   Sección Nosotros
------------------------- */

/* Fondo fijo sección nosotros */
.nosotros-section {
    background-image: url('../img/fondo_nosotros.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Hace que la imagen quede estática */
    color: white;
    position: relative;
}

/* Oscurecer un poco para mejor legibilidad */
.nosotros-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Oscurece el fondo para mejor lectura */
}

.nosotros-section .container {
    position: relative;
    z-index: 2;
}

.nosotros-card {
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* .nosotros-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
} */

.nosotros-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.img-nosotros {
    transform: scaleX(-1);
}

.img-nosotros:hover {
    transform: scaleX(1);
}

/* -------------------------
   Sección Servicios
------------------------- */

.seccion-servicios .card {
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seccion-servicios .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.seccion-servicios .icono {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -------------------------
   Footer
------------------------- */

/* Footer fijo con mismo estilo que navbar */
.footer-fijo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    z-index: 999;
}

/* Texto + logo en línea */
.footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text img {
    height: 30px;
}

.redes-footer {
    display: none !important;
}

/* -------------------------
   Móvil y Tablet
------------------------- */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: left;
        width: 100%;
    }

    .footer-logo {
        display: none !important;
    }

    /* Footer en columna en móviles */
    .footer-fijo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Redes sociales arriba */
    .redes-footer {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-bottom: 8px;
        width: 100%;
        order: -1;
    }

    /* Iconos un poco más grandes en móviles */

    .redes-footer-icon {
        font-size: 24px;
        color: #ffff;
    }

    .redes-footer-icon:hover {
        color: #f0a500;
    }

    /* Texto debajo */
    .footer-text {
        justify-content: center;
    }

    .footer-text img {
        height: 25px;
    }
}

@media (max-width: 576px) {
    .footer-text {
        font-size: 14px;
    }
}