/* Reset y variables */
:root {
    --primary-color: #333;
    --accent-color: #007bff;
    --text-color: #333;
    --background-color: #fff;
}

/* Optimizaciones de rendimiento */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body.product-detail-open {
    overflow: hidden;
}

/* Base styles for header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    transition: height 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
}

/* Hero section styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ajustes responsive para la imagen de fondo */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    .hero-video {
        /* Mejora el rendimiento en dispositivos móviles */
        width: 100%;
        height: 100%;
    }
    /* ...existing mobile styles... */
}

/* Overlay opcional para mejorar la legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según necesites */
}

.hero-content {
    position: relative; /* Para que el contenido aparezca sobre el overlay */
    z-index: 1;
    text-align: center;
    color: #fff; /* Asegura que el texto sea legible sobre la imagen */
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(18, 140, 126, 0.2);
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(18, 140, 126, 0.3);
}

    .hero-content {
        padding: 1rem;
    }


/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-webapps {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
}

.footer-webapps__title {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-webapps__item {
    flex: 1 1 260px;
    max-width: 360px;
    text-align: left;
}

.footer-webapps__item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.footer-webapps__item p {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    line-height: 1.5;
}

.footer-webapps__item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.footer-webapps__item a::after {
    content: '\2197';
    font-size: 0.9rem;
}

.footer-webapps__item a:hover {
    color: #38bdf8;
}

/* CTA para reseñas reutilizable en fichas de producto */
.reviews-cta {
    margin: 2.5rem 0;
    padding: 1.75rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.reviews-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.reviews-cta p {
    color: #475569;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.reviews-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.reviews-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviews-cta-link.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.reviews-cta-link.secondary {
    background: #fff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.reviews-cta-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .reviews-cta {
        margin: 2rem 0;
        padding: 1.25rem;
    }

    .reviews-cta-actions {
        flex-direction: column;
    }

    .reviews-cta-link {
        width: 100%;
    }
}

.footer p {
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.payment-icon {
    width: auto;
    height: 40px;
    object-fit: contain;
    background: none;
    border: none;
    /* Eliminar los filtros que hacían los íconos blancos */
    mix-blend-mode: normal;
    filter: none;
    /* Mantener las transiciones */
    transition: transform 0.2s ease;
    opacity: 1;
}

.payment-icon:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        gap: 1.2rem;
    }

    .footer-webapps__item {
        text-align: center;
    }

    .footer-webapps {
        padding: 1.25rem;
    }

    .footer p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .payment-icons {
        gap: 2rem;
        padding: 1rem 0;
    }

    .payment-icon {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer p {
        font-size: 0.85rem;
        max-width: 280px;
        margin: 0 auto;
    }

    .payment-icons {
        gap: 1.5rem;
        padding: 0.75rem 0;
    }

    .payment-icon {
        height: 30px;
    }
}

/* Hamburger Menu */
.hamburger {
    width: 40px;
    height: 40px;
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger:focus {
    outline: 2px solid var(--accent-color);
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                opacity 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo object,
.logo img {
    max-width: 350px;
    height: auto;
    transition: max-width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav.active .nav-list {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list a {
        font-size: 1.5rem;
        color: var(--text-color);
        position: relative;
        padding: 0.5rem 1rem;
    }

    .nav-list a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s ease;
    }

    .nav-list a:hover::after,
    .nav-list a:focus::after {
        width: 100%;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

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

    .header {
        height: 60px;
        padding: 0.5rem 1rem;
    }

    .logo object,
    .logo img {
        max-width: 200px;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Enhanced mobile menu items */
    .nav-list li {
        width: 100%;
        text-align: center;
        transform: translateX(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav.active .nav-list li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav.active .nav-list li:nth-child(1) { transition-delay: 0.1s; }
    .nav.active .nav-list li:nth-child(2) { transition-delay: 0.2s; }
    .nav.active .nav-list li:nth-child(3) { transition-delay: 0.3s; }
    .nav.active .nav-list li:nth-child(4) { transition-delay: 0.4s; }
}

@media (max-width: 480px) {
    .header {
        height: 50px;
    }

    .logo object,
    .logo img {
        max-width: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }
}

/* About Section Styles - Actualización */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2563eb;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Payment Section Styles - Simplificado */
.payment-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    overflow-x: hidden;
}

.payment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.payment-text {
    padding: 0 1rem;
}

.payment-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 auto;
    max-width: 800px;
}

/* Media Queries para la sección de pagos */
@media (max-width: 768px) {
    .payment-section {
        padding: 4rem 1.5rem;
    }

    .payment-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .payment-section {
        padding: 3rem 1rem;
    }

    .payment-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .about-section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .container {
        width: 95%;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* Credits Section */
.credits {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.credits a {
    color: #007bff; /* Cambiado a azul */
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #0056b3; /* Un tono más oscuro al pasar el mouse */
    text-decoration: underline;
}

/* Products Grid - Updated */
.products-container {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 280px);
}

.products-grid {
    display: grid;
    /* Base grid para móviles: 2 columnas */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

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

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    background-color: #f8f9fa; /* Fondo claro para imágenes transparentes */
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1a202c;
}

.product-info .price {
    font-size: 1.2rem;
    color: #2563eb;
    font-weight: bold;
    margin: 0.5rem 0;
}

.product-info .description {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
}

/* Ajuste de las tarjetas de producto para mejor visualización en móvil */
.product-card {
    /* ...existing styles... */
    width: 100%;
    min-width: unset;
}

.product-card img {
    width: 100%;
    height: 150px; /* Altura reducida para móviles */
    object-fit: cover;
}

@media (min-width: 768px) {
    .product-card img {
        height: 200px; /* Altura original para tablets y desktop */
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .product-info p {
        font-size: 0.9rem;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 360px) {
    .products-grid {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .product-card img {
        height: 120px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info p {
        font-size: 0.8rem;
    }
}

/* Product Detail View */
.product-detail {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 1400;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: calc(80px + 1rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.product-detail {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

@supports (height: 100dvh) {
    .product-detail {
        min-height: 100dvh;
    }
}

.detail-container {
    width: min(100%, 1000px);
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .detail-container {
        padding: 1.5rem;
    }

    .back-button {
        width: 100%;
        justify-content: center;
    }
}

.back-button:hover {
    background: #1d4ed8;
}

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

.detail-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain; /* Cambiado a contain para mantener proporción */
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .detail-info {
        padding-bottom: 2.5rem;
    }
}

.detail-info h2 {
    font-size: 2rem;
    color: #1a202c;
    margin: 0 0 1rem;
}

.detail-info .price {
    font-size: 2rem;
    color: #2563eb;
    font-weight: bold;
    margin: 1rem 0;
}

.detail-info .description {
    color: #4b5563;
    line-height: 1.8;
    margin: 1rem 0;
}

.buy-button {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.buy-button:hover {
    background: #059669;
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Search and Filters Styles */
.search-filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f3f4f6;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.filter-group select,
.price-inputs input {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1f2937;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    width: 100px;
}

.clear-filters-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    color: #4b5563;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-filters-btn:hover {
    background: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-inputs {
        flex-wrap: wrap;
    }

    .price-inputs input {
        width: calc(50% - 0.5rem);
    }
}

/* ...existing code... */

/* Terms and Conditions Page Styles */
.terms-content {
    padding: 2rem 1rem;
    margin-top: 80px;
}

.terms-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.terms-section h2 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.terms-section h3 {
    color: #1e40af;
    margin: 1.5rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.terms-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.terms-section ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.terms-section ul li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .terms-content {
        margin-top: 60px;
    }

    .terms-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .terms-section h3 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.75rem;
    }

    .terms-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .terms-section ul {
        padding-left: 1rem;
    }

    .terms-section ul li {
        padding-left: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

/* ...existing code... */

/* Contact Section Styles */
.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    min-height: calc(100vh - 280px);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

#contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #1d4ed8;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    #contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .submit-button {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    #contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
}

/* ...existing code... */

/* Contact Form File Upload Styles */

/* Update existing contact form styles */
#contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive adjustments for file upload */
@media (max-width: 768px) {
    .file-group {
        padding: 0.75rem;
    }

    .file-input::before {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .file-info {
        font-size: 0.75rem;
    }
}

/* ...existing code... */

/* Updated Contact Section Styles */
.contact-info {
    margin-bottom: 2.5rem;
}

.contact-notice {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.contact-notice p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-notice strong {
    color: #2563eb;
}

@media (max-width: 768px) {
    .contact-notice {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .contact-notice p {
        font-size: 0.9rem;
    }
}

/* ...existing code... */

/* Contact Options Styles */
.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.option-card h3 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.option-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.option-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.option-button:hover {
    background: #1d4ed8;
}

.back-to-options {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-options:hover {
    color: #1d4ed8;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.25);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 140, 126, 0.35);
}

@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .option-card {
        padding: 1.5rem;
    }

    .option-icon {
        font-size: 2rem;
    }

    .option-card h3 {
        font-size: 1.25rem;
    }
}

/* ...existing code... */

/* Prevent zoom on focus */
input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    touch-action: manipulation;
}

@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ...existing code... */

/* Enhanced Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    background-color: #f3f4f6;
    will-change: opacity;
}

img.loaded {
    opacity: 1;
}

.image-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.image-error {
    opacity: 0.5;
    filter: grayscale(1);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ...existing code... */

.important-note {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.important-note + .important-note {
    margin-top: -0.5rem;
    border-top: none;
}

.important-note p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.important-note a {
    color: #664d03;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.important-note a:hover {
    color: #463502;
}

/* Responsive adjustments for the note */
@media (max-width: 768px) {
    .important-note {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .important-note p {
        font-size: 0.9rem;
    }
}

/* ...existing code... */

/* Reemplazar cualquier uso de -ms-high-contrast con el nuevo estándar */
@media (forced-colors: active) {
    /* Estilos para modo de alto contraste */
    .button,
    .nav-link,
    .logo {
        forced-color-adjust: none;
    }
}

/* ...existing code... */

/* Actualización para el modo de alto contraste */
@media (forced-colors: active) {
    /* Estilos globales para modo de alto contraste */
    .button,
    .nav-link,
    .logo,
    .cta-button,
    .join-button,
    .payment-icon,
    .hamburger span {
        forced-color-adjust: none;
    }
    
    /* Ajustes específicos para el iframe de YouTube */
    .video-container iframe {
        forced-color-adjust: none;
        border: 1px solid ButtonText;
    }
}

/* Optimizar animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ...existing code... */

/* Filter Styles */
.filter-count {
    margin: 1rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Product Card Animations */
.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.products-grid {
    transition: opacity 0.3s ease;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #4b5563;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Filter Responsiveness */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-count {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* ...existing code... */

/* Coupon Styles */
.coupon-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
}

.apply-coupon-btn {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.apply-coupon-btn:hover {
    background: #1d4ed8;
}

.apply-coupon-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.coupon-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.coupon-message.success {
    color: #059669;
}

.coupon-message.error {
    color: #dc2626;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 1.5rem;
}

.discounted-price {
    color: #059669;
    font-size: 2rem;
    font-weight: bold;
}

/* ...existing code... */

/* Best Seller Styles */
.best-seller {
    position: relative;
    border: 2px solid #2563eb;
    transform: scale(1.02);
    z-index: 1;
}

.best-seller-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2563eb;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.best-seller:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* New Product Styles */
.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fafffb;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.new-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fafffb;
    box-shadow: 0 0 0 6px rgba(250, 255, 251, 0.15);
}

/* ...existing code... */

/* Low Stock Styles */
.low-stock {
    position: relative;
    border: 2px solid #dc2626;
}

.low-stock-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc2626;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Ajuste para cuando hay tanto best-seller como low-stock */
.best-seller.low-stock .best-seller-badge {
    right: auto;
    left: -10px;
}

/* Out of Stock Styles */
.out-of-stock {
    position: relative;
    opacity: 0.6;
    filter: grayscale(50%);
    pointer-events: none;
}

.out-of-stock-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #6b7280;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

/* Disabled button styles */
.buy-button.disabled {
    background: #9ca3af !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.buy-button.disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
}

/* ...existing code... */

/* Most Requested Styles */
.most-requested {
    position: relative;
    border: 2px solid #0891b2;
    transform: scale(1.02);
    z-index: 1;
}

.most-requested-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0891b2;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.most-requested:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(8, 145, 178, 0.2);
}

/* Ajuste para cuando hay múltiples badges */
.most-requested.best-seller .most-requested-badge {
    right: auto;
    left: -10px;
}

/* Mercado Libre Official Styles */
.mercado-libre {
    position: relative;
    border: 2px solid #FFE600;
}

.mercado-libre-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #FFE600;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

/* Ajustes para múltiples badges con Mercado Libre */
.mercado-libre.best-seller .best-seller-badge {
    right: -10px;
    left: auto;
}

.mercado-libre.most-requested .most-requested-badge {
    right: -10px;
    left: auto;
}

.mercado-libre.low-stock .low-stock-badge {
    right: -10px;
    left: auto;
}

/* ...existing code... */

/* Base styles for larger screens */
@media screen and (min-width: 1024px) {
    /* Ajuste del tamaño base para escritorio */
    html {
        font-size: 14px; /* Reducido de 16px a 14px para escritorio */
    }

    /* Ajustes del header para escritorio */
    .header {
        height: 70px; /* Reducido de 80px */
    }

    .logo object,
    .logo img {
        max-width: 280px; /* Reducido de 350px */
    }

    /* Ajustes del hero para escritorio */
    .hero h1 {
        font-size: 2.8rem; /* Reducido de 3.5rem */
    }

    .hero p {
        font-size: 1.1rem; /* Reducido de 1.25rem */
    }

    /* Ajustes de la sección de productos */
    .product-card {
        font-size: 0.95rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    /* Ajustes del footer */
    .payment-icon {
        height: 35px; /* Reducido de 40px */
    }

    /* Ajustes de contenedores */
    .container {
        max-width: 1140px; /* Ajustado para mejor visualización en escritorio */
        padding: 0 1.5rem;
    }
}

/* Ajustes adicionales para pantallas muy grandes */
@media screen and (min-width: 1440px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 1320px;
    }
}

/* ...existing code... */

/* GTA Instructions Page Styles */
.gta-content {
    padding: 2rem 1rem;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .gta-content {
        margin-top: 60px;
    }
}

/* ...existing code... */

/* GTA Instructions Styles */
.instructions-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.instructions-section h2 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.step-by-step ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.step-by-step li {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.step-by-step a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.step-by-step a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.instruction-image {
    margin: 2rem 0;
    text-align: center;
}

.guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.additional-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.additional-info p {
    color: #4b5563;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-section {
        padding: 1.5rem;
    }

    .instructions-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .instruction-image {
        margin: 1.5rem 0;
    }
}

/* ...existing code... */

/* System Requirements Styles */
.system-requirements-container {
    margin: 1.5rem 0;
}

.show-requirements-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.show-requirements-btn:hover {
    background: #1d4ed8;
}

.system-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.requirements-section {
    margin-bottom: 1.5rem;
}

.requirements-section:last-child {
    margin-bottom: 0;
}

.requirements-section h4 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.requirements-section li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.requirements-section li strong {
    color: #1f2937;
    margin-right: 0.5rem;
}

/* ...existing code... */

/* ...existing code... */

.os-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #856404;
    font-size: 1rem;
    text-align: center;
}

.os-warning strong {
    color: #664d03;
}

/* ...existing code... */

/* ...existing code... */

/* Minecraft Instructions Styles */
.minecraft-content {
    padding: 2rem 1rem;
    margin-top: 80px;
}

.minecraft-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.option-block {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.option-block h3 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.option-block ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.option-block li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.option-block a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.option-block a:hover {
    text-decoration: underline;
}

.instruction-image {
    margin: 2rem 0;
    text-align: center;
}

.guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.additional-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.additional-info p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments for Minecraft instructions */
@media (max-width: 768px) {
    .minecraft-content {
        margin-top: 60px;
    }

    .option-block {
        padding: 1.25rem;
    }

    .instruction-image {
        margin: 1.5rem 0;
    }
}

/* ...existing code... */

/* ...existing code... */

.instructions-content {
    padding: 2rem 1rem;
    margin-top: 120px; /* Añadir este margen superior */
}

/* ...existing code... */

/* Shipping Info Styles */
.shipping-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.shipping-info h3 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.shipping-info p {
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.shipping-info .important-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.shipping-info .important-note p {
    color: #856404;
    margin: 0;
}

/* Responsive adjustments for shipping info */
@media (max-width: 768px) {
    .shipping-info {
        padding: 1rem;
        margin: 1rem 0;
    }

    .shipping-info h3 {
        font-size: 1.1rem;
    }
}

/* ...existing code... */

/* ...existing code... */

/* Product Gallery Styles */
.product-gallery {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 400px;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #2563eb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background: #2563eb;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2563eb;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

@media (max-width: 768px) {
    .gallery-slide {
        height: 300px;
    }
    
    .gallery-button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* ...existing code... */

/* ...existing code... */

.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7D2AE8 0%, #00C4CC 100%);
    color: white;
    text-align: center;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 2rem auto;
    max-width: 320px;
    width: fit-content;
    min-width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(125, 42, 232, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* ...existing code... */

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    max-width: 90%;
    width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.popup.show .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.popup-header {
    margin-bottom: 1rem;
}

.popup-header h3 {
    color: #2563eb;
    margin: 0;
    font-size: 1.5rem;
}

.popup-body {
    color: #4b5563;
    line-height: 1.6;
}

.popup-body p {
    margin: 0;
}

/* ...existing code... */

/* Reviews Banner Styles */
.reviews-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 2.5rem 0;
    margin: 2rem 0;
    color: white;
}

.reviews-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.reviews-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
}

.reviews-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.reviews-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reviews-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .reviews-content {
        flex-direction: column;
        text-align: center;
    }

    .reviews-text h3 {
        font-size: 1.5rem;
    }

    .reviews-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .reviews-button {
        width: 100%;
        text-align: center;
    }
}

/* ...existing code... */

/* Estilos del Modal de Compra */
.purchase-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #000;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: #2563eb;
}

.product-title {
    margin: 0;
    font-weight: 600;
    color: #4b5563;
}

#purchaseForm .form-group {
    margin-bottom: 1.25rem;
}

#purchaseForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

#purchaseForm input[type="text"],
#purchaseForm input[type="email"],
#purchaseForm input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#purchaseForm input[type="text"]:focus,
#purchaseForm input[type="email"]:focus,
#purchaseForm input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#purchaseForm button {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

#purchaseForm button:hover {
    background: #1d4ed8;
}

.purchase-info-message {
    background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
    color: #0a2a66;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #c9dcff;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.purchase-info-message p {
    margin: 6px 0;
}

.purchase-info-message a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.purchase-info-message a:hover {
    text-decoration: underline;
}

.delivery-confirmation,
.terms-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #f2f6ff;
    border: 1px solid #c9dcff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    color: #102348;
    font-size: 0.92rem;
    line-height: 1.5;
}

.delivery-confirmation input[type="checkbox"],
.terms-confirmation input[type="checkbox"] {
    margin-top: 4px;
    min-width: 18px;
    min-height: 18px;
}

.delivery-confirmation label,
.terms-confirmation label {
    cursor: pointer;
    flex: 1;
}

.terms-confirmation a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.terms-confirmation a:hover {
    text-decoration: underline;
}

.modal-loading {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ajustes responsivos para el modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5vh auto;
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }

    #purchaseForm input[type="text"],
    #purchaseForm input[type="email"],
    #purchaseForm input[type="tel"] {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .purchase-info-message {
        font-size: 0.9rem;
        padding: 12px;
    }

    .delivery-confirmation,
    .terms-confirmation {
        font-size: 0.88rem;
        padding: 12px;
        gap: 12px;
    }
    
    #purchaseForm button {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Affiliate Product Styles */
.affiliate-pricing {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.original-price-info {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.original-price {
    text-decoration: line-through;
    font-weight: bold;
    color: #dc3545;
}

.discount-info {
    margin: 0.5rem 0;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

.installments-info {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #28a745;
    font-weight: 600;
}

.affiliate-button {
    background: linear-gradient(135deg, #fff200, #ffeb3b) !important;
    color: #333 !important;
    border: 2px solid #ffc107 !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.affiliate-button:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffc107) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Product Specifications Styles */
.product-specifications {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-specifications h3 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.spec-item {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #2563eb;
    font-size: 0.9rem;
}

.spec-item strong {
    color: #2563eb;
    display: block;
    margin-bottom: 0.25rem;
}

/* Package Contents Styles */
.package-contents {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #28a745;
}

.package-contents h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.includes-list {
    list-style: none;
    padding: 0;
}

.includes-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #2d5a3d;
}

.includes-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Color Selection Styles */
.color-selection {
    margin: 1.5rem 0;
}

.color-selection h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.color-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    overflow: hidden;
}

.color-option:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.color-option.selected {
    border-color: #007bff;
    border-width: 3px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.color-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.color-name {
    display: none; /* Hide the text, only show image like in Mercado Libre */
}

/* Installments and discount styles */
.installments-info {
    color: #28a745;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Plan Selection Styles */
.plan-selection {
    margin: 2rem 0;
}

.plan-selection h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.plan-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.plan-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.plan-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.plan-option.selected .plan-name {
    color: #007bff;
}

.plan-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.2rem;
}

.plan-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.plan-option.selected .plan-description {
    color: #555;
}

/* Responsive adjustments for affiliate products */
@media (max-width: 768px) {
    .affiliate-pricing {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .spec-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .product-specifications,
    .package-contents {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .affiliate-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .discount-badge {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .original-price-info,
    .installments-info {
        font-size: 0.85rem;
    }
}

/* ==========================================
   SISTEMA DE COMPARTIR PRODUCTOS
   ========================================== */

/* Animaciones para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Botón de compartir en modal */
.share-product-btn {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #4c63d2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-product-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: left 0.5s;
}

.share-product-btn:hover::before {
    left: 100%;
}

.share-product-btn:hover {
    background: linear-gradient(145deg, #5a67d8 0%, #6b46c1 50%, #4338ca 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.share-product-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.share-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.share-product-btn:hover .share-icon svg {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.share-text {
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 600;
}

.product-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    z-index: 2;
}

.product-action-stack .buy-button,
.product-action-stack .whatsapp-button,
.product-action-stack .affiliate-button,
.product-action-stack .share-product-btn {
    width: 100%;
    margin-top: 0;
}

/* Estado de carga del botón */
.share-product-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.share-product-btn.loading .share-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive para botón de compartir */
@media (max-width: 768px) {
    .share-product-btn {
        padding: 0.9rem 1.3rem;
        font-size: 0.95rem;
        border-radius: 10px;
        margin-top: 1.2rem;
    }
    
    .share-icon {
        font-size: 1.1rem;
    }
    
    .share-text {
        font-size: 0.95rem;
    }
}

/* Contenedor de acciones del producto */
.product-actions {
    margin-top: 0.75rem;
    width: 100%;
}

/* Responsive para botón de compartir */
@media (max-width: 768px) {
    .share-product-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .share-icon {
        font-size: 0.9rem;
    }
    
    .share-text {
        font-size: 0.8rem;
    }
}

/* Notificación de compartir */
.share-notification {
    font-size: 0.95rem;
    border-left: 4px solid #45a049;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.share-notification.success {
    border-left-color: #48bb78;
    background: rgba(240, 253, 244, 0.95);
}

.share-notification.loading {
    border-left-color: #4299e1;
    background: rgba(237, 250, 255, 0.95);
}

.share-notification.error {
    border-left-color: #f56565;
    background: rgba(254, 235, 235, 0.95);
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}

/* ==========================================
   MODAL DE DETALLE DE PRODUCTO
   ========================================== */

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.product-detail-info h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.product-detail-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
    margin: 0 0 1rem 0;
}

.product-detail-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-actions .buy-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-detail-actions .buy-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.auto-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.75);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auto-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.auto-popup-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.auto-popup-content img {
    display: block;
    width: 100%;
    height: auto;
}

.auto-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.auto-popup-close:hover {
    background: rgba(79, 70, 229, 0.9);
    transform: translateY(-1px);
}

.auto-popup-close:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.25rem;
    }
    
    .product-detail-price {
        font-size: 1.1rem;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
}

/* Floating WhatsApp bubble */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #25d366, #128c7e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 35px rgba(18, 140, 126, 0.4);
    z-index: 1200;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float-message {
    position: absolute;
    top: 50%;
    right: 72px;
    padding: 0.5rem 0.85rem;
    background: #ffffff;
    color: #0f5132;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(15, 81, 50, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    --message-transform-base: translateY(-50%);
    transform: var(--message-transform-base);
    animation: whatsappMessageSlide 6s ease-in-out infinite;
}

.whatsapp-float-message::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 6px 6px 15px rgba(15, 81, 50, 0.1);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 45px rgba(18, 140, 126, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 18px 35px rgba(18, 140, 126, 0.4);
    }
    50% {
        box-shadow: 0 22px 45px rgba(18, 140, 126, 0.55);
    }
}

@keyframes whatsappMessageSlide {
    0%, 60%, 100% {
        opacity: 0;
        transform: var(--message-transform-base) translateX(10px) scale(0.98);
    }
    10%, 50% {
        opacity: 1;
        transform: var(--message-transform-base) translateX(0) scale(1);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
    .whatsapp-float-message {
        top: auto;
        bottom: 64px;
        right: 0;
        --message-transform-base: translateY(0);
    }
    .whatsapp-float-message::after {
        top: auto;
        bottom: -6px;
        right: 16px;
    }
}

/* ...existing code... */
