/* ==================================
   ESTILOS GENERALES
================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff7fb;
    color: #444;
}

img {
    max-width: 100%;
}

/* ==================================
   ENCABEZADO Y MENU
================================== */

.encabezado {
    background-color: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 3px solid #f6c4dc;
}

.encabezado h1 {
    color: #d63384;
    font-size: 30px;
}

.encabezado input {
    padding: 12px;
    border: 1px solid #e7a8c8;
    border-radius: 25px;
    outline: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #a61e63;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #f062a5;
}

/* ==================================
   PORTADA DE INICIO CON IMAGEN
================================== */

.portada {
    min-height: 380px;

    background-image:
        linear-gradient(
            rgba(150, 30, 90, 0.35),
            rgba(150, 30, 90, 0.35)
        ),
        url("portada.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    padding: 45px;
}

.texto-portada {
    max-width: 550px;
    color: white;
}

.texto-portada h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px #74304f;
}

.texto-portada p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* BOTON */

.boton {
    display: inline-block;
    background-color: #d63384;
    color: white;
    padding: 13px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.boton:hover {
    background-color: #a61e63;
}

/* ==================================
   TITULOS
================================== */

.titulo {
    text-align: center;
    color: #c21870;
    font-size: 28px;
    margin: 35px 0 20px;
}

/* ==================================
   CATEGORIAS
================================== */

.categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
}

.categorias a {
    background-color: #fce4ef;
    color: #a61e63;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 12px;
    font-weight: bold;
    border: 1px solid #f3bdd5;
}

.categorias a:hover {
    background-color: #f5bad5;
}

/* ==================================
   PRODUCTOS
================================== */

.productos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 25px;
}

.producto {
    background-color: white;
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #f4d3e2;
    box-shadow: 0 4px 12px rgba(190, 70, 125, 0.12);
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.producto h3 {
    color: #6d2448;
    margin: 15px 0 10px;
}

.producto p {
    color: #d63384;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.producto button {
    background-color: #d63384;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 25px;
    cursor: pointer;
}

.producto button:hover {
    background-color: #a61e63;
}

/* ==================================
   PORTADA DE NOSOTROS CON IMAGEN
================================== */

.portada-nosotros {
    min-height: 350px;

    background-image:
        linear-gradient(
            rgba(120, 20, 90, 0.25),
            rgba(120, 20, 90, 0.25)
        ),
        url("../multimedia/portada.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.portada-nosotros h2 {
    font-size: 38px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px #71304d;
}

.portada-nosotros p {
    font-size: 20px;
    text-shadow: 1px 1px 4px #71304d;
}

/* ==================================
   CONTENIDO DE NOSOTROS
================================== */

.contenido-nosotros {
    background-color: #fff0f6;
    padding: 35px 20px;
    text-align: center;
}

.tarjeta-nosotros {
    background-color: white;
    max-width: 850px;
    margin: 20px auto;
    padding: 28px;
    border-radius: 18px;
    border: 2px solid #f4b6d2;
    box-shadow: 0 5px 15px rgba(190, 70, 125, 0.15);
}

.tarjeta-nosotros h2 {
    color: #c21870;
    margin-bottom: 15px;
    font-size: 25px;
}

.tarjeta-nosotros p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

.boton-nosotros {
    display: inline-block;
    background-color: #d63384;
    color: white;
    padding: 14px 25px;
    margin: 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.boton-nosotros:hover {
    background-color: #a61e63;
}

/* ==================================
   PIE DE PAGINA
================================== */

footer,
.pie-nosotros {
    background-color: #c21870;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    line-height: 1.8;
}

/* ==================================
   ADAPTACION A TABLETAS
================================== */

@media (max-width: 900px) {
    .productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .encabezado {
        justify-content: center;
    }
}

/* ==================================
   ADAPTACION A CELULARES
================================== */

@media (max-width: 600px) {
    .productos {
        grid-template-columns: 1fr;
    }

    .encabezado {
        padding: 18px;
    }

    nav {
        justify-content: center;
    }

    .portada {
        min-height: 300px;
        padding: 25px;
    }

    .texto-portada h2 {
        font-size: 30px;
    }

    .portada-nosotros {
        min-height: 280px;
    }

    .portada-nosotros h2 {
        font-size: 28px;
    }

    .tarjeta-nosotros {
        padding: 20px;
    }
}