:root {
    --gradient-primary: linear-gradient(135deg, #0097b2 0%, #7ed757 100%);
    --gradient-secondary: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --text-color: #ffffff;
    --text-dark: #2d3748;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --primary-color: #5d8a5b;
    --primary-dark: #406c49;
    --secondary-color: #9bb709;
    --accent-color: #0e4d23;
    --dark-color: #2a2a2a;
    --dark-color2: #021e05;
    --light-color: #f8f9fa;
    --gray-color: #8d99ae;
    --light-gray: #edf2f4;
    --dark-gray: #2b2d42;
    --success-color: #4cc9f0;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Barlow', 'Inter', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-effect: backdrop-filter: blur(10px) saturate(180%);
}
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
  
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 20px;
    }
    h1 {
        font-size: 4rem;
    }

}

/* Botones y formularios */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Layout */
html {
    position: relative;
    min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
}

.navbar-nav {
    margin-left: auto;
}

/* Sección Parallax */
.parallax {
    background-image: url('/images/hero.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    inset: auto;
    height: 400px; /* por defecto móvil */
}

/* Ajustes según resolución */
@media (min-width: 768px) {
    .parallax {
        height: 500px; /* tablet */
    }
}

@media (min-width: 1024px) {
    .parallax {
        height: 400px; /* laptops */
    }
}

@media (min-width: 1440px) {
    .parallax {
        height: 600px; /* pantallas grandes */
    }
}

/* Animación fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
h1 {
    text-shadow: 0 0 10px rgba(37, 140, 251, 0.8), 0 0 20px rgba(37, 140, 251, 0.6);
    /*font-size: 80px;*/
}

img {
    -moz-animation: inherit;
    -o-animation: inherit;
    -webkit-animation: inherit;
    animation: inherit;
}
    img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

/* Features Section Styles */
.features {
    padding: 6rem 0;
    background: white;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

    .section-title span {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: #4a5568;
    line-height: 1.6;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}

    .whatsapp-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    }

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: whitesmoke;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-details h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(141, 123, 104, 0.2);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}


/* Mapa Section */
.mapa-container {
    position: relative;
    height: 500px;
}

    .mapa-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        filter: grayscale(30%) contrast(110%);
    }

.mapa-overlay {
    position: absolute;
    top: 50px;
    right: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    max-width: 300px;
    z-index: 2;
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--primary);
    color: white;
}

.overlay-content h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}

.overlay-content p {
    margin-bottom: 20px;
    color: darkgrey;
}

/* Footer */
footer {
    background-color: #001D31;
    color: white;
    padding: 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: #2C3E50;
    }

.footer-col ul li {
    margin-bottom: 0.5rem;
}

    .footer-col ul li a:hover {
        color: #DBCAB9;
        padding-left: 5px;
    }

.social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-icons a:hover {
            background-color: #2C3E50;
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Tarjetas de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--light-gray);
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--box-shadow-lg);
        border-color: var(--primary-color);
    }

    .category-card img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    .category-card h3 {
        padding: 1.5rem 1rem;
        font-size: 1.25rem;
    }

/* Productos - Diseño mejorado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-lg);
        border-color: var(--primary-color);
    }

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.product-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

    .product-actions .btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }


.featured {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.featured-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-product {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    transition: transform 0.3s ease;
}

    .featured-product:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-lg);
    }

.featured-product-image {
    flex: 1;
    min-width: 150px;
    height: 180px;
    object-fit: cover;
}

.featured-product-info {
    flex: 2;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-product-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

    .featured-product-price del {
        font-size: 0.875rem;
        color: var(--gray-color);
        margin-left: 0.5rem;
    }
/* Filtros mejorados */
.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

    .filter-btn:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .filter-btn.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }


/ /* Modal de producto profesional */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--box-shadow-lg);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-product-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--gray-color);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .close-product-modal:hover {
        color: var(--danger-color);
        background-color: var(--light-gray);
    }

.product-modal-body {
    padding: 3rem;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-details-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

    .product-details-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.product-details-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.product-details-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-details-description {
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-details-actions {
    display: flex;
    gap: 1rem;
}

    .product-details-actions .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
