*{
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: "gteestiprotext", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* Ocupa al menos toda la pantalla */
}

/*TIPO DE FUENTE*/
@font-face {
    font-family: "gteestiprotext";
    src: url("../fuentes/gteestiprotext_regular.otf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "gteestiprotext";
    src: url("../fuentes/gteestiprotext_medium.otf") format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: "gteestiprotext";
    src: url("../fuentes/gteestiprotext_bold.otf") format("opentype");
    font-weight: 700;
}

/*AJUSTES DE TODA LA PAGINA*/
.pagina{
    flex: 1;  /* hace que ese contenedor se expanda para rellenar el espacio sobrante entre el header (que esta dentro) y el footer. */
    width: 95%;
    max-width: 1420px;
    margin: auto;
    margin-bottom: 60px;
    /* background-color: red; */
}

/* CABECERA */
.cabecera{
    background-color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between
}

.lista{
    display: inline-block;
}

.parrafo-cabecera {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgb(18, 103, 186);
    text-decoration: none;
    padding: 17px;
    border-radius: 50px;
    transition: background-color 0.2s;
}

.parrafo-cabecera:hover {
    background-color: rgb(244, 246, 251);
}

.parrafo-boton {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgb(18, 103, 186);
    text-decoration: none;
    padding: 10px;
}

.miBoton{
    display: inline-block; /* Se coloca en línea pero permite tamaño y márgenes como un bloque */
    background-color: rgb(255, 255, 255);
    color: rgb(18, 103, 186);
    border: 2px solid rgb(18, 103, 186);
    font-weight: 400;
    font-size: 17px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.miBoton:hover {
    background-color: rgb(237, 247, 255);
}

/* boton de publicar */
.botonPublicar{
    display: inline-block; /* Se coloca en línea pero permite tamaño y márgenes como un bloque */
    background-color: rgb(18, 103, 186);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(18, 103, 186);
    font-weight: 400;
    font-size: 17px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.botonPublicar:hover {
    background-color: rgb(12, 70, 130);
    border-color: rgb(12, 70, 130);
}






/*Titulo y textos*/
h1{
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2; /*Espacio entre lineas*/
}

h2{
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

p{
    font-weight: 400;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}













/* PANEL DE BUSQUEDA */
/* Botón lupa */
.boton-lupa{
    cursor: pointer;
    padding: 10px;
    border-radius: 50px;
    background-color: white;
    border: none;
    display: inline-flex;
    vertical-align: middle; /* alineación vertical con elementos inline-block */
}

.boton-lupa:hover{
    background-color: rgb(244, 246, 251);
}

.boton-cerrar {
    position: absolute;
    top: 30px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: rgb(18, 103, 186);
}

/* Panel de búsqueda flotante */
.panel-busqueda {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    transition: all 0.2s;
}

.mostrar-panel-busqueda {
    display: flex;
}

.panel-contenido {
    background: white;
    width: 85%;
    border-radius: 30px;
    padding: 20px;
    /* position: relative; */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contenedor-aspa{
    display: flex;
    flex-direction: row-reverse;
} 

.boton-cerrar-panel {
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

.titulo-panel {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/*Formilario*/
.contendor-formualrio-fondo{
    background-color: white;
    padding: 15px;
    position: sticky;
    top: 80px;
}

.contenedor-fomulario-busqueda{
    border: 3px solid rgb(18, 103, 186);
    background-color: white;
    height: 60px;
    border-radius: 35px;
    box-shadow: 0px 0px 9px rgba(124, 124, 124, 0.846);
}

.formulario-busqueda{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 35px 35px 35px 35px;  /* Redondeado izquierdo (coincide con el contenedor) */
}

.linea_vertical{
    display: flex;
    width: 0.1%; 
    height: 70%; /*90%*/
    background-color:rgb(205, 205, 205);
    border-radius: 40px;
}

.parte_formulario_primero{
    font-weight: 400;
    font-size: 16px;
    width: 25%;
    height: 100%;
    border-radius: 35px 0 0 35px;  /* Redondeado izquierdo (coincide con el contenedor) */
    display: flex;
    justify-content: center;
    align-items: center;
}

.parte_formulario{
    font-weight: 400;
    font-size: 16px;
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.categoria-busqueda{
    border-radius: 35px 20px 20px 35px;  /* Redondeado izquierdo (coincide con el contenedor) */
    border: none;
    padding-left: 5%;
    width: 98%;
    height: 90%;
}

.categoria-busqueda option { /*Aplicar estilo a las opciones de un select (desplegable)*/
  background-color: white;
  color: black;
}

.provincia-busqueda, .clave-busqueda{
    border: none;
    border-radius: 20px;
    padding-left: 5%;
    width: 92%;
    height: 84%;
}

.categoria-busqueda:hover, .provincia-busqueda:hover, .clave-busqueda:hover{
    background-color: rgb(217, 237, 255);
}

.categoria-busqueda:focus, .provincia-busqueda:focus, .clave-busqueda:focus{
    background-color: rgb(217, 237, 255);
    outline: none;
}

.boton-busqueda{
    font-weight: 500;
    font-size: 16px;
    width: 25%;
    height: 100%;
    background-color: rgb(18, 103, 186);
    color: white;
    border: none;
    cursor: pointer; /* Para que aparezca la manita como si fuera un boton */
    border-radius: 0 35px 35px 0;  /* Redondeado derecho (coincide con el contenedor) */
    transition: background-color 0.2s;
}

.boton-busqueda:hover {
    background-color: rgb(12, 70, 130);
}

.campo_error_busqueda {
    background-color: #b8d9ff
}

.fade-in {
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}








/* FOOTER */
footer {
    background-color: #f0f0f0;
    padding: 30px 20px;
    /* margin-top: 60px; */
}

.footer-contenido {
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    color: #555;
}

.footer-contenido a {
    color: rgb(18, 103, 186);
    text-decoration: none;
}

.footer-contenido a:hover {
    text-decoration: underline;
}

.ocultar-d{
    display: none
}

@media screen and (max-width: 768px) { /*vista movil*/
    .ocultar{
        display: none;
    }
    
    .columna-texto{
        width: 100%;
        display: flex;
        align-items: center;
    }

    .ocultar-d{
        display: block;
    }

    .titulo{
        font-weight: 700; /*Grosor del texto*/
        font-size: 60px; /*Tamaño del texto*/
    }

    /*Titulo y texto*/

    h1 {
        font-size: 34px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    p {
        font-size: 15px;
        line-height: 1.5;
        color: #555;
    }

























    /* PANEL DE BUSQUEDA */
    /* Botón lupa */
    .boton-lupa-movil{
    cursor: pointer;
    padding: 10px;
    border-radius: 50px;
    background-color: white;
    border: none;
    display: inline-flex;
    }

    .boton-lupa-movil:hover{
        background-color: rgb(244, 246, 251);
    }

    .panel-contenido {
        width: 90%;
        margin: auto;
        max-height: 95%;
        overflow-y: auto; /* Scroll si el contenido es muy alto */
        padding: 20px 15px;
    }

    .titulo-panel {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .boton-cerrar-panel {
        display: block;
        margin: 0 0 10px auto; /* Sin margenes arriba y a la derecha, 10px abajo, alinear el elemento a la derecha */
        background: none;
        border: none;
        cursor: pointer;
    }
    /*Formilario*/
    .contendor-formualrio-fondo {
        top: auto; /* Para que no sea sticky en móovil*/
        padding: 10px;
        z-index: 0;
    }

    .contenedor-fomulario-busqueda {
        height: auto; /* Elimina la altura fija */
        border-radius: 25px;
    }

    .formulario-busqueda {
        flex-direction: column; /* Apila los elementos verticalmente */
        border-radius: 25px;
        height: auto;
    }

    .parte_formulario_primero,
    .parte_formulario {
        width: 100%; /* Ocupan todo el ancho */
        border-radius: 0; /* Quitamos los redondeados laterales */
        padding: 5px 0;
    }

    .parte_formulario_primero {
        border-radius: 25px 25px 0 0; /* Redondeado solo arriba */
    }

    .categoria-busqueda {
        border-radius: 20px; /* Redondeado uniforme */
        width: 95%;
        height: 50px;
        padding-left: 3%;
    }

    .provincia-busqueda, .clave-busqueda {
        width: 90%;
        height: 50px;
        border-radius: 20px;
    }

    .linea_vertical {
        display: none; /* Ocultamos las líneas divisorias */
    }

    .boton-busqueda {
        width: 100%;
        border-radius: 0 0 22.2px 22.2px; /* Redondeado solo abajo */
        height: 50px;
        font-size: 18px;
    }



















    /* Ajustes de texto para móvil */
    .subtitulo {
        font-size: 36px;
    }

    .parrafo {
        font-size: 16px;
    }

    .subtitulo_tres_pasos {
        font-size: 36px;
    }

    .subtitulo-pequeño {
        font-size: 20px;
    }

    .parrafo-pequeño {
        font-size: 15px;
    }

    /* Ajustes del header para móvil (para que se vea mejor)*/
    .cabecera {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        z-index: 900;
    }

    .lista {
        display: inline-block;
    }

    .parrafo-cabecera {
        padding: 10px;
    }

    .miBoton, .botonPublicar {
        padding: 8px 20px;
    }

    .boton-menu{
        background-color: white;
        border: none;
    }

    /* Menú desplegable para móvil */
    .menu-desplegable.mostrar{
        display: flex;
    }

    .menu-desplegable {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 1000; /* Por encima de todo */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .boton-cerrar {
        position: absolute;
        top: 30px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: rgb(18, 103, 186);
    }

    .menu-desplegable ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .menu-desplegable li {
        margin: 20px 0;
    }

    .parrafo-cabecera, .miBoton, .botonPublicar {
        font-size: 20px;
        padding: 15px;
    }

    .contendor-botones{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .miBoton, .botonPublicar {
        display: block;
        margin: 10px;
    }

    .fade-in {
        animation: fadeIn 0.2s;
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
/* 
    .fade-out {
        animation: fadeOut 0.2s;
    }

    @keyframes fadeOut {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    } 
*/

}
