﻿.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem;
    background-color: #fafafa;
}

/* Columna izquierda (imagen) */
.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Columna derecha (texto y botón) */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* título arriba, botón abajo */
    padding: 2rem;
    background-color: rgba(0,0,0,0.5);
    border-radius: 10px;
    color: #fff;
}

.btn-container {
    margin-top: auto;
    text-align: right;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }


.overlay {
    background-color: rgba(0,0,0,0.5);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
}

.bienvenida {
    font-size: 3rem;
    color: #fff;
    font-family: 'Georgia', serif;
}

.marca {
    color: #ffcc00;
    text-shadow: 2px 2px #8b0000;
}

.subtexto {
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }

/*.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
*/
.sidebar {
    background-color: #3b2f2f; /* tono madera oscura */
    color: #f5f5dc; /* beige para contraste */
    width: 250px;
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
}

    .sidebar a {
        display: block;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        color: #f5f5dc;
        text-decoration: none;
        font-family: 'Georgia', serif;
        font-size: 1.1rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

        .sidebar a:hover {
            background-color: #8b0000; /* rojo cálido */
            color: #fff;
        }

    .sidebar .nav-item.active a {
        background-color: #a52a2a; /* marrón rojizo */
        font-weight: bold;
    }

/* Barra superior */
.custom-navbar {
    background-color: #8b0000; /* rojo cálido */
    border-bottom: 3px solid #ffcc00;
}

.brand-sinaloa {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: #ffcc00 !important;
    text-shadow: 2px 2px #3b2f2f;
}

/* Sidebar */
.custom-sidebar {
    background-color: #3b2f2f; /* madera oscura */
    color: #f5f5dc;
    width: 250px;
    padding-top: 1rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
}

.custom-link {
    color: #f5f5dc !important;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .custom-link:hover {
        background-color: #a52a2a;
        color: #fff !important;
    }

    .custom-link.active {
        background-color: #8b0000;
        font-weight: bold;
        color: #fff !important;
    }
.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    flex: 0 0 220px; /* ancho fijo y proporcionado */
    background-color: #3b2f2f;
    color: #f5f5dc;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    background-color: #fafafa;
    padding: 1rem;
}

.top-row {
    background-color: #8b0000;
    color: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.sidebar .nav-link {
    color: #f5f5dc !important;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 0.25rem 0;
    transition: background-color 0.3s ease;
}

    .sidebar .nav-link:hover {
        background-color: #a52a2a;
        color: #fff !important;
    }

    .sidebar .nav-link.active {
        background-color: #8b0000;
        font-weight: bold;
        color: #fff !important;
    }

/* Contenedor principal */
.page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    flex: 0 0 220px; /* ancho fijo */
    background-color: #3b2f2f; /* madera oscura */
    color: #f5f5dc;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* Contenido principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

/* Barra superior */
.top-row {
    background-color: #8b0000; /* rojo cálido */
    color: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
    border-bottom: 3px solid #ffcc00;
}

/* Área de contenido */
.content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* Enlaces del menú */
.sidebar .nav-link {
    color: #f5f5dc !important;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 0.25rem 0;
    transition: background-color 0.3s ease;
}

    .sidebar .nav-link:hover {
        background-color: #a52a2a;
        color: #fff !important;
    }

    .sidebar .nav-link.active {
        background-color: #8b0000;
        font-weight: bold;
        color: #fff !important;
    }

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    overflow: hidden;
}

/* Imagen como fondo absoluto */
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* llena todo el contenedor */
    z-index: 1;
}

/* Overlay encima de la imagen */
.overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    color: #fff;
}

/* Botón al fondo */
.btn-container {
    margin-top: auto;
    text-align: right;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }

.hero-section {
    background-image: url('/images/CondimentosSinaloa.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay encima del fondo */
.overlay {
    background-color: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    color: #fff;
}

/* Botón al fondo */
.btn-container {
    margin-top: auto;
    text-align: right;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    background-color: #fafafa;
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background-color: rgba(0,0,0,0.5);
    border-radius: 10px;
    color: #fff;
}

.btn-container {
    margin-top: auto;
    text-align: right;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    overflow: hidden;
}

/* Imagen */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay encima de la imagen */
.overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* título arriba, botón abajo */
    height: 100%;
    width: 100%;
    color: #fff;
}

/* Botón al fondo */
.btn-container {
    margin-top: auto; /* empuja el botón hacia abajo */
    text-align: right;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #fafafa;
    flex-wrap: wrap; /* permite que se acomode en móviles */
}

/* Imagen */
.hero-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Texto */
.bienvenida {
    font-size: 2rem;
    color: #8b0000;
    margin-bottom: 0.5rem;
}

.subtexto {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Botón */
.btn-container {
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.btn-ver-productos {
    background-color: #8b0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

    .btn-ver-productos:hover {
        background-color: #a52a2a;
    }

/* 📱 Responsive para móviles */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* apila todo en una columna */
        text-align: center;
    }

    .bienvenida {
        font-size: 1.5rem;
    }

    .subtexto {
        font-size: 1rem;
    }

    .btn-ver-productos {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
