/* -------------------------------------------------------------------------- */
/*                                 GENERAL                                    */
/* -------------------------------------------------------------------------- */
:root {
    --primary-color: #BFB7DE; /* lavanda */
    --secondary-color: #FDD827; /* amarillo */
    --accent-color: #6F2DA8; /* violeta */
    --text-color: #333;
    --light-gray: #BCB8C9;
    --background-color: #F4F4F9;
    --title-font: 'Russo One', sans-serif;
    --body-font: 'Figtree', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--title-font);
    color: var(--accent-color);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

button {
    font-family: var(--title-font);
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: #eabf00;
}

/* --- Utility Classes --- */
.text-secondary {
    color: var(--secondary-color) !important;
    -webkit-text-stroke: 1px #581d87;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------------------- */
/*                                    HEADER                                  */
/* -------------------------------------------------------------------------- */
.header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.header-logo img {
    height: 50px;
}

.header-title {
    font-size: 2.5rem;
    color:  #fff;
    text-shadow: 1px 1px 2px var(--accent-color);
    position: absolute; /* <-- Agrega esta línea */
    left: 50%;          /* <-- Agrega esta línea */
    transform: translateX(-50%); /* <-- Agrega esta línea */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-toggle-label,
.nav-toggle-checkbox {
    display: none;
}

/* -------------------------------------------------------------------------- */
/*                                    HOME                                    */
/* -------------------------------------------------------------------------- */
.home-intro {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.titulo-home {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.parrafo {
    font-size: 1.2rem;
    color: #555;
}

/* -------------------------------------------------------------------------- */
/*                               PRODUCTOS                                    */
/* -------------------------------------------------------------------------- */
.product-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.product-card {
    background-color: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    width: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.product-card p {
    padding: 0 1rem;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.product-card button {
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/*                                FOOTER                                      */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--light-gray);
    color: #555;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons img {
    height: 30px;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------- */
/*                                  CONTACTO                                  */
/* -------------------------------------------------------------------------- */
.contact-main {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.contact-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form button {
    align-self: center;
    width: 50%;
    margin-top: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                                MEDIA QUERIES                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center;
    }
    .header-title {
        font-size: 1.2rem;
        text-align: center;
        flex-grow: 1;
        margin: 0 3rem;
        position: static; /* <-- Agrega esta línea */
        transform: none;  /* <-- Agrega esta línea */
    }
    .nav-toggle-label {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--accent-color);
        cursor: pointer;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    .header-logo {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1000;
    }
    .nav-toggle-checkbox:checked ~ .nav-menu {
        display: flex;
    }
    .nav-menu li {
        padding: 0.5rem 0;
    }
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
    .contact-form button {
        width: 100%;
    }
}
