/* Reset básico */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff9ed;
    color: #222;
}


/* Header superior */

.main-header {
    background: linear-gradient(90deg, #fff6d6 0%, #fffbe6 100%);
    border-bottom: 1.5px solid #ffe08a;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2.5vw;
    font-size: 1rem;
    background: transparent;
}

.welcome-msg {
    color: #b88a00;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.header-icons a {
    color: #222;
    font-size: 1.15rem;
    transition: color 0.2s;
    text-decoration: none;
}

.header-icons a:hover {
    color: #e6b800;
}

.user-greeting {
    margin-left: 1.2rem;
    color: #b88a00;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem 0 1.2rem 0;
    background: transparent;
}

.header-logo img {
    max-width: 230px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(200, 150, 0, 0.09));
    transition: transform 0.2s;
}

.header-logo img:hover {
    transform: scale(1.04) rotate(-2deg);
}


/* Barra de navegación */

.main-navbar {
    background: #fffbe6;
    border-top: 1px solid #ffe08a;
    border-bottom: 2px solid #ffe08a;
    box-shadow: 0 2px 8px rgba(255, 224, 138, 0.07);
}

.main-navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0.5rem 0;
    gap: 2.5rem;
}

.main-navbar a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.05rem;
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 3px;
    border-bottom: 2.5px solid transparent;
}

.main-navbar a.active,
.main-navbar a:hover {
    color: #e6b800;
    border-bottom: 2.5px solid #e6b800;
}


/* Responsive */

@media (max-width: 900px) {
    .main-navbar ul {
        gap: 1.2rem;
        font-size: 0.98rem;
    }
    .header-logo img {
        max-width: 170px;
    }
    .header-top {
        font-size: 0.97rem;
        padding: 0.7rem 1vw;
    }
}

@media (max-width: 600px) {
    .main-navbar ul {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.7rem 0;
    }
    .header-logo {
        padding: 1.2rem 0 0.7rem 0;
    }
    .header-logo img {
        max-width: 120px;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}


/* Slider de imágenes */

.slider {
    width: 80%;
    max-width: 700px;
    margin: 30px auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.slides {
    position: relative;
    width: 100%;
    height: 350px;
}

.slides input {
    display: none;
}

.slide {
    width: 100%;
    height: 350px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#slide1:checked~.first,
#slide2:checked~.slide:nth-child(4) {
    opacity: 1;
    position: relative;
    z-index: 2;
}


/* Navegación manual */

.navigation-manual {
    position: absolute;
    width: 100%;
    bottom: 15px;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.manual-btn {
    border: 2px solid #333;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    margin: 0 8px;
    background: #fff;
}

.manual-btn:hover {
    background: #333;
}

.navigation-auto {
    display: none;
}


/* Footer de contacto */

.footer-contact {
    background: #111;
    color: #fff;
    padding: 40px 0 30px 0;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
}

.footer-contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-contact h2 {
    font-size: 1.3em;
    margin: 20px 0 10px 0;
    color: #fff;
    letter-spacing: 1px;
}

.footer-contact p {
    margin: 6px 0;
    font-size: 1.1em;
    color: #fff;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .footer-contact-content {
        padding: 0 8px;
    }
    .footer-contact h2 {
        font-size: 1.1em;
    }
    .footer-contact p {
        font-size: 1em;
    }
}


/* Galería de productos en filas de tres */

.productos-section {
    padding: 40px 0 20px 0;
    background: #fafafa;
    text-align: center;
}

.productos-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #222;
}

.productos-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.producto-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    padding: 18px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.producto-item img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.producto-desc {
    font-size: 1.05em;
    color: #333;
    margin-top: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
}

@media (max-width: 900px) {
    .productos-galeria {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .productos-galeria {
        grid-template-columns: 1fr;
    }
    .producto-item img {
        width: 100%;
        height: 180px;
    }
}


/* --- Sección Nuestra Historia: imagen izquierda, texto derecha --- */

.historia-section {
    background: #f5f5f5;
    padding: 50px 0 40px 0;
}

.historia-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.historia-img-container {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
}

.historia-img {
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
}

.historia-title-text {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.historia-title-text h2 {
    font-size: 2em;
    color: #222;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 18px;
}

.historia-descripcion {
    font-size: 1.15em;
    color: #444;
    text-align: left;
    font-style: italic;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
}

@media (max-width: 900px) {
    .historia-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .historia-title-text {
        align-items: center;
        text-align: center;
    }
    .historia-img-container {
        justify-content: center;
    }
}