/*
* Huevos La Mayorista - Estilos principales
* Paleta de colores basada en las imágenes del negocio
*/

:root {
    --primary: #f9a825; /* Amarillo huevo */
    --primary-light: #fbc02d;
    --secondary: #43a047; /* Verde fresco */
    --secondary-light: #66bb6a;
    --dark: #333333;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #424242;
    --gray: #9e9e9e;
    --border: #e0e0e0;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --whatsapp: #25d366;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    padding-top: 0; /* Eliminamos el padding-top porque ya no tendremos un navbar fijo por defecto */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

a:hover {
    color: var(--primary);
}

section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 25%;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 168, 37, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 160, 71, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    border-color: var(--whatsapp);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.shadow {
    box-shadow: var(--shadow) !important;
}

/* Header y Navegación */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    margin-right: 5px;
    color: var(--primary);
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    width: 100%;
    position: relative; /* Cambiamos a posición relativa para el navbar original */
    transition: var(--transition);
}

/* Navbar fijo que aparece al hacer scroll */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.navbar-fixed.navbar-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 70%;
}

.navbar-nav .nav-link.btn-pedido {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    padding: 10px 20px;
    margin-left: 10px;
    box-shadow: 0 3px 10px rgba(249, 168, 37, 0.2);
}

.navbar-nav .nav-link.btn-pedido:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 168, 37, 0.3);
}

.navbar-nav .nav-link.btn-pedido:after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0;
    background-attachment: fixed;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Características */
.features {
    background-color: var(--light);
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    background-color: rgba(249, 168, 37, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    color: var(--primary-light);
    background-color: rgba(249, 168, 37, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Sobre Nosotros */
.about-summary {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/bg-pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-img img {
    transition: var(--transition);
    width: 100%;
}

.about-img:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(249, 168, 37, 0.2), rgba(67, 160, 71, 0.2));
    border-radius: 15px;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.about-img:hover .img-overlay {
    opacity: 1;
}

.stats-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stats-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Testimonios */
.testimonials {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/bg-pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.testimonial {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    height: 100%;
    border-left: 3px solid var(--primary);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    position: absolute;
}

.testimonial-text:before {
    left: 0;
    top: -10px;
}

.testimonial-text:after {
    right: 0;
    bottom: -20px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imagenes/portadapágina.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    background-attachment: fixed;
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section .btn {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.cta-section .btn:hover {
    background-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/bg-pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.footer-logo {
    margin-bottom: 25px;
    text-align: center;
}

.footer-logo-img {
    height: auto;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer h5 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-content {
    padding-left: 0;
}

.social-footer {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-footer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-footer a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
    min-width: 16px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animaciones */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 991px) {
    .navbar-nav .nav-link.btn-pedido {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero {
        height: 550px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .stats-box,
    .testimonial {
        margin-bottom: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 70px;
        right: 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Estilos para página de contacto */
.contact-banner {
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.banner-buttons {
    gap: 15px;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-info-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-info-item {
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.contact-info-item:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.whatsapp-section {
    padding: 90px 0;
}

.whatsapp-content {
    padding: 20px;
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.whatsapp-button-container {
    margin-top: 30px;
}

.map-section {
    padding: 90px 0;
    background-color: var(--white);
}

.map-container {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    background-color: rgba(249, 168, 37, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.social-icons-large a {
    font-size: 1.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.social-icons-large a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.mayorista-message {
    padding: 90px 0;
}

.message-box {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-faq-section {
    padding: 90px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
    background-color: var(--white);
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(249, 168, 37, 0.05);
}

.accordion-body {
    padding: 20px;
    background-color: var(--white);
} 