*{
    /* 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);
}

#queEs,
#comoFunciona {
    scroll-margin-top: 180px; /* altura de mi header */
}

/* 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);
}

/*COLUMNAS DE INICIO*/
/* Contenedor flexible para las dos columnas */
.contenedor-columnas {
    margin-top: 4%;
    margin-bottom: 2%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*gap: 20px;  Espacio entre columnas*/
}

.columna-texto{
    width: 50%;
    display: flex;
    align-items: center;
}

.titulo{
    font-weight: 700; /*Grosor del texto*/
    font-size: 72px; /*Tamaño del texto*/
}

.columna-imagen{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen{
    padding: 10px;
    width: 98%;
    /* width: 700px; */
    border-radius: 35px;
}

/*FORMULARIO*/
.contendor-formualrio-fondo{
    background-color: white;
    padding: 15px;
    position: sticky;
    top: 80px;
}

.contenedor-fomulario{
    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{
    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{
    border-radius: 35px 20px 20px 35px;  /* Redondeado izquierdo (coincide con el contenedor) */
    border: none;
    padding-left: 5%;
    width: 98%;
    height: 90%;
}

.categoria option { /*Aplicar estilo a las opciones de un select (desplegable)*/
  background-color: white;
  color: black;
}

.provincia, .clave{
    border: none;
    border-radius: 20px;
    padding-left: 5%;
    width: 92%;
    height: 84%;
}

.categoria:hover, .provincia:hover, .clave:hover{
    background-color: rgb(217, 237, 255);
}

.categoria:focus, .provincia:focus, .clave:focus{
    background-color: rgb(217, 237, 255);
    outline: none;
}

.boton{
    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:hover {
    background-color: rgb(12, 70, 130);
}

.campo_error_busqueda {
    background-color: #b8d9ff
}





/* Subtítulos y párrafos genéricos */
.subtitulo {
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2; /*Espacio entre lineas*/
}

.parrafo {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Espaciado entre secciones */
.contenedor-ventajas, .contenedor-pasos, .contenedor-accion {
    margin-top: 80px;
    margin-bottom: 40px;
}

/*¿QUE ES HELPME?*/
.contenedor-explicacion{
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    background-color: #e6f2ff;
    border-radius: 35px;
    padding: 30px;
    align-items: center;
}

/* TRES VENTAJAS */
.contenedor-ventajas {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    /* flex-wrap: wrap; */
}

.ventaja{
    width: 27%;
    background-color: #f9f9f9;
    border-radius: 25px;
    padding: 2%;
    text-align: center;
    box-shadow: 8px 15px 15px rgba(0,0,0,0.05);
}

.icono-ventaja {
    width: 84px;
}

.titulo-ventaja {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}

.texto-ventaja {
    font-weight: 400;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* TRES PASOS */
.subtitulo_tres_pasos{
    text-align: center; 
    width: 100%;
}

.contenedor-pasos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenedor-columnas-pasos {
    margin-bottom: 1%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*gap: 20px;  Espacio entre columnas*/
}

.columna-texto-pasos{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.imagen-pasos{
    padding: 10px;
    width: 90%;
    /* width: 700px; */
    border-radius: 35px;
}

.contenedor-numero{
    width: 60px;
    height: 60px;
    background-color: rgb(18, 103, 186);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.numero-paso {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.subtitulo-pequeño {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

.parrafo-pequeño {
    font-weight: 400;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* LLAMADA A LA ACCIÓN */
.contenedor-accion {
    background-color: #e6f2ff;
    border-radius: 35px;
    padding: 30px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boton-accion {
    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: white;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.boton-accion:hover {
    background-color: rgb(12, 70, 130);
}

/* 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*/
    }

    /* 1. FORMULARIO: cada campo en una línea */
    .contendor-formualrio-fondo {
        top: auto; /* Para que no sea sticky en móovil*/
        padding: 10px;
        z-index: 0;
    }

    .contenedor-fomulario {
        height: auto; /* Elimina la altura fija */
        border-radius: 25px;
    }

    .formulario {
        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 {
        border-radius: 20px; /* Redondeado uniforme */
        width: 95%;
        height: 50px;
        padding-left: 3%;
    }

    .provincia, .clave {
        width: 90%;
        height: 50px;
        border-radius: 20px;
    }

    .linea_vertical {
        display: none; /* Ocultamos las líneas divisorias */
    }

    .boton {
        width: 100%;
        border-radius: 0 0 22.2px 22.2px; /* Redondeado solo abajo */
        height: 50px;
        font-size: 18px;
    }

    /* 2. TARJETAS DE VENTAJAS: en columna */
    .contenedor-ventajas {
        flex-direction: column; /* Apila las tarjetas */
        align-items: center;
        gap: 20px;
    }

    .ventaja {
        width: 80%; /* Ocupan casi todo el ancho */
        padding: 20px;
        margin-bottom: 20px;
    }

    .icono-ventaja {
        width: 70px;
    }

    .titulo-ventaja {
        font-size: 22px;
    }

    /* 3. SECCIÓN TRES PASOS: imagen primero, luego texto */
    .contenedor-columnas-pasos {
        flex-direction: column; /* Apilamos los elementos */
        margin-bottom: 40px;
    }

    /* Forzamos que en todos los pasos la imagen esté arriba y el texto abajo */
    .contenedor-columnas-pasos .columna-imagen {
        width: 100%;
        order: 1; /* Imagen primero */
    }

    .contenedor-columnas-pasos .columna-texto-pasos {
        width: 100%;
        order: 2; /* Texto después */
        text-align: center; /* Centramos el texto*/
    }

    /* Ajustamos el contenedor del número para que no se desplace */
    .contenedor-numero {
        margin: 0 auto 15px;  /*Centrado y margen inferior */
    }

    .imagen-pasos {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    /* 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;
        }
    } 
*/

}