*{
    /* 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);
}

/*FORMULARIO*/
.contenedor-fomulario {
    width: 90%;
    max-width: 450px;           /* Ancho máximo en escritorio */
    margin: 40px auto;          /* Centrado horizontal con separación */
    padding: 30px 25px;
    border-radius: 30px;        /* Bordes redondeados como los botones */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.fomulario{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;                  /* Espacio uniforme entre elementos */
}

/* Titulo formulario */
.titulo-formulario {
    font-weight: 700; /* bold */
    font-size: 28px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Labels con estilo "bonito" (fondo azul claro y bordes redondeados) */
.label-bonito {
    display: block;             /* Ocupan todo el ancho disponible */
    font-weight: 500;
    color: #333;
    padding: 8px 15px;
    border-radius: 50px;        /* Redondeado como los botones */
    font-size: 16px;
    margin-bottom: 5px;
}

/* Campos de entrada (input) */
.campo {
    background-color: #f4f4f4;
    border: 2px solid transparent;
    border-radius: 50px;        /* Bordes completamente redondeados */
    padding: 12px 20px;
    font-size: 16px;
    font-family: inherit;       /* Hereda la tipografía global */
    transition: border-color 0.2s, background-color 0.2s;
    width: 90%;
}

/* Efecto al hacer foco: borde azul y fondo blanco */
.campo:focus {
    border-color: rgb(18, 103, 186);
    background-color: #ffffff;
    outline: none;
}

/* Placeholder más claro */
.campo::placeholder {
    /* color: #aaa; */
    font-weight: 300;
}

/* Campo con error */
.campo_error{
    border-color: #dc3545;
    background-color: #fff8f8;   
}

.mensaje-error {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    margin-left: 15px;
}

.campo_error:focus{
    border-color: #dc3545;
    background-color: #fff8f8;
    outline: none;
}

/* Botón (aprovechamos la clase .boton que ya existe, pero la ajustamos al contexto) */
.boton {
    background-color: rgb(18, 103, 186);
    color: white;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    width: 100%;                /* Botón ancho completo */
    transition: background-color 0.2s;
    margin-top: 10px;
}

.boton:hover {
    background-color: rgb(12, 70, 130);
}

.informacion-legal{
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.enlace-info-legal{
    color: rgb(18, 103, 186);
    text-decoration: none;
}

.enlace-info-legal:hover{
    text-decoration: underline;
}








/* 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
}

/* Volver a mandar numero */
.mandar_numero2_parrafo{
    width: 100%;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}

.mandar_numero2_parrafo a{
    color: rgb(18, 103, 186);
    text-decoration: none;
}

.mandar_numero2_parrafo a:hover{
    text-decoration: underline;
}

.mensaje-info {
    color: #28a745;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

.mensaje-info_error {
    color: #dc3545;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

@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*/
    }

    /* 1. FORMULARIO: cada campo en una línea */
     .contenedor-fomulario {
        width: 90%;                 /* Un poco más de margen lateral */
        padding: 20px 15px;         /* Reducimos el padding interior */
        margin: 20px auto;          /* Menos separación superior/inferior */
    }

    .titulo-formulario {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .label-bonito {
        font-size: 15px;            /* Reducimos ligeramente el texto */
        padding: 6px 12px;
    }

    .campo {
        padding: 10px 15px;         /* Inputs más compactos */
        font-size: 15px;
    }

    .boton {
        padding: 12px 15px;         /* Botón más pequeño */
        font-size: 17px;
    }

    .informacion-legal{
        font-size: 12px;
    }










    /* 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;
        }
    } 
*/

}
