* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Lucida Sans', Geneva, Verdana, sans-serif; */
    font-family: MiFuente-futura;
}


@font-face {
    font-family: 'MiFuente-futura'; /* Nombre personalizado para tu fuente */
    src: url('../fonts/FuturaStdMedium.otf') format('truetype'); /* Ruta relativa a tu archivo de fuente */
    font-weight: normal; /* Opcional: define el peso (normal, bold, etc.) */
    font-style: normal;  /* Opcional: define el estilo (normal, italic, etc.) */
}



/* ------------------------------NAV */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 3px solid rgb(9,97,136);
}

nav .div-logo {
    width: 33%;
}

nav img {
    width: 90px;
}




nav .central {
    display: flex;
    width: 34%;
    justify-content: center;
    /* align-items: center; */
}

.central a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(0, 0, 0);
    font-size: 1.2rem;
    border: 3px solid rgb(9,97,136);   /*   no se cuanto grosor poner aqui :((((  */
    padding: 10px 20px;
    border-radius: 8px;              /*  tampoco se cuanta redondez poner :((((((((((((   */
    text-decoration: none;
    transition: transform 0.2s ease; 
}

.central a:hover {
    transform: scale(1.1, 1.1);
    transition: transform 0.2s ease;
}

.central svg {
    display: block;
    width: 20px;
    height: 20px;
}


nav .right {
    display: flex;
    gap: 20px;
    width: 33%;
    justify-content: right;
    align-items: center;
}

nav .right a {
    text-decoration: none;
    color: rgb(9,97,136);
}

nav select {
    width: 15%;
    height: 40px;
    border-radius: 6px;
    border: 2px solid;
    color: rgb(9,97,136);
    font-size: 16px;
    text-align: center;
}

.hamburguesa {
    display: none;
}






/* ----------------------------------------------------------------------------------- */
/* pagina de landing */

.imagen-fondo-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.imagen-fondo-landing img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.texto-sobre-imagen-landing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.texto-sobre-imagen-landing h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.texto-sobre-imagen-landing h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.texto-sobre-imagen-landing a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.texto-sobre-imagen-landing a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}




@media (max-width: 768px) {
    /* Estilos para nav */
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
        height: 10%;
        
    }

    nav .div-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    nav img {
        width: 150px;
    }

    nav .central {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .central a {
        font-size: 1rem;
        padding: 8px 15px;
        gap: 5px;
    }

    nav .right {
        display: none;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        transition: max-height 0.3s ease-out; /* Animación suave */

    }

    nav select {
        width: 80%;
        font-size: 14px;
        height: 35px;
        margin-bottom: 10px;
    }

    nav .right a {
        font-size: 0.9rem;
    }

     .hamburguesa {
        display: block;
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

     .hamburguesa svg {
        width: 30px;
        height: 30px;
        fill: #000;
    }

    .imagen-fondo-landing {
        height: 70vh;
    }

    .texto-sobre-imagen-landing h2 {
        font-size: 2rem;
    }

    .texto-sobre-imagen-landing h3 {
        font-size: 1.5rem;
    }

    .texto-sobre-imagen-landing a {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

















/* -------------------------------------------------------------- */
/* contacto */



.imagen-fondo-contacto {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

.imagen-fondo-contacto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.texto-sobre-imagen-contacto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.texto-sobre-imagen-contacto h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}


/* ----------------------------FORM */


.div-formulario-contacto {
    display: flex;
    justify-content: center;
}

.div-formulario-contacto form * {
    margin: 5px;
}

.div-formulario-contacto form {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 20px; 
}

.div-formulario-contacto .input_nombre, .input_email, .input_mensaje {
    display: flex;
    flex-direction: column;
    padding: 10px; 
    font-size: 1rem; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    width: 100%;
}


.div-formulario-contacto input, .div-formulario-contacto textarea {
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100%;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
}

.div-formulario-contacto input:focus {
    border-color: rgb(9, 97, 136); 
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5); 
    outline: none;
}
.div-formulario-contacto textarea:focus {
    border-color: rgb(9, 97, 136); 
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5);
    outline: none; 
}



.div-formulario-contacto .boton_form {
    width: 20%;
    background-color: rgb(9, 97, 136);
    color: white; 
    font-size: 1.2rem; 
    padding: 10px; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    margin-left: auto;
    display: block;
}

.div-formulario-contacto .boton_form:hover {
    background-color: rgb(7, 80, 107);
}









/* ---------------------------------------------------------- */
/* login */




.imagen-fondo-login {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.imagen-fondo-login img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.texto-sobre-imagen-login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}


.texto-sobre-imagen-login h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}


