/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #f5efe6;
    color: #3e2f25;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================
   ENCABEZADO
========================= */

header {
    width: 100%;
    background-color: #3e2f25;
    color: white;

    padding: 20px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 4px solid #c49a6c;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e8c28c;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #e8c28c;
}


/* =========================
   PRESENTACIÓN PRINCIPAL
========================= */

.hero {
    width: 100%;
    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;

    background:
        linear-gradient(
            rgba(62, 47, 37, 0.75),
            rgba(92, 66, 48, 0.75)
        ),
        linear-gradient(
            135deg,
            #8b6f52,
            #c49a6c
        );

    color: white;
}

.hero-contenido {
    width: 100%;
    max-width: 750px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f5eee5;
}


/* =========================
   BOTONES
========================= */

.boton {
    display: inline-block;

    background-color: #a66a3f;

    color: white;

    padding: 12px 25px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

.boton:hover {
    background-color: #7d4f2f;

    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(62, 47, 37, 0.3);
}


/* =========================
   PRODUCTOS
========================= */

.productos {
    width: 100%;

    padding: 70px 8%;

    text-align: center;
}

.productos h1,
.productos h2 {
    color: #3e2f25;
    margin-bottom: 25px;
}

.productos h1 {
    font-size: 40px;
}

.productos h2 {
    font-size: 35px;
}

.productos > p {
    color: #6b5848;
}


/* =========================
   TARJETAS
========================= */

.tarjetas {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;
}

.producto {
    width: 100%;
    min-width: 0;

    background-color: #fffaf4;

    padding: 25px;

    border-radius: 15px;

    border: 1px solid #dfc8ad;

    box-shadow:
        0 5px 20px rgba(62, 47, 37, 0.12);

    transition: 0.3s;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.producto:hover {
    transform: translateY(-6px);

    border-color: #b47a4f;

    box-shadow:
        0 10px 30px rgba(62, 47, 37, 0.2);
}


/* =========================
   CONTENEDOR DE IMAGEN
========================= */

.imagen-contenedor {
    width: 100%;

    height: 250px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 12px;

    margin-bottom: 20px;

    border: 1px solid #d6b998;

    background-color: #eee;
}


/* =========================
   IMAGEN
========================= */

.producto-imagen {
    width: 100% !important;

    height: 250px !important;

    max-width: 100% !important;

    max-height: 250px !important;

    min-width: 0;

    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 12px;
}


/* =========================
   ICONOS
========================= */

.producto-icono {
    font-size: 60px;

    margin-bottom: 15px;
}

.producto h3 {
    font-size: 24px;

    margin-bottom: 10px;

    color: #4a3425;
}

.producto p {
    margin-bottom: 20px;

    color: #6b5848;
}


/* =========================
   FORMULARIO
========================= */

form {
    width: 100%;
    max-width: 700px;

    margin: 30px auto 0;

    background-color: #fffaf4;

    padding: 35px;

    border-radius: 15px;

    border: 1px solid #dfc8ad;

    box-shadow:
        0 5px 20px rgba(62, 47, 37, 0.12);

    text-align: left;
}

form label {
    display: block;

    margin-bottom: 8px;

    font-weight: bold;

    color: #4a3425;
}

form input,
form textarea {
    width: 100%;

    padding: 12px;

    margin-bottom: 20px;

    background-color: #ffffff;

    color: #3e2f25;

    border: 1px solid #d6b998;

    border-radius: 8px;

    font-size: 16px;

    font-family: Arial, sans-serif;
}

form input:focus,
form textarea:focus {
    outline: none;

    border-color: #a66a3f;

    box-shadow:
        0 0 8px rgba(166, 106, 63, 0.2);
}

form button {
    width: 100%;

    padding: 14px;

    background-color: #a66a3f;

    color: white;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

form button:hover {
    background-color: #7d4f2f;

    transform: translateY(-2px);
}


/* =========================
   PIE DE PÁGINA
========================= */

footer {
    width: 100%;

    background-color: #3e2f25;

    color: #eadfd3;

    text-align: center;

    padding: 25px;

    margin-top: 30px;

    border-top: 4px solid #c49a6c;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .tarjetas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .productos {
        padding: 50px 5%;
    }

    .productos h1 {
        font-size: 32px;
    }

    .productos h2 {
        font-size: 28px;
    }

    .tarjetas {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .imagen-contenedor {
        height: 250px;
    }

    .producto-imagen {
        height: 250px !important;
    }

}


/* =========================
   CELULAR PEQUEÑO
========================= */

@media (max-width: 480px) {

    .productos {
        padding: 40px 4%;
    }

    .producto {
        padding: 20px;
    }

    .imagen-contenedor {
        height: 220px;
    }

    .producto-imagen {
        height: 220px !important;
    }

    .hero h1 {
        font-size: 32px;
    }

}