/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Header Styles */
.header-space {
    height: 80px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

.header-title {
    font-weight: bold;
    color: #FF69B4;
    font-size: 24px;
    letter-spacing: 2px;
}

/* Header Links */
.header-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: #FF69B4;
}

.header-link-divider {
    color: #999;
    font-size: 16px;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.nav-menu.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    background-color: #FF69B4;
    color: white;
}

.nav-content {
    padding: 80px 5px 20px;
    text-align: center;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
    margin: 0 auto;
}

.nav-content li {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-content li:hover {
    border-color: #FF69B4;
    background-color: #fff5f8;
}

.nav-content a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.nav-content a:hover {
    color: #FF69B4;
}

/* Banner Styles (Index page specific) */
.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Pink Bar Styles */
.pink-bar {
    background-color: #967C5C;
    color: black;
    padding: 2px 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.carousel-content {
    display: flex;
    animation: carousel 20s linear infinite;
    width: fit-content;
}

.carousel-text {
    display: inline-block;
    padding: 0 50px;
    font-style: normal;
    white-space: nowrap;
    font-size: inherit;
}

@keyframes carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Welcome Section Styles */
.welcome-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.welcome-text {
    flex: 0 0 auto;
    max-width: 400px;
    min-width: 300px;
}

.welcome-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    font-style: italic;
}

.welcome-image {
    flex: 0 0 auto;
}

.intro-image {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Back Images Grid */
.back-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.back-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.back-image-link {
    text-decoration: none;
    display: block;
}

.back-image-link:hover .back-image {
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 767px) {
    .welcome-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .welcome-text {
        max-width: 100%;
        min-width: auto;
        text-align: center;
    }
    
    .welcome-text p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .intro-image {
        max-width: 250px;
    }
    
    /* Safari/iOS specific fixes */
    .nav-menu {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
    
    .nav-menu.active {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    
    /* Fix for iOS Safari viewport height */
    .header-space {
        height: 80px;
        min-height: 80px;
    }
    
    /* Improve touch targets for header links */
    .header-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix for mobile scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Pink bar mobile fixes */
    .pink-bar {
        font-size: 9px;
        padding: 1px 0;
    }
    
    .carousel-text {
        padding: 0 30px;
        font-size: inherit;
    }
}

/* Desktop Menu Styles */
@media (min-width: 768px) {
    .nav-menu {
        width: 25%;
    }
}

/* Mobile Styles for Header Links */
@media (max-width: 767px) {
    .header-links {
        gap: 10px;
    }
    
    .header-link {
        font-size: 14px;
    }
    
    .header-link-divider {
        font-size: 14px;
    }
}

/* Content Styles (About and Contact pages) */
.content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    margin-top: 30px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    flex-shrink: 0;
}

.social-label {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1;
    display: flex;
    align-items: center;
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    padding: 8%;
    margin: 0;
    display: block;
    filter: brightness(1.1) contrast(1.05);
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

/* Email Form Styles */
.email-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF69B4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #FF69B4;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #ff1493;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
}

/* Mobile Styles for Social Icons */
@media (max-width: 767px) {
    .social-icons {
        gap: 25px;
    }
    
    .social-item {
        gap: 10px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    .social-label {
        font-size: 16px;
    }
    
    .email-form-container {
        margin: 0 10px;
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}

/* Footer Styles */
footer {
    background-color: #967C5C;
    color: white;
    text-align: center;
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.product-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.product-item h3 {
    margin: 10px 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-description {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 5px 0;
    text-align: center;
}

.product-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.product-size {
    font-size: 24px;
    color: #666;
    font-weight: 500;
}

.product-price {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.product-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.comprar-btn {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    display: inline-block;
    padding: 15px 40px;
    box-sizing: border-box;
}

.comprar-btn:hover {
    border-color: #FF69B4;
    background-color: #fff5f8;
    color: #FF69B4;
}

/* Mobile Responsive for Products Grid */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }
    
        
    .product-item h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Product detail page styles */
.product-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.product-image-container {
    margin: 30px 0;
}

.product-large-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-large-image {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .product-large-image {
        max-height: 300px;
    }
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
}

.slider-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-image.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 105, 180, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: rgba(255, 20, 147, 0.9);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 768px) {
    .slider-container,
    .slider-image {
        max-height: 400px;
    }
    
    .slider-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .slider-container,
    .slider-image {
        max-height: 300px;
    }
}

/* Slider Dots Styles */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    background-color: #FF69B4;
    transform: scale(1.2);
}

.dot.active {
    background-color: #FF69B4;
    transform: scale(1.3);
}

/* Feria page specific styles - smaller font sizes */
.feria-page .product-size {
    font-size: 14px;
}

.feria-page .product-price {
    font-size: 16px;
}

/* Filter buttons styles */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: #FF69B4;
    background-color: #fff5f8;
    color: #FF69B4;
}

.filter-btn.active {
    background-color: #FF69B4;
    border-color: #FF69B4;
    color: white;
}

.filter-btn.active:hover {
    background-color: #ff1493;
    border-color: #ff1493;
}

/* Mobile responsive for filter buttons */
@media (max-width: 767px) {
    .filter-container {
        gap: 8px;
        margin: 15px 0;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Coupon page styles */
.coupon-item {
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
}

.coupon-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.3s;
    text-decoration: none;
}

.coupon-text-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-label:hover {
    border-color: #FF69B4;
    background-color: #fff5f8;
    color: #FF69B4;
}

.coupon-icon-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.coupon-image {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.coupon-description {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 400px;
}

/* Mobile responsive for coupon page */
@media (max-width: 767px) {
    .coupon-label {
        gap: 10px;
        font-size: 16px;
        padding: 15px 12px;
    }

    .coupon-icon-image {
        width: 80px;
        height: 80px;
    }

    .coupon-image {
        max-width: 90%;
    }

    .coupon-description {
        max-width: 90%;
        font-size: 14px;
    }
}

/* Promo text for Mercado Libre page */
.promo-text {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    white-space: nowrap;
}

/* Mobile responsive for promo text */
@media (max-width: 767px) {
    .promo-text {
        font-size: 16px;
        white-space: normal;
        line-height: 1.3;
    }
}