/* ----------------------------FORM */


.div-formulario-login {
    display: flex;
    justify-content: center;
    /* border: 1px solid black; */
    margin: 10px;
}

.div-formulario-login form * {
    margin: 5px;
}

.div-formulario-login form {
    display: flex;
    flex-direction: column;
    width: 30%;
    padding: 20px; 
    border: 3px solid rgb(9, 97, 136);
    border-radius: 25px;
}

/* .div-formulario-login > .input_usuario, .input_contraseña {
    display: flex;
    flex-direction: column;
    padding: 10px; 
    font-size: 1rem; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    width: 100%;
} */


.div-formulario-login input, 
.div-formulario-login textarea {
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100%;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;

}

.div-formulario-login input:focus {
    border-color: rgb(9, 97, 136); 
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5); 
    outline: none;
}
.div-formulario-login textarea:focus {
    border-color: rgb(9, 97, 136); 
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5);
    outline: none; 
}



.div-formulario-login .boton_form {
    width: 20%;
    background-color: rgb(9, 97, 136);
    color: white; 
    font-size: 1.2rem; 
    padding: 10px; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    margin-left: auto;
    display: block;
}

.div-formulario .boton_form:hover {
    background-color: rgb(7, 80, 107);
}

@media (max-width: 768px) {
    .imagen-fondo-login {
        height: 30vh; 
    }

    .texto-sobre-imagen-login h2 {
        font-size: 2rem; 
        margin-bottom: 5px;
    }

    .div-formulario-login form {
        width: 90%; 
        padding: 15px; 
        border-width: 2px; 
    }

    .div-formulario-login input, 
    .div-formulario-login textarea {
        font-size: 1rem; 
        padding: 10px; 
    }

    .div-formulario-login .boton_form {
        width: 50%; 
        font-size: 1rem; 
        padding: 8px; 
    }
}

@media (max-width: 768px) {
    .imagen-fondo-contacto {
        height: 40vh;
    }

    .texto-sobre-imagen-contacto h2 {
        font-size: 2rem;
    }

    .div-formulario-contacto form {
        width: 70%;
    }

    .div-formulario-contacto .boton_form {
        width: 30%;
        font-size: 1rem;
    }
}




/* ------------------------------------------------------------------------------- */
/* lista de comercios */

.h1-comercio {
    text-align: center;
    margin: 20px 0px 20px 0px;
}

.contenedor-comercio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* margin: 20px 20px 0px 20px; */
    margin-bottom: 10px;
}

.contenedor-comercio a {
    margin: 10px 10px 10px 10px;
    width: 22%;
    height: 40vh;
    border: 2px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-image: url(https://elasombrario.publico.es/wp-content/uploads/sites/1/2024/03/ciudadjusta-comercio-justo-desarrollo-sostenible.jpeg); */
    /* background-size: cover; */
    text-decoration: none;
    color: rgb(11, 16, 29);
}

.contenedor-comercio a img {
    width: 90%;
}


.contenedor-comercio a:hover {
    transform: scale(1.02, 1.02);
    transition: 0.2s ease;
    color: white;
    background-color: rgb(144, 171, 186);
}


@media (max-width: 768px) {
    .contenedor-comercio {
        justify-content: center;
    }

    .contenedor-comercio a {
        width: 40%;
        height: 35vh;
    }

    .contenedor-comercio a img {
        width: 70%;
    }
}





------------------------------------------------------------------------ */
/* lista de asociaciones */

.h1-comercio {
    text-align: center;
    margin: 20px 0px 20px 0px;
}

.contenedor-asociacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* margin: 20px 20px 0px 20px; */
    margin-bottom: 10px;

}

.contenedor-asociacion a {
    margin: 10px 10px 10px 10px;
    width: 22%;
    height: 40vh;
    border: 2px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-image: url(https://elasombrario.publico.es/wp-content/uploads/sites/1/2024/03/ciudadjusta-comercio-justo-desarrollo-sostenible.jpeg); */
    /* background-size: cover; */
    text-decoration: none;
    color: rgb(11, 16, 29);
}

.contenedor-asociacion a img {
    width: 90%;
}


.contenedor-asociacion a:hover {
    transform: scale(1.02, 1.02);
    transition: 0.2s ease;
    color: white;
    background-color: rgb(0, 98, 105);
}

@media (max-width: 768px) {
    .contenedor-asociacion {
        justify-content: center;
    }

    .contenedor-asociacion a {
        width: 40%;
        height: 35vh;
    }

    .contenedor-asociacion a img {
        width: 70%;
    }
}









/* --------------------------------------------------------- */
/* buscador */

.contenedor-buscador {
    height: 38vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background-color: #57585a; */
}

.contenedor-buscador h3 {
    color: white;
}


.buscador {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.buscador h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.buscador input {
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 50%;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.buscador input:focus {
    border-color: rgb(9, 97, 136); 
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5); 
    outline: none;
}

.filtro {
    display: flex;
    justify-content: center;
}

.filtro div {
    margin: 10px;
    display: flex;
    align-items: center;

}
.filtro * {
    margin: 5px;
}
.filtro select {
    padding: 5px;
    border-radius: 6px;
    border: 2px solid;
    color: rgb(9,97,136);
    font-size: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .contenedor-buscador {
        height: auto; 
        padding: 10px; 
    }


    .contenedor-buscador h3, 
    .buscador h3 {
        font-size: 1.2rem; 
        text-align: center; 
        margin-bottom: 15px; 
    }


    .buscador input {
        width: 80%; 
        font-size: 1rem; 
        padding: 10px; 
    }


    .filtro {
        flex-direction: column; 
        align-items: center;
    }


    .filtro div {
        margin: 10px 0; 
        flex-direction: column; 
    }


    .filtro select {
        width: 100%;
        font-size: 1rem;
        padding: 8px; 
    }
}






/* ------------------------------------------------------------ */
/* detalles */


.contenedor-padre {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-detalle {
    margin: 1% 0px 1% 0px;
    background-color: #84a5b4;
    width: 90%;
    border-radius: 40px;
    display: flex;
    /* justify-content: space-between; */

}

.imagen-detalle {
    display: flex;
    /* width: 40%; */
    justify-content: start;
    /* border: 2px solid black; */
    padding: 30px;
    height: auto;
    width: 45%;
    
}

.detalles {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    width: 55%;
    
}

.detalles * {
    margin: 10px 25px;

}

.detalles h2 {
    font-size: 4vh;
}

.detalles h3 {
    font-size: 3vh;
}

.detalles p {
    font-size: 2vh;
}


.imagen-detalle img {
    width: 100%;
    border-radius: 40px;

}

.div-botones a {
    text-decoration: none;
    color: white;
}

.div-botones-padre {
    height: 12vh;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
}



.div-botones button {
    /* background-color: #096188; */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .dre {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contenedor-detalle {
        margin: 2% 0;
        background-color: #84a5b4;
        width: 90%;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
    }

    .imagen-detalle {
        display: flex;
        justify-content: center;
        padding: 10px;
        width: 100%;
        height: auto;
    }

    .detalles {
        display: flex;
        justify-content: center;
        align-items: start;
        flex-direction: column;
        width: 100%;
        padding: 10px;
    }

    .detalles * {
        margin: 8px 20px;
    }

    .detalles h2 {
        font-size: 3rem;
    }

    .detalles h3 {
        font-size: 2.5rem;
    }

    .detalles p {
        font-size: 1.5rem;
    }

    .imagen-detalle img {
        width: 100%;
        border-radius: 20px;
    }

    .div-botones-padre {
        height: auto;
        margin: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .div-botones button {
        color: #fff;
        border: none;
        padding: 8px 16px;
        font-size: 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        align-self: center;
    }


}


    







/* --------------------------------------------------------------------------- */
/* formulario creacion/modificacion */



.div-form-padre h1 {
    /* font-size: 2rem; */
    margin-bottom: 20px;
    text-align: center;
}

.div-form-padre {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 20px;
}

.div-form {
    background-color: #fff;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.div-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    font-size: 2vh;
}

.div-input label {
    margin-bottom: 5px;
    font-weight: 500;
}

.div-input input,
.div-input textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.div-input input:focus,
.div-input textarea:focus {
    border-color: #096188;
    box-shadow: 0 0 5px rgba(9, 97, 136, 0.5);
    outline: none;
}

textarea {
    resize: none;
}

.boton-enviar {
    background-color: #096188;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

.boton-enviar:hover {
    background-color: #074c68;
}










/* ---------------------------------------------------------------------- */
/* listas admin :p */

.h1-lista-titulo{
    margin:30px 0px 30px 60px;
}

.todomenostitulo-padre{
    margin:20px 30px;
}

.buscar{
    width: 50%;
    justify-content: right;
    display: flex;
    /* margin-right: 30px; */
    align-items: center;

}

.contenedor-boton-buscar{
    display: flex;
    margin: 15px 30px;
}

.boton-nuevo{
    width: 50%;
    justify-content: left;
}

.boton-nuevo button{
    background-color: #006087;
    border-radius: 5px;
    padding: 3px;
}

.boton-nuevo button a{
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
}



.textbox-buscar{
    border-radius: 5px;
    padding: 2px;
}

.elementos-padre{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:0px 30px;
}

.elementos{
    display: flex;
    border:1px solid black;
    width: 100%;
}

.elementos div{
    border: 0.1px solid #919191;
    width: 20%;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.elementos div a{
    text-decoration: none;
    font-size: 12px;
    border-radius: 5px;
    padding: 3px;
    width: 40%;
    text-align: center;
    margin: 2px;
}

.editar{
    background-color: #5ae17c;
    color: white;
}

.eliminar{
    background-color: #df4a4a;
    color: white;
}

.editar:hover {
    background-color: #51c76f;
}
.eliminar:hover {
    background-color: rgb(146, 29, 29);
}




.elementos-padre .elementos:nth-child(even) {
    background-color: #BCBDC0;
}

.elementos-padre .elementos:nth-child(odd) {
    background-color: #ffffff;
}


@media (max-width: 768px) {
    .h1-lista-titulo {
        margin: 10px 20px;
        font-size: 0.9rem;
    }

    .todomenostitulo-padre {
        margin: 10px;
    }

    .buscar {
        width: 50%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .contenedor-boton-buscar {
        margin: 5px 10px;
        justify-content: space-between;
    }

    .boton-nuevo {
        display: flex;
        justify-content: left;
        width: 50%;
        text-align: center;
    }

    .boton-nuevo button {
        padding: 6px;
        font-size: 0.9rem;
    }

    .boton-nuevo button a {
        font-size: 0.9rem;
    }

    .textbox-buscar {
        width: 100%;
        font-size: 0.9rem;
    }

    .elementos-padre {
        margin: 0 10px;
    }

    .elementos {
        width: 100%;
        table-layout: fixed;
    }

    .elementos div {
        width: 30%;
        padding: 10px;
        font-size: 0.8rem;
        text-align: center;
    }

    .elementos div a {
        font-size: 0.6rem;
        width: 50%;
        padding: 5px;
    }

    .editar {
        background-color: #5ae17c;
    }

    .eliminar {
        background-color: #df4a4a;
    }

    .editar:hover {
        background-color: #51c76f;
    }

    .eliminar:hover {
        background-color: rgb(146, 29, 29);
    }

    .elementos-padre .elementos:nth-child(even) {
        background-color: #BCBDC0;
    }

    .elementos-padre .elementos:nth-child(odd) {
        background-color: #ffffff;
    }
}



/* --------------------------------------------------------------- */
/* confirmar eliminacion */



.div_eliminacion_padre {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    background-color: #f4f4f4; 
    margin: 0;
}

.div_eliminacion {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    padding: 20px 30px;
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.div_eliminacion h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #010417;
}

.texto_eliminacion p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #010417;
}

































/* ------------------------------------------------------------ */
/* footer */



footer a, footer h3 {
    text-decoration: none;
    color: rgb(192, 134, 23);
}
.footer-container {
    padding: 10px;
    display: flex;
    justify-content: center;
    background-color: rgb(11, 16, 29);
    padding: 20px 10px 20px 10px;
    color: rgb(144, 171, 186);
}

footer li {
    list-style: none;
}

.footer-section1 {
    display: flex;
    flex-direction: column;
    width: 40%;
}
.footer-section2 {
    display: flex;
    flex-direction: column;
    width: 25%;
}
.footer-section3 {
    display: flex;
    flex-direction: column;
    width: 25%;
}


.footer-bottom {
    background-color: rgb(11, 16, 29);
    display: flex;
    justify-content: center;
    color: rgb(144, 171, 186);
    padding: 10px 0px 10px 0px;
    border-top: 2px solid rgb(192, 134, 23);
}



@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    .footer-section1, 
    .footer-section2, 
    .footer-section3 {
        width: 100%;
        margin-bottom: 20px;
        text-align: center; 
    }


    footer a {
        font-size: 0.9rem;
    }

    
    footer h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }


    footer li {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }


    .footer-bottom {
        flex-direction: column;
        padding: 15px 0;
        font-size: 0.8rem;
    }
}



















