/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0077c8;
    --secondary-cyan: #00BCD4;
    --dark-blue: #005A8D;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imagen-logo{
    width: 330px;
    height: 110px;
    margin-left: 30px;
}


/* Desktop Navigation */
.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-desktop a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 2rem 0;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-section {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 2rem;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.mobile-categories {
    list-style: none;
}

.mobile-categories button {
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    margin-bottom: 0.4rem;
    background-color: var(--light-bg);
    border: 2px solid transparent;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-categories button:hover,
.mobile-categories button.active {
    background-color: var(--secondary-cyan);
    color: var(--white);
    border-color: var(--secondary-cyan);
    transform: translateX(5px);
}

/* ============================================
   BANNER
   ============================================ */
.banner {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.banner-content i {
    font-size: 1.3rem;
    color: var(--secondary-cyan);
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: relative;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background-color: var(--secondary-cyan);
    color: var(--white);
    border: 2px solid var(--secondary-cyan);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}

/* Search Bar */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background-color: var(--light-bg);
    padding: 0.4rem;
    border-radius: 10px;
}

.view-btn {
    padding: 0.7rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.view-btn:hover {
    background-color: rgba(0, 188, 212, 0.1);
    color: var(--secondary-cyan);
}

.view-btn.active {
    background-color: var(--secondary-cyan);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   PRODUCTS GRID - DIFFERENT VIEWS
   ============================================ */
.products-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* List View */
.view-list {
    grid-template-columns: 1fr;
}

.view-list .product-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.view-list .product-image {
    width: 180px;
    height: 180px;
}

.view-list .product-info {
    text-align: left;
}

.view-list .product-description {
    display: block !important;
}

.view-list .product-units {
    display: block !important;
}

/* Grid Medium View */
.view-grid-medium {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Grid Large View */
.view-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-cyan);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #FF5722;
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-list .product-name {
    white-space: normal;
    font-size: 1.4rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: none;
}

.product-units {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: none;
}

.view-grid-large .product-description,
.view-grid-large .product-units {
    display: block;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.action-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cart {
    background-color: var(--secondary-cyan);
    color: var(--white);
    flex: 1;
}

.btn-cart:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-favorite {
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding: 0.7rem 1rem;
}

.btn-favorite:hover {
    background-color: #FF5722;
    color: var(--white);
    transform: scale(1.1);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results p {
    font-size: 1.2rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0 1rem;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-cyan);
    color: var(--white);
    border-color: var(--secondary-cyan);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.page-number:hover {
    border-color: var(--secondary-cyan);
    color: var(--secondary-cyan);
    transform: translateY(-2px);
}

.page-number.active {
    background-color: var(--secondary-cyan);
    color: var(--white);
    border-color: var(--secondary-cyan);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background-color: var(--primary-blue);
    padding: 0;
    margin-top: 4rem;
}



.contact-map {
    width: 100%;
    height: 375px; /* Altura fija para buen aspecto visual */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
}

.contact-content {
    display: grid;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 5%;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr; /* Dividimos en dos columnas iguales */
    color: var(--white);
}

.contact-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-left: 4rem;
    color: var(--white);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 0.2rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
    
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    
}

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

.contact-social a:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--secondary-cyan);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.copyright-bar {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-content {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .products-section {
        padding: 1.5rem 1rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .view-grid-medium,
    .view-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .view-list .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .view-list .product-image {
        margin: 0 auto 1rem;
    }
    
    .view-list .product-info {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .banner-content {
        font-size: 0.9rem;
    }
    
    .products-header {
        gap: 1rem;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .view-grid-medium,
    .view-grid-large {
        grid-template-columns: 1fr;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
    }
}
