/* =========================
CONFIGURACIÓN GENERAL
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Baskerville Old Face", Georgia, serif;
}

html{
scroll-behavior:smooth;
}

body{
background:#efbc97;
color:#333;
}

/* =========================
HEADER
========================= */

header{
background:#ffd5ba;
border-bottom:4px solid #7a0f2b;
padding:25px;
box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.top-header{
display:flex;
align-items:center;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

.logo{
width:90px;
height:auto;
transition:.3s;
}

.logo:hover{
transform:rotate(-5deg) scale(1.05);
}

.titulo{
font-size:50px;
color:#7a0f2b;
text-align:center;
text-shadow:2px 2px 4px rgba(0,0,0,.15);
}

/* =========================
MENÚ
========================= */

nav{
background:#e5092f;
border-top:3px solid black;
border-bottom:3px solid black;
box-shadow:0 3px 8px rgba(0,0,0,.2);
}

.menu-principal{
display:flex;
justify-content:center;
flex-wrap:wrap;
list-style:none;
}

.menu-principal li{
position:relative;
}

.menu-principal li a{
display:block;
padding:15px 25px;
color:white;
text-decoration:none;
font-weight:bold;
letter-spacing:1px;
transition:.3s;
}

.menu-principal li a:hover{
background:#b30025;
transform:scale(1.05);
}

/* =========================
SUBMENÚS
========================= */

.submenu{
display:none;
position:absolute;
top:100%;
left:0;
background:#e5092f;
min-width:230px;
z-index:999;
box-shadow:0 5px 10px rgba(0,0,0,.2);
}

.menu-principal li:hover .submenu{
display:block;
}

.submenu li{
list-style:none;
}

.submenu li a{
border-top:1px solid rgba(255,255,255,.3);
}

.submenu-interno{
display:none;
position:absolute;
left:100%;
top:0;
background:#e5092f;
min-width:230px;
box-shadow:0 5px 10px rgba(0,0,0,.2);
}

.submenu li:hover .submenu-interno{
display:block;
}

/* =========================
PORTADA
========================= */

.portada{
text-align:center;
padding:60px 30px;
background:#fff4ed;
border-radius:20px;
}

.portada h2{
font-size:45px;
color:#7a0f2b;
margin-bottom:15px;
}

.portada p{
font-size:22px;
}

/* =========================
CONTENIDO
========================= */

main{
width:90%;
max-width:1200px;
margin:auto;
padding:30px;
}

section{
background:white;
padding:35px;
margin-top:35px;
border-radius:20px;
box-shadow:0 5px 15px rgba(0,0,0,.15);
border-top:6px solid #c40028;
transition:.3s;
}

section:hover{
transform:translateY(-3px);
}

h1{
color:#7a0f2b;
margin-bottom:20px;
}

h2{
color:#c40028;
margin-top:15px;
margin-bottom:15px;
}

h3{
color:#7a0f2b;
}

p{
font-size:18px;
line-height:1.8;
}

/* =========================
TARJETAS NOSOTROS
========================= */

.integrantes{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:20px;
}

.card{
background:#fff4ed;
padding:20px;
border-radius:15px;
border-left:6px solid #c40028;
box-shadow:0 4px 10px rgba(0,0,0,.15);
transition:.3s;
}

.card:hover{
transform:translateY(-5px);
box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* =========================
IMÁGENES
========================= */

img{
max-width:100%;
height:auto;
border-radius:10px;
}

.receta-img{
display:block;
margin:auto;
margin-top:15px;
margin-bottom:15px;
width:350px;
max-width:100%;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,.3);
transition:.3s;
}

.receta-img:hover{
transform:scale(1.03);
}

/* =========================
CITAS
========================= */

blockquote{
background:#ffe1d1;
padding:20px;
border-left:6px solid #c40028;
margin:20px 0;
font-style:italic;
border-radius:10px;
}

/* =========================
LISTAS
========================= */

ul,
ol{
padding-left:25px;
line-height:1.8;
}



/* =========================
   GLOSARIO
========================= */

.glosario{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
margin-top:30px;
}

.glosario-item{
background:#fff4ed;
padding:20px;
border-radius:15px;
text-align:center;
box-shadow:0px 5px 12px rgba(0,0,0,0.2);
transition:0.3s;
}

.glosario-item:hover{
transform:translateY(-5px);
}

.glosario-item img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
margin-bottom:15px;
}

.glosario-item h3{
color:#7a0f2b;
margin-bottom:10px;
}

.glosario-item p{
font-size:16px;
line-height:1.5;
}

/* =========================
   BIBLIOGRAFÍA
========================= */

.glosario-item a{
display:inline-block;
margin-top:10px;
padding:10px 15px;
background:#e5092f;
color:white;
text-decoration:none;
border-radius:8px;
transition:0.3s;
}

.glosario-item a:hover{
background:#c40028;
}
/* =========================
FORMULARIO
========================= */

form{
background:white;
padding:25px;
border-radius:15px;
margin-top:30px;
box-shadow:0 5px 15px rgba(0,0,0,.15);
}

fieldset{
padding:15px;
margin-bottom:20px;
border:2px solid #c40028;
border-radius:10px;
}

legend{
font-weight:bold;
color:#7a0f2b;
padding:0 10px;
}

label{
font-weight:bold;
}

input,
textarea{
width:100%;
padding:10px;
margin-top:8px;
margin-bottom:10px;
border:1px solid #ccc;
border-radius:8px;
}

input:focus,
textarea:focus{
outline:none;
border:2px solid #c40028;
}

input[type="submit"],
input[type="reset"]{
width:auto;
padding:12px 25px;
background:#c40028;
color:white;
border:none;
cursor:pointer;
transition:.3s;
}

input[type="submit"]:hover,
input[type="reset"]:hover{
background:#7a0f2b;
transform:scale(1.05);
}

/* =========================
FOOTER
========================= */

footer{
margin-top:50px;
background:#7a0f2b;
color:white;
padding:30px;
text-align:center;
box-shadow:0 -3px 10px rgba(0,0,0,.2);
}

footer h2{
color:white;
margin-bottom:15px;
}

footer ul{
list-style:none;
margin-top:10px;
}

footer li{
margin:5px 0;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:768px){

.titulo{
font-size:35px;
}

.menu-principal{
flex-direction:column;
}

.submenu,
.submenu-interno{
position:static;
width:100%;
}

main{
width:95%;
}

.portada h2{
font-size:30px;
}

}
/* ================= FOOTER ================= */

footer{
margin-top:50px;
background:#c40028;
padding:30px;
color:white;
text-align:center;
border-top:5px solid #7a0f2b;
}

footer h2{
color:white;
margin-bottom:15px;
}

footer h3{
margin-top:20px;
margin-bottom:10px;
color:white;
}

.integrantes-footer{
list-style:none;
padding:0;
margin:10px 0;
}

.integrantes-footer li{
margin:5px 0;
}

footer a{
color:white;
font-weight:bold;
text-decoration:none;
}

footer a:hover{
text-decoration:underline;
}

.copyright{
margin-top:15px;
font-size:14px;
}

.foto-integrante{
width:120px;
height:120px;

object-fit:cover;

border-radius:50%;

display:block;

margin:0 auto 15px auto;

border:4px solid #c40028;
}

.card{
text-align:center;
}

.continente-card{
background:#fff4ed;
padding:20px;
margin-bottom:25px;
border-left:6px solid #c40028;
border-radius:12px;
box-shadow:0px 4px 8px rgba(0,0,0,0.2);
}

.continente-card ul{
margin-top:10px;
padding-left:20px;
}

.continente-card li{
margin-bottom:8px;
}

/* CONTINENTES */

.contenedor-continentes{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
margin-top:25px;
}

.continente-card{
background:#fff4ed;
padding:25px;
border-radius:15px;
border-left:8px solid #c40028;
box-shadow:0px 5px 12px rgba(0,0,0,0.2);
transition:0.3s;
}

.continente-card:hover{
transform:translateY(-5px);
}

.continente-card h2{
color:#7a0f2b;
margin-bottom:10px;
}

.continente-card ul{
margin-top:15px;
padding-left:20px;
}

.continente-card li{
margin-bottom:8px;
}

.continente-card a{
color:#c40028;
font-weight:bold;
text-decoration:none;
}

.continente-card a:hover{
text-decoration:underline;
}

/* BUSCADOR */

.buscador{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin:20px auto;
}


#buscar{

width:250px !important;
height:38px;

padding:8px 15px;

border-radius:20px;
border:2px solid #7a0f2b;

font-size:15px;

}


.buscador button{

height:38px;

padding:0 20px;

background:#e5092f;

color:white;

border:none;

border-radius:20px;

cursor:pointer;

}


.buscador button:hover{

background:#7a0f2b;

}



/* =========================
      BOTÓN ADMINISTRADOR
========================= */

.menu-principal li .admin-link{

    background:#7a0f2b !important;
    color:white !important;

    padding:15px 25px !important;

    display:block;

    text-decoration:none !important;

    font-weight:bold;

    letter-spacing:1px;

    border-radius:0;

    transition:.3s;

}


.menu-principal li .admin-link:hover{

    background:#b30025 !important;

    color:white !important;

    transform:scale(1.05);

}