/* Variables CSS */
:root {
    --color-mostaza: #D4AF37;
    --color-azul: #2E86AB;
    --color-verde: #4CAF50;
    --color-blanco: #FFFFFF;
    --color-gris-claro: #F5F5F5;
    --color-gris: #666666;
    --color-negro: #333333;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-negro);
    background-color: var(--color-blanco);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-azul);
}

.nav__logo i {
    font-size: 1.5rem;
    color: var(--color-verde);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--color-negro);
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--color-azul);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-mostaza);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-azul);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--color-gris-claro) 0%, var(--color-blanco) 100%);
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-azul);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-gris);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__button {
    display: inline-block;
    background-color: var(--color-mostaza);
    color: var(--color-blanco);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero__button:hover {
    background-color: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hero__image {
    text-align: center;
}

.hero__image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero__image img:hover {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--color-blanco);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    text-align: center;
    margin-bottom: 1rem;
}

.about__description {
    font-size: 1.2rem;
    color: var(--color-gris);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about__feature {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--color-gris-claro);
    transition: var(--transition);
}

.about__feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about__feature i {
    font-size: 3rem;
    color: var(--color-verde);
    margin-bottom: 1rem;
}

.about__feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 1rem;
}

.about__feature p {
    color: var(--color-gris);
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--color-gris-claro);
}

.products__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.products__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    text-align: center;
    margin-bottom: 3rem;
}

.products__carousel {
    position: relative;
}

.carousel__container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.product__card {
    min-width: 100%;
    background-color: var(--color-blanco);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.product__image {
    width: 220px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product__image:hover img {
    transform: scale(1.1);
}

.product__info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 0.5rem;
}

.product__info p {
    color: var(--color-gris);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product__button {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product__button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-mostaza);
    color: var(--color-blanco);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel__button:hover {
    background-color: #B8941F;
    transform: translateY(-50%) scale(1.1);
}

.carousel__button--prev {
    left: 20px;
}

.carousel__button--next {
    right: 20px;
}

.carousel__indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--color-mostaza);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-blanco);
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonials__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--color-gris-claro);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial__content {
    margin-bottom: 1.5rem;
}

.testimonial__content p {
    font-style: italic;
    color: var(--color-gris);
    line-height: 1.6;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-mostaza);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blanco);
    font-size: 1.2rem;
}

.testimonial__info h4 {
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 0.2rem;
}

.testimonial__info span {
    color: var(--color-gris);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--color-gris-claro);
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    text-align: center;
    margin-bottom: 3rem;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--color-blanco);
    border-radius: 15px;
    transition: var(--transition);
}

.contact__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact__item i {
    font-size: 2rem;
    color: var(--color-verde);
    min-width: 40px;
}

.contact__item h3 {
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 0.5rem;
}

.contact__link {
    color: var(--color-mostaza);
    font-weight: 500;
    transition: var(--transition);
}

.contact__link:hover {
    color: #B8941F;
}

.contact__map {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--color-azul);
    color: var(--color-blanco);
    padding: 3rem 0 1rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer__logo i {
    font-size: 1.5rem;
    color: var(--color-mostaza);
}

.footer__section h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-mostaza);
}

.footer__section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__section a {
    color: var(--color-blanco);
    transition: var(--transition);
}

.footer__section a:hover {
    color: var(--color-mostaza);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 1rem;
}

.footer__links a {
    color: var(--color-blanco);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-mostaza);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-blanco);
        transition: var(--transition);
        padding: 2rem;
    }
    
    .nav__menu.show {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .carousel__button {
        display: none;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }
    
    .products__title,
    .about__title,
    .testimonials__title,
    .contact__title {
        font-size: 2rem;
    }
    
    .product__card {
        padding: 1.5rem;
    }
    
    .contact__map {
        height: 300px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--color-blanco);
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 280px;
    min-width: 60px;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.whatsapp-text {
    white-space: nowrap;
    opacity: 1;
    transition: all 0.3s ease;
    line-height: 1.2;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        padding: 10px 15px;
        font-size: 0.8rem;
        max-width: 250px;
    }
    
    .whatsapp-icon {
        font-size: 1.3rem;
        margin-right: 8px;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-button {
        padding: 8px 12px;
        font-size: 0.75rem;
        max-width: 220px;
    }
    
    .whatsapp-text {
        font-size: 0.75rem;
    }
}

/* Efecto de entrada cuando se carga la página */
.whatsapp-float {
    animation: slideInRight 1s ease-out, pulse 2s infinite 1s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Asegurar que el botón esté siempre visible */
.whatsapp-float {
    pointer-events: auto;
}

.whatsapp-button {
    cursor: pointer;
}

/* Efecto adicional para llamar la atención */
.whatsapp-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #25D366, #128C7E, #25D366);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-button:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Galería de productos */
.products__gallery {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.gallery__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-azul);
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__item {
    background-color: var(--color-blanco);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--color-mostaza);
}

.gallery__image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__image:hover img {
    transform: scale(1.1);
}

.gallery__info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 0.8rem;
}

.gallery__info p {
    color: var(--color-gris);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.gallery__button {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.gallery__button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.gallery__button i {
    font-size: 1rem;
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery__item {
        padding: 1.2rem;
    }
    
    .gallery__image {
        width: 120px;
        height: 120px;
    }
    
    .gallery__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery__item {
        padding: 1rem;
    }
    
    .gallery__image {
        width: 100px;
        height: 100px;
    }
    
    .gallery__title {
        font-size: 1.6rem;
    }
    
    .gallery__info h4 {
        font-size: 1.1rem;
    }
    
    .gallery__info p {
        font-size: 0.85rem;
    }
}

/* Animación de entrada para los elementos de la galería */
.gallery__item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery__item:nth-child(1) { animation-delay: 0.1s; }
.gallery__item:nth-child(2) { animation-delay: 0.2s; }
.gallery__item:nth-child(3) { animation-delay: 0.3s; }
.gallery__item:nth-child(4) { animation-delay: 0.4s; }
.gallery__item:nth-child(5) { animation-delay: 0.5s; }
.gallery__item:nth-child(6) { animation-delay: 0.6s; }
.gallery__item:nth-child(7) { animation-delay: 0.7s; }
.gallery__item:nth-child(8) { animation-delay: 0.8s; }
.gallery__item:nth-child(9) { animation-delay: 0.9s; }
.gallery__item:nth-child(10) { animation-delay: 1.0s; }
.gallery__item:nth-child(11) { animation-delay: 1.1s; }
.gallery__item:nth-child(12) { animation-delay: 1.2s; }
.gallery__item:nth-child(13) { animation-delay: 1.3s; }
.gallery__item:nth-child(14) { animation-delay: 1.4s; }
.gallery__item:nth-child(15) { animation-delay: 1.5s; }