/* --- ESTILOS GLOBALES --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #007bff;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER --- */
.public-header {
    background-color: #343a40; /* Cambiado a un fondo oscuro */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; /* Cambiado a blanco para que contraste */
}

.public-header nav a {
    margin-left: 25px;
    color: #f8f9fa; /* Cambiado a un blanco suave */
    font-weight: 400;
    transition: color 0.3s;
}

.public-header nav a:hover {
    color: #fff; /* Resaltado al pasar el mouse */
}

/* --- HERO SECTION (PÁGINA DE INICIO) --- */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #e9ecef;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-section h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

/* --- LISTA DE PRODUCTOS --- */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.retail-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.wholesale-price {
    font-size: 1rem;
    font-weight: 500;
    color: #17a2b8;
    background-color: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- FOOTER --- */
.public-footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

.public-footer .social-links a {
    color: #fff;
    margin: 0 10px;
}

.developer-credit {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc; /* Un color gris claro para el texto base */
}

.developer-credit a {
    color: #FFD700; /* Color dorado */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.developer-credit a:hover {
    color: #fff; /* Blanco al pasar el mouse para un buen contraste */
}
/* --- Estilos para el Header Responsivo --- */

/* Contenedor del header */
.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botón de hamburguesa (visible solo en móviles) */
.hamburger-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: #fff; /* Cambiado a blanco para que se vea en el fondo oscuro */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animación del botón de hamburguesa a una 'X' */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}


/* --- Media Query para dispositivos móviles (hasta 768px) --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Hacemos visible el botón en móviles */
    }

    .main-nav {
        display: none; /* Ocultamos la navegación por defecto */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #2c3e50; /* Un fondo oscuro para el menú desplegado */
        position: fixed; /* Posición fija para cubrir la pantalla */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transition: transform 0.3s ease-in-out;
    }

    .main-nav.active {
        display: flex; /* Mostramos el menú cuando está activo */
    }

    .main-nav a {
        font-size: 1.5rem;
        padding: 1.5rem 0;
        color: #fff; /* Cambiado a blanco puro para mayor contraste */
        text-decoration: none;
        transition: color 0.3s linear;
    }
}

.login-link {
    background-color: var(--accent-color, #007bff);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 25px;
}

/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 36px; /* Ajusta el tamaño del logo dentro del círculo */
    height: 36px;
}

/* --- ESTILOS PARA EL BOTÓN SCROLL TO TOP --- */
#publicScrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 110px; /* Posicionado arriba del botón de WhatsApp */
    right: 40px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#publicScrollToTopBtn:hover {
    background-color: #333;
}

/* --- ESTILOS PARA LA PÁGINA DE CONTACTO --- */
.contact-container {
    max-width: 700px;
    margin: 40px auto;
}

.contact-info-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info-card h2 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-label {
    font-weight: 700;
    color: #555;
}

.contact-item p {
    margin: 5px 0 0 0;
}

.whatsapp-contact-block {
    background-color: #e6f8f0;
    border: 2px solid #25d366;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}
.whatsapp-button:hover {
    background-color: #128c7e;
}
.whatsapp-button img {
    width: 24px;
    height: 24px;
}

.phone-link-container a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.desktop-only-text {
    display: none; /* Oculto por defecto */
    margin-left: 10px;
    font-size: 0.8rem;
    color: #777;
}

/* Mostrar el texto solo en pantallas grandes (no móviles) */
@media (min-width: 769px) {
    .desktop-only-text {
        display: inline;
    }
}

/* --- ESTILOS PARA EL BLOQUE DE ENTREGA --- */
.delivery-info-block {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f3f4f6; /* Gris claro */
    border-left: 5px solid #3b82f6; /* Azul */
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.delivery-info-block svg {
    flex-shrink: 0;
    color: #3b82f6;
}

.delivery-info-block h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
}

.delivery-info-block p {
    margin: 0;
    color: #4b5563;
}
