* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #000000;
    color: #d6a553;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
}

header h1 {
    font-size: 1.8em;
    color: #d6a553;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #d6a553;
    text-decoration: none;
    padding: 8px 12px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #1a1a1a;
    border-radius: 4px;
}

.banner-superior {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-superior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.bienvenida {
    text-align: center;
    margin-bottom: 40px;
}

.bienvenida h2 {
    color: #000000;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.bienvenida p {
    font-size: 1.1em;
    color: #555;
}

.productos-destacados h2 {
    text-align: center;
    color: #000000;
    font-size: 2em;
    margin-bottom: 30px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.producto-card {
    background-color: white;
    border: 2px solid #d6a553;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(214, 165, 83, 0.3);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.producto-card h3 {
    color: #000000;
    margin-bottom: 10px;
}

.precio {
    font-size: 1.4em;
    color: #d6a553;
    font-weight: bold;
    margin-bottom: 15px;
}

.producto-card button {
    background-color: #d6a553;
    color: #000000;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}

.producto-card button:hover {
    background-color: #c49443;
}

.categorias {
    margin-top: 50px;
}

.categorias h2 {
    text-align: center;
    color: #000000;
    font-size: 2em;
    margin-bottom: 30px;
}

.categorias-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.categoria {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.categoria:hover {
    transform: scale(1.05);
}

.categoria img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.categoria h3 {
    color: #000000;
}

.banner-inferior {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 50px;
}

.banner-inferior img {
    width: 100%;
    height: 100%;
    object-fit: content;
}

footer {
    background-color: #000000;
    color: #d6a553;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-seccion h3 {
    margin-bottom: 15px;
    color: #d6a553;
}

.footer-seccion p {
    margin-bottom: 8px;
    color: #d6a553;
}

.texto-abajo {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #d6a553;
    color: #d6a553;
}

.contenedor-centrado {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border: 2px solid #d6a553;
}

.contenedor-centrado h2 {
    color: #000000;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.contenedor-centrado h3 {
    color: #d6a553;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.contenedor-centrado p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    color: #333;
}

.form-contenedor {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border: 2px solid #d6a553;
}

.form-contenedor h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
}

.form-campo {
    margin-bottom: 20px;
}

.form-campo label {
    display: block;
    margin-bottom: 5px;
    color: #000000;
    font-weight: bold;
}

.form-campo input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6a553;
    border-radius: 5px;
    font-size: 1em;
}

.form-campo input:focus {
    outline: none;
    border-color: #c49443;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #d6a553;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #c49443;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }


    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .producto-card img {
        height: 180px;
    }

    .banner-superior,
    .banner-inferior {
        height: auto;
    }

    .banner-superior img,
    .banner-inferior img {
        height: auto;
        max-height: 250px;
    }

    main h2 {
        font-size: 1.8em;
    }

    .producto-card h3 {
        font-size: 1.1em;
    }

    .producto-card p {
        font-size: 0.95em;
    }


    .footer-contenido {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-seccion h3 {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .producto-card img {
        height: 150px;
    }

    .btn-submit,
    .producto-card button {
        width: 100%;
    }
}
