/*
 * Documentaci?n autom?tica del archivo.
 * Archivo: buenos_huevosUsuario\css\styles.css
 * Prop?sito: Estilos visuales del m?dulo.
 * Nota: se agregan comentarios para facilitar el mantenimiento sin alterar la l?gica.
 *//* Fuente general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ajuste para la barra de navegaci?n */
.navbar-brand {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -1px;
}

/* Hero Section con imagen de fondo */
.hero-section {
    background-image: url('https://placehold.co/1920x1080/ffc107/ffffff?text=Fondo+Granja+Amanecer');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    height: 80vh;
    /* Ocupa el 80% de la altura de la pantalla */
    position: relative;
}

/* Capa oscura sobre la imagen para que el texto se lea bien */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Efecto hover en las tarjetas de productos */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Botones personalizados */
.btn-warning {
    background-color: #ffaa00;
    border: none;
}

.btn-warning:hover {
    background-color: #e69900;
}

/* Colores y Fuentes */
:root {
    --verde-campestre: #2d7a4d;
    --verde-texto: #5a9e3f;
    --amarillo-huevo: #ffc107;
}

.contact-info p {
    line-height: 1.2;
    font-weight: 500;
}

/* Logo Estilo */
.logo-text {
    color: var(--verde-campestre);
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem;
    line-height: 0.9;
    margin-top: 10px;
}

.logo-text span {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.slogan-text {
    color: var(--verde-texto);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* Navegaci?n */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--verde-texto);
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s, color 0.2s;
}

.nav-menu li a:hover {
    color: var(--verde-campestre);
    transform: scale(1.05);
}

.nav-menu li a.destacado {
    background-color: var(--amarillo-huevo);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.nav-menu li a.destacado:hover {
    background-color: #e0a800;
    color: #fff;
}

/* Navegaci?n antigua (por si acaso) */
.nav-custom {
    color: var(--verde-texto) !important;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.nav-custom:hover {
    color: var(--verde-campestre) !important;
    transform: scale(1.05);
}

/* Iconos */
.social-icons i {
    font-size: 1.5rem;
    color: var(--verde-campestre);
}

.cart-icon {
    cursor: pointer;
}



/* Logo huevo (imagen) */
.egg-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.egg-logo--sm {
    width: 22px;
    height: 22px;
}

.egg-logo--lg {
    width: 48px;
    height: 48px;
}

.egg-logo--xl {
    width: 64px;
    height: 64px;
}
/* Ajuste para m?viles */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .slogan-text {
        font-size: 0.9rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .egg-logo--lg {
        width: 40px;
        height: 40px;
    }

    .egg-logo--xl {
        width: 52px;
        height: 52px;
    }

}

/* Estilos para el Dropdown Menu */
.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #555;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2d7a31;
    /* El verde de tu marca */
}

.dropdown-menu {
    border-radius: 10px;
    min-width: 200px;
}

@media (max-width: 576px) {
    .hero-section {
        height: auto;
        min-height: 55vh;
        padding: 2rem 0;
    }

    .content-card-overlap {
        margin-top: -28px;
    }

    .nav-menu li a {
        font-size: 1rem;
    }

    .dropdown-menu {
        min-width: 100%;
    }

    .container,
    .container-fluid {
        max-width: 100%;
    }
}
