/*======================================
EL SALVAJE OESTE
estilos.css
======================================*/

/*-------------------------
Variables
-------------------------*/

:root{

    --marron:#6b4423;
    --marronOscuro:#40240f;
    --arena:#e9d7a8;
    --crema:#f8f1dd;
    --rojo:#9d3f21;
    --blanco:#ffffff;
    --gris:#555555;

}

/*-------------------------
General
-------------------------*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    font-family:Arial, Helvetica, sans-serif;
    background:var(--crema);
    color:#222;
    line-height:1.6;

}

/*-------------------------
Cabecera
-------------------------*/

header{

    background:var(--marron);
    color:var(--blanco);

    padding:15px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    position:sticky;
    top:0;
    z-index:1000;

}

.logo img{

    width:55px;

}

header h1{

    font-size:1.4rem;
    text-align:center;
    flex:1;

}

/*-------------------------
Botón menú
-------------------------*/

#menuBoton{

    background:none;
    border:none;

    color:white;

    font-size:32px;

    cursor:pointer;

}

/*-------------------------
Menú
-------------------------*/

#menu{

    display:none;

    background:var(--marronOscuro);

}

#menu ul{

    list-style:none;

}

#menu li{

    border-bottom:1px solid rgba(255,255,255,.15);

}

#menu a{

    display:block;

    padding:15px;

    color:white;

    text-decoration:none;

    transition:.3s;

}

#menu a:hover{

    background:var(--rojo);

}

#menu.activo{

    display:block;

}

/*-------------------------
Hero
-------------------------*/

.hero{

    position:relative;

}

.hero img{

    width:100%;
    display:block;

}

.heroTexto{

    background:rgba(0,0,0,.55);

    color:white;

    padding:20px;

    position:absolute;

    left:0;
    right:0;
    bottom:0;

}

.heroTexto h2{

    margin-bottom:10px;

}

/*-------------------------
Botón
-------------------------*/

.boton{

    display:inline-block;

    margin-top:15px;

    padding:12px 22px;

    background:var(--rojo);

    color:white;

    text-decoration:none;

    border-radius:8px;

    transition:.3s;

}

.boton:hover{

    background:var(--marron);

}

/*-------------------------
Contenido
-------------------------*/

section{

    padding:20px;

}

section h2{

    color:var(--marron);

    margin-bottom:15px;

}

section p{

    margin-bottom:15px;

}

/*-------------------------
Tarjetas
-------------------------*/

.tarjetas{

    display:grid;

    grid-template-columns:1fr;

    gap:20px;

}

.tarjetas article{

    background:white;

    border-radius:10px;

    overflow:hidden;

    box-shadow:0 3px 10px rgba(0,0,0,.20);

    transition:.3s;

}

.tarjetas article:hover{

    transform:translateY(-5px);

}

.tarjetas img{

    width:100%;

    display:block;

}

.tarjetas h3{

    color:var(--marron);

    padding:15px 15px 0;

}

.tarjetas p{

    padding:15px;

}

/*-------------------------
Listas
-------------------------*/

ul{

    margin-left:20px;

}

li{

    margin-bottom:10px;

}

/*-------------------------
Formulario
-------------------------*/

form{

    display:flex;

    flex-direction:column;

    gap:15px;

}

input,
textarea{

    width:100%;

    padding:12px;

    border:1px solid #bbb;

    border-radius:8px;

    font-size:1rem;

}

textarea{

    min-height:180px;

    resize:vertical;

}

button{

    padding:14px;

    background:var(--rojo);

    color:white;

    border:none;

    border-radius:8px;

    cursor:pointer;

    font-size:1rem;

}

button:hover{

    background:var(--marron);

}

/*-------------------------
Footer
-------------------------*/

footer{

    background:var(--marronOscuro);

    color:white;

    text-align:center;

    padding:20px;

    margin-top:40px;

}

footer p{

    margin:5px;

}

/*-------------------------
Tablet
-------------------------*/

@media(min-width:768px){

    .tarjetas{

        grid-template-columns:repeat(2,1fr);

    }

}

/*-------------------------
Ordenador
-------------------------*/

@media(min-width:1024px){

    #menuBoton{

        display:none;

    }

    #menu{

        display:block !important;

        background:var(--marron);

    }

    #menu ul{

        display:flex;

        justify-content:center;

    }

    #menu li{

        border:none;

    }

    #menu a{

        padding:18px 30px;

    }

    .heroTexto{

        width:45%;

        left:40px;

        bottom:40px;

        border-radius:10px;

    }

    .tarjetas{

        grid-template-columns:repeat(3,1fr);

    }

}


/*======================================
GALERÍA FOTOGRÁFICA
======================================*/

.galeria{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    padding:20px;

}

.galeria a{

    display:block;

    overflow:hidden;

    border-radius:12px;

    background:#ffffff;

    box-shadow:0 4px 12px rgba(0,0,0,.20);

    transition:.30s;

}

.galeria a:hover{

    transform:translateY(-6px);

    box-shadow:0 8px 18px rgba(0,0,0,.30);

}

.galeria img{

    display:block;

    width:100%;

    height:220px;

    object-fit:cover;

    transition:transform .40s;

}

.galeria a:hover img{

    transform:scale(1.10);

}

/*======================================
ENLACES DE LAS TARJETAS
======================================*/

.tarjetas article a{

    color:inherit;

    text-decoration:none;

    display:block;

}

/*======================================
SCROLL SUAVE
======================================*/

html{

    scroll-behavior:smooth;

}

/*======================================
IMÁGENES RESPONSIVE
======================================*/

img{

    max-width:100%;

    height:auto;

}

/*======================================
PEQUEÑAS ANIMACIONES
======================================*/

h1,
h2,
h3{

    transition:.30s;

}

h2:hover{

    color:var(--rojo);

}

/*======================================
MÓVILES
======================================*/

@media(max-width:480px){

    .heroTexto{

        padding:15px;

    }

    .heroTexto h2{

        font-size:1.4rem;

    }

    .galeria{

        grid-template-columns:1fr;

    }

}

/*======================================
TABLETS
======================================*/

@media(min-width:768px){

    .galeria{

        grid-template-columns:repeat(2,1fr);

    }

}

/*======================================
ORDENADORES
======================================*/

@media(min-width:1200px){

    .galeria{

        grid-template-columns:repeat(4,1fr);

    }

}

/*======================================
LIGHTBOX
======================================*/

#lightbox{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.92);

    display:flex;

    justify-content:center;
    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.30s;

    z-index:9999;

}

#lightbox.mostrar{

    opacity:1;

    visibility:visible;

}

#imagenLightbox{

    width:90%;

    max-width:1100px;

    max-height:90vh;

    border-radius:10px;

    box-shadow:0 0 25px rgba(255,255,255,.25);

    animation:zoom .25s ease;

}

#cerrarLightbox{

    position:absolute;

    top:20px;

    right:30px;

    color:white;

    font-size:48px;

    cursor:pointer;

    user-select:none;

}

@keyframes zoom{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

@media(max-width:768px){

    #cerrarLightbox{

        top:15px;

        right:20px;

        font-size:40px;

    }

}

.mapaInicio{

    width:95%;
    margin:40px auto;
    text-align:center;

}

.mapaInicio img{

    width:100%;
    max-width:900px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.4);
    transition:.3s;

}

.mapaInicio img:hover{

    transform:scale(1.02);

}

.mapaInicio p{

    margin-top:15px;

}