/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --transition: all 0.3s ease;
    --header-height: 80px;
    --container-padding: 2rem;
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --header-height: 72px;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

nav {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

/* Home Section */
#home {
    padding: 0;
    max-width: none;
    margin-top: var(--header-height);
}

/* Carousel */
.carousel {
    position: relative;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Sections */
section:not(#home) {
    padding: 5rem var(--container-padding);
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
}

.stats li {
    text-align: center;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.2;
}

.stats span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    opacity: 0.8;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Coming Soon Ribbon */
.product-card::before {
    content: "Próximamente";
    position: absolute;
    top: 25px;
    right: -35px;
    transform: rotate(45deg);
    background: var(--primary-color);
    color: white;
    padding: 8px 40px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
}

/* Stores Section */
.stores-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.store-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.store-search input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.search-button:hover {
    background: var(--secondary-color);
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.support-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.support-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.support-card p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    flex-grow: 1;
    font-size: 0.95rem;
}

.support-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    font-weight: 500;
}

.support-button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 4rem var(--container-padding) 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section img {
    height: 42px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e5e7eb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e5e7eb;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #e5e7eb;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    section:not(#home) {
        padding: 4rem var(--container-padding);
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-button {
        padding: 0.5rem;
    }

    section:not(#home) {
        padding: 3rem var(--container-padding);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .store-search {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .stats {
        gap: 0.5rem;
    }

    .carousel-button {
        padding: 0.25rem;
        font-size: 0.875rem;
    }

    .product-card,
    .support-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .footer-section {
        padding: 0 1rem;
    }
}

/* Fix font rendering */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}