/* ==== Reset básico ==== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* ==== Ajuste para evitar que el contenido quede oculto debajo del navbar ==== */
body {
    padding-top: 90px; /* 🔹 Espacio para que el navbar no tape el contenido */
}

html, body {
    height: 100%;
    margin: 0;

}
/* ==== Fuente para Todo el Proyecto ==== */
body {
    font-family: 'Open Sans', sans-serif; /* 🔹 Fuente por defecto para el texto general */
    color: #365072; /* Ajusta según tu diseño */
}

main {
    flex: 1;
    width: 100%;
}

/* ==== Encabezados con Raleway ==== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}
.probando{
    color: rgb(14, 221, 24);
}
/* ==== Otros Elementos de Texto General (Parrafos, botones, etc.) ==== */
p, span, a, button, input, textarea, label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.enlaces{
    color: #ff5439 !important;
}

.enlaces1 {
    text-shadow: 1px 1px 3px #fff ;/* 🔹 Color rojo difuso */
    color: #ff5439 !important;
    font-size: 1.5rem !important;
}

/* === Estilos botones=== */
.botones{
    background-color: #2dadb6;
    border-color: #2dadb6;
}

.botones:hover{
    background-color: #365072;
    border-color: #365072;
    color: #f1c40f;
}

.botones-primary{
    background-color: #365072;
    border-color: #365072;
    color: #f1c40f;
}

.botones-primary:hover{
    background-color: #2dadb6;
    border-color: #2dadb6;
    color: #fff;
}

.botones-secundary{
    background-color: #2dadb6;
    border-color: #2dadb6;
    color: #fff;
}

.botones-secundary:hover{
    background-color: #365072;
    border-color: #365072;
    color: #f1c40f;
}
/* ==== Mejorar visibilidad del Títulos y Párrafos ==== */
h1.banner {
    font-size: 4rem;
    color: #ff5439;
    font-weight: 700 !important;
    /*text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* 🔹 Mayor legibilidad */
}

.titulo-primario{
    font-size: 4rem !important;
    color: #365072 !important;
    font-weight: 700 !important;
}

.titulo-primario-sub{
    font-size: 4rem !important;
    color: #ff5439 !important;
    font-weight: 700 !important;
}

.titulo-secundario{
    font-size: 2rem !important;
    color: #2dadb6 !important;
    font-weight: lighter important;
}
.titulos2{
    font-size: 3rem !important;
    text-shadow: rgba(45, 173, 182, 0.2) 2px 3px !important;
}

.titulos3{
    margin-top: 10px !important;
    color: rgba(255, 84, 57, 0.9)!important;
}

.titulos4{
    color: #ff5439 !important;
}

.parraf {
    font-size: 1.2rem !important;
    color: #f1c40f !important;  /* 🔹 Amarillo dorado para mayor contraste */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5) !important;
}

.form-group label,
.form-label{
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #365072 !important;
}

/* ==== Slogan ==== */
.slogan-main {
    font-size: 1.5rem !important;
    color: #365072 !important;
    font-weight: lighter !important;
    /*margin-top: 50px !important;
    text-align: center;*/
}

.slogan-main span {
    font-size: 1.5rem !important;
    color: #ff5439 !important;
    font-weight: lighter !important;
    /*margin-top: 50px !important;
    text-align: center;*/
}

.slogan-sub {
    font-size: 1.2rem !important;
    color: #2dadb6 !important;
    font-weight: lighter !important;
    /*margin-top: 50px !important;
    text-align: center;*/
}

/* ==== Tablas de Resultados ====*/
.table-wrapper-scroll {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
  }
  
  /* 🔒 Fijar encabezado */
  .sticky-header th {
    background-color: #365072 !important;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  
/* ==== Lista de sugerencias ==== */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==== Cada sugerencia ==== */
.suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestions li {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease-in-out;
}

.suggestions li:hover {
    background-color: rgba(255, 75, 43, 0.9);
    color: white;
}

/* ==== Estilos para los Resultados de Búsqueda ==== */
/* 🔹 Evita el display: none de .suggestions */
.search-suggestions {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1;
}

/* 🔹 Estilo de cada ítem como sugerencia */
.search-suggestions li {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease-in-out;
}

/* 🔹 Hover como en el autocomplete */
.search-suggestions li:hover {
    background-color: rgba(255, 75, 43, 0.9);
}

.search-suggestions li:hover a {
    color: white !important;
}
.search-suggestions li:hover small {
    color: white !important;
}

/* ==== Fijar Navbar en la parte superior ==== */
.navbar {
    position: fixed; /* 🔹 Fija el navbar en la parte superior */
    top: 0; /* 🔹 Lo mantiene arriba */
    left: 0;
    width: 100%;
    z-index: 1050; /* 🔹 Se asegura de que esté sobre otros elementos */
    background: rgba(0, 0, 0, 0.8); /* 🔹 Hace el fondo semi-transparente */
    backdrop-filter: blur(10px); /* 🔹 Agrega efecto vidrio esmerilado */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.barra-navegacion{
    background-color: #030303 !important;
}

/* === El Foooter siempre pegado en la parte inferior === */
.footer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-top: auto; /* 🔥 clave para sticky */
    background: rgba(255, 255, 255, 0.6);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    backdrop-filter: blur(5px);
    border-top: 2px solid #ccc;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    text-align: left;
    font-size: 0.9rem;
    color: #555;
}

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

/* ==== Responsive para móviles ==== */
@media (max-width: 768px) {

    body {
        padding-top: 100px;
    }
    
    .banner, .titulo-primario, .titulo-primario-sub{
        font-size: 2rem !important;
    }

    .slogan, .titulo-secundario {
        font-size: 1.2rem !important;
    }

    .suggestions {
        max-height: 250px !important;
    }

    .results{
        margin: auto !important;
        max-height: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
    }
    .footer-content{
        flex-direction: column-reverse;
    }

    .footer-text {
        text-align: center;
        font-size: 0.7rem;
        color: #555;
        padding-top: 10px;
    }
    .footer {
        padding: 10px;
        z-index: 100 !important;
    }
}