* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #22c55e;
    --accent-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --green-primary: #25d366;
    --green-secondary: #128c45;
    --green-hover: #20ba5a;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Enhanced Navbar */
.navbar {
    background: rgba(125, 144, 214, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    background: rgba(30, 64, 175, 0.98);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
    animation: fadeInLeft 1s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInRight 1s ease-out 0.6s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.register-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.cart-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.cart-icon i {
    color: white;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}


/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, #5d9672 0%, #16a34a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/></svg>');
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Section */
.categories-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}

.category-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.category-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h2 {
    font-size: 2rem;
    color: #1e3a8a;
    position: relative;
}

.products-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #fbbf24);
    border-radius: 2px;
}

.products-count {
    color: #64748b;
    font-size: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced 3D Product Card - The main enhancement! */
.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 1px 8px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0px);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(34, 197, 94, 0.05) 50%, 
        rgba(251, 191, 36, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 25px;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateZ(50px);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.2),
        0 10px 30px rgba(30, 58, 138, 0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    border-color: rgba(30, 58, 138, 0.2);
}

.product-card:nth-child(odd):hover {
    transform: perspective(1000px) rotateX(8deg) rotateY(-3deg) translateZ(40px);
}

.product-card:nth-child(even):hover {
    transform: perspective(1000px) rotateX(12deg) rotateY(3deg) translateZ(60px);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }

.product-card:hover {
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.2),
        0 10px 30px rgba(30, 58, 138, 0.1),
        0 0 0 1px rgba(255,255,255,0.5),
        0 0 20px rgba(34, 197, 94, 0.3);
}

/* Enhanced Product Image with 3D effect */
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100.5%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1) translateZ(0);
    filter: brightness(1) contrast(1);
    margin-left: -0.25px;
    margin-right: -0.25px;
}




.product-card:hover .product-image img {
    transform: scale(1.15) translateZ(20px);
    filter: brightness(1.1) contrast(1.1);
}

/* Enhanced Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.9) 0%, 
        rgba(59, 130, 246, 0.8) 50%,
        rgba(34, 197, 94, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-read-more {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-read-more:hover::before {
    width: 300px;
    height: 300px;
}

.product-card:hover .btn-read-more {
    transform: translateY(0) scale(1);
}

.btn-read-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
}

/* Enhanced Product Info */
.product-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 0 0 25px 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #fbbf24);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.product-card:hover .product-info h3::after {
    width: 100%;
}

.product-card:hover .product-info h3 {
    color: #22c55e;
    transform: translateY(-2px);
}

.product-price {
    font-size: 1.4rem;
    color: #22c55e;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover .product-price {
    color: #16a34a;
    transform: scale(1.05);
}

/* Product Modal Enhancements */
.product-modal-content {
    max-width: 900px;
    width: 95%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.product-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #22c55e, #fbbf24);
}

.modal-product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem;
}

.modal-product-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.modal-product-image img {
    width: 101%;
    height: 101%;
    object-fit: cover;
    display: block;
    margin: 0;
    transform: scale(1.01); /* escala leve para cubrir render gaps */
    transition: all 0.4s ease;
    backface-visibility: hidden;
}



.modal-product-image:hover img {
    transform: scale(1.05);
    cursor: pointer;
}

.modal-product-details h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.modal-product-details h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #fbbf24);
    border-radius: 2px;
}

.modal-product-price {
    font-size: 2.2rem;
    color: #22c55e;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.modal-product-description {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
} 

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 50px;
    width: fit-content;
}

.quantity-controls button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.quantity-controls button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.quantity-controls input {
    width: 80px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.quantity-controls input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-add-to-cart:hover::before {
    left: 100%;
}

.btn-add-to-cart:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #6179bd 0%, #354169 100%);
    color: white;
    padding: 4rem 0 2rem;
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.registerModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}
.register-btn a {
    color: white;
    text-decoration: none;
}

.register-btn a:hover {
    color: white;
}

.registerModal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    margin-right: 10px;
    border-radius: 50%; /* círculo */
    background-color: #f0f0f0; /* color de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    
}



.close:hover {
    color: #ef4444;
}

.modal-content h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .categories-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-product-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-product-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 320px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
}

/* Enhanced Responsive Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.product-modal-content {
    max-width: 900px;
    width: 700px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;

}

.modal-product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        margin: 30px auto;
        max-width: 400px;
        max-height: calc(100vh - 60px);
        border-radius: 15px;
    }
    
    .product-modal-content {
        margin: 30px auto;
        max-width: 500px;
        max-height: calc(100vh - 60px);
        border-radius: 20px;
    }
    
    .modal-product-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-product-image img {
        height: 200px;
    }
    
    .modal-product-details h2 {
        font-size: 1.4rem;
    }
    
    .modal-product-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 40px auto;
        max-width: 320px;
        max-height: calc(100vh - 80px);
        border-radius: 12px;
    }
    
    .product-modal-content {
        margin: 40px auto;
        max-width: 350px;
        max-height: calc(100vh - 80px);
        border-radius: 15px;
    }
    
    .modal-product-info {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-product-image img {
        height: 180px;
    }
    
    .modal-product-details h2 {
        font-size: 1.2rem;
    }
    
    .modal-product-price {
        font-size: 1.4rem;
    }
    
    .quantity-controls {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .btn-add-to-cart {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}


/* Scrollbar styling for modal content */
.modal-content::-webkit-scrollbar,
.product-modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track,
.product-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb,
.product-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.product-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Modal Styles (Same as inicio.css) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
   
}



@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ef4444;
}

.modal-content h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* WhatsApp Float Button - Mejorado */
.whatsapp-float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, var(--green-hover) 0%, var(--green-primary) 100%);
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: ripple 2s infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}@media (max-width: 768px) {
  .d-none {
    display: none !important;
  }
}








@media (min-width: 681px) and (max-width: 1024px) {
    .product-card {
      width: 48%;
      margin: 1% auto;
    }
}
  
@media (min-width: 481px) and (max-width: 680px) {
    .product-card {
      width: 80%;
      margin: 1rem auto;
    }
}
  
@media (max-width: 480px) {
    .product-card {
      width: 100%;
      margin: 0.5rem auto;
    }
}
