/* Metro.pe Inspired Landing Page Styles */
/* Custom Blue Color: RGB(40, 59, 137) = #283B89 */

:root {
    --primary-blue: rgb(40, 59, 137);
    --primary-blue-dark: rgb(30, 45, 107);
    --primary-blue-light: rgb(50, 69, 157);
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header Styles */
.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    background-color: var(--white);
}

.header-top-bar {
    background-color: var(--primary-blue);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-text {
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 16px;
    margin: 0;
    font-style: italic;
}

.header-main {
    background-color: var(--white);
    padding: 12px 0;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: auto;
    max-height: 50px;
    /* Adjust to fit total ~80px usually */
    width: auto;
    object-fit: contain;
}

.company-name {
	padding-top: 5px;
	font-family: Montserrat;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

.header-nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
	 background-color: var(--primary-blue);
    color: white;
	border-radius: 8px; 
	padding :5px;
	transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 8px 0;
    }

    .header-nav {
        margin-left: 0;
        margin-top: 8px;
        gap: 10px;
        flex-direction: column;
        width: 100%;
        padding-bottom: 8px;
    }

    .company-name {
        font-size: 16px;
    }

    .logo-image {
        max-height: 40px;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--white);
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 500px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 60px 40px 40px;
    color: var(--white);
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 700;
   /* margin-bottom: 12px; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	border-radius: 25px;      /* Applies a 25px curve to all corners */
	padding: 15px;            /* Adds space between the text and the border */
	display: inline-block;
	background-color:red;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-blue);
    box-shadow: var(--shadow);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* Section Styles */
.categories-section,
.featured-section {
    padding: 30px 0;
    background-color: var(--white);
    margin-bottom: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background-color: var(--primary-blue-light);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue-dark);
}

/* Tab Content */
/* Filters Navigation */
.filters-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filters-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(40, 59, 137, 0.2);
}

@media (max-width: 768px) {
    .filters-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 15px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 48px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow);
}

.load-more-btn:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.hidden {
    display: none;
}

/* Product/Category Card Animation */
.category-card.fade-in,
.product-card.fade-in {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.close-modal {
    color: var(--text-gray);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.modal-image {
    flex: 1;
    background-color: var(--bg-light);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info .product-name {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.modal-info .product-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-info .product-price {
    font-size: 36px;
    color: var(--primary-blue);
    font-weight: 700;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        height: 300px;
    }

    .modal-info {
        padding: 24px;
    }

    .modal-info .product-name {
        font-size: 24px;
    }

    .modal-info .product-price {
        font-size: 28px;
    }
}

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 16px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 16px 20px 8px;
}

.category-description {
    font-size: 14px;
    color: var(--text-gray);
    padding: 0 20px 20px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgb(219 35 35);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

/* Payment Methods */
.footer-payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align to right as requested "under Horarios and Contacto" */
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.payment-intro {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    display: block;
    transition: transform 0.3s ease;
}

.payment-icon:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-payments {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 250px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-subtitle {
        font-size: 14px;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}