/* =======================
   General
======================= */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    margin: 0 0 15px 0;
}

/* =======================
   Header
======================= */
header {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .caja {
    /* width: 940px; */
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
header h1 img {
    height: 150px; /* escritorio */
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header h1 img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* Navegación */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-transform: uppercase;
    color: #fff;
    font-weight: bold; /* negrita */
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #c78c19;
    text-decoration: underline;
}

/* =======================
   Banner
======================= */
.banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* =======================
   Main
======================= */
main {
    width: 940px;
    max-width: 95%;
    margin: 0 auto;
}

/* =======================
   Home
======================= */
.principal {
    padding: 3em 0;
    background: #FEFEFE;
    margin: 0 auto;
    text-align: center;
}

.titulo-principal {
    font-size: 2em;
    margin-bottom: 20px;
}

.principal p {
    margin: 0 0 1em;
}

#mision {
    font-size: 20px;
    color: #d32f2f;
    margin: 20px 0;
}

.utensilios {
    width: 120px;
    margin: 0 auto 20px auto;
    display: block;
}

/* Mapa */
.mapa {
    background-color: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 20px;
    margin: 40px 0;
}

.mapa iframe {
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    height: 300px;
}

/* Diferenciales */
.diferenciales {
    background: #fff;
    text-align: center;
    padding: 40px 20px;
}

.contenido-diferenciales {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

ul.lista-diferenciales {
    list-style: square;
    padding-left: 20px;
    text-align: left;
    flex: 1 1 250px;
}

.items {
    font-style: italic;
    margin-bottom: 10px;
}

.imagen-diferenciales {
    flex: 1 1 300px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Video */
.video iframe {
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
}

/* =======================
   Productos
======================= */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.productos li {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.productos li:hover {
    border-color: #c78c19;
}

.productos h2 {
    font-size: 30px;
}

.productos li:hover h2 {
    font-size: 33px;
}

.producto-descripcion {
    font-size: 18px;
}

.producto-precio {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

/* =======================
   Formulario Contacto
======================= */
form {
    margin: 40px 0;
}

form label, form legend {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.input-padron {
    display: block;
    margin-bottom: 20px;
    padding: 10px 25px;
    width: 50%;
}

.checkbox {
    margin: 20px 0;
}

.enviar {
    width: 40%;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: orange;
    border: none;
    border-radius: 5px;
    transition: 1s all;
    cursor: pointer;
}

.enviar:hover {
    background: darkorange;
    transform: scale(1.2);
}

/* =======================
   Tabla
======================= */
table {
    margin: 40px auto;
    border-collapse: collapse;
}

thead {
    background: #555555;
    color: white;
    font-weight: bold;
}

td, th {
    border: 1px solid #000000;
    padding: 8px 15px;
}

/* =======================
   Footer
======================= */
footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    width: 100%;       /* asegura que ocupe todo el ancho */
    box-sizing: border-box;
}

/* Para imagen y texto */
footer img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

footer p {
    font-size: 0.9em;
    margin: 0;
}

/* =======================
   Imágenes generales
======================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-toggle {
    display: none; /* por defecto no se ve en escritorio */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}

/* =======================
   Responsivo
======================= */
@media screen and (max-width: 900px) {
    header .caja {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        display: none; /* ocultamos menú por defecto */
        width: 100%;
        text-align: center;
    }

    nav ul.show {
        display: flex; /* se activa al hacer click */
    }

    header h1 img {
        height: 120px;
    }

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

    ul.lista-diferenciales {
        width: 100%;
        text-align: center;
    }

    .imagen-diferenciales {
        width: 80%;
    }

    .productos li {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .input-padron, .enviar {
        width: 80%;
    }

    /* botón hamburguesa */
     .menu-toggle {
        display: flex; /* ahora se ve en pantallas <900px */
    }
} 


@media screen and (max-width: 600px) {


    nav ul li a {
        font-size: 18px;
    }

    .productos li {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
