/* CSS Principal - Mi Tienda TikTok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animación pulse para elementos llamativos */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animación de latido para botones */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.main-header {
    background: white;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

/* Imágenes del header */
.header-logo {
    text-align: center;
    background: white;
    padding: 0;
}

.logo-cabezal {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.product-header-image {
    text-align: center;
    background: white;
    padding: 2rem 2rem;
    margin: 0;
}

.imagen-producto-header {
    max-width: calc(100% - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.imagen-producto-header:hover {
    transform: scale(1.05);
}

/* Responsive para móviles - más específico */
@media (max-width: 768px) {
    .header-images-section .container {
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .product-header-image {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 2rem 3rem !important;
        margin: 0 !important;
    }
    
    .imagen-producto-header {
        max-width: calc(100vw - 6rem) !important;
        width: auto !important;
        border-radius: 15px !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .product-header-image {
        padding: 1.5rem 2rem !important;
    }
    
    .imagen-producto-header {
        max-width: calc(100vw - 4rem) !important;
    }
}

.price-header-image {
    text-align: center;
    background: white;
    padding: 0;
    border-radius: 15px;
    margin: 0;
}

.imagen-precio-header {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

/* Botón WhatsApp personalizado */
.whatsapp-btn-custom:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

/* Responsive para móviles para el botón */
@media (max-width: 768px) {
    .whatsapp-btn-custom {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}

.logo h1 a {
    text-decoration: none;
    color: #333;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: none;
}

.main-nav {
    width: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.main-nav a:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.whatsapp-nav {
    background: #25D366 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Logo Main Section */
.logo-main-section {
    background: white;
    padding: 1.5rem 0 0.5rem 0;
    text-align: center;
}

.logo-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-block;
}

.main-logo {
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #009cfe 0%, #0078d4 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255,71,87,0.4);
}

.trending-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #2ed573;
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #999;
}

.product-benefits {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.benefit {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #009cfe 0%, #0078d4 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 156, 254, 0.4);
}

/* Trust Section */
.trust-section {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.trust-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.trust-item p {
    color: #666;
}

/* Footer */
.main-footer {
    background: #009cfe;
    color: white;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.guarantees {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.tiktok { background: #ff0050; }
.social-link.instagram { background: #e4405f; }
.social-link.facebook { background: #1877f2; }
.social-link.whatsapp { background: #25D366; }

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge {
    background: #444;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* === BOTÓN PRINCIPAL WHATSAPP - CSS INDEPENDIENTE === */
.whatsapp-main-btn {
    background: #25D366 !important;
    color: white !important;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0 !important;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    height: 80px;
    width: calc(100% + 1rem);
    padding: 0 1rem !important;
    margin: 0 !important;
    text-align: center;
    border: none;
    overflow: hidden;
    min-width: 320px;
}

.whatsapp-main-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.whatsapp-main-btn img {
    width: 45px;
    height: 45px;
    padding: 0 !important;
    margin: 0 0.5rem 0 0 !important;
    flex-shrink: 0;
}

.whatsapp-main-btn span {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2;
    flex-shrink: 0;
    flex-grow: 1;
    text-align: center;
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === BOTÓN FLOTANTE WHATSAPP - CSS COMPLETAMENTE INDEPENDIENTE === */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: #25D366;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    height: 80px;
    max-width: 468px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border: none;
}

.floating-whatsapp-btn.show {
    display: flex;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.floating-whatsapp-btn img {
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
}

/* === BOTÓN DE PRUEBA WHATSAPP - CSS INDEPENDIENTE === */
.whatsapp-test-btn {
    background: #25D366 !important;
    color: white !important;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem !important;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
    animation: heartbeat 2s infinite;
    height: 80px;
    max-width: 468px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border: none;
}

.whatsapp-test-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.whatsapp-test-btn img {
    width: 35px;
    height: 35px;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.whatsapp-test-btn span {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* WhatsApp Float - VIEJO (mantener para compatibilidad si existe) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-logo {
        margin-bottom: 0.5rem;
    }
    
    .logo-cabezal {
        max-width: 150px;
    }
    
    .main-logo {
        max-width: 220px;
    }
    
    .logo-main-section {
        padding: 1rem 0 0.25rem 0;
    }
    
    .logo-container {
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .imagen-producto-header {
        max-width: 200px;
    }
    
    .imagen-precio-header {
        max-width: 180px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float-btn .whatsapp-text {
        display: none;
    }
}
