/* =============================
   Fitovit Styles - Health Category
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-dark: #0A2E22; /* Verde muy oscuro, elegante */
    --primary: #1E4635;
    --accent: #D4AF37; /* Dorado premium */
    --accent-hover: #b5922b;
    --bg-light: #f8f9fa;
    --text-dark: #1f1f1f;
    --text-light: #f4f7f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
}
.btn-nav {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-nav:hover {
    background: var(--primary-dark);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 20px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 70vh;
}
.hero-content {
    flex: 1;
    max-width: 500px;
    animation: fadeIn 1s ease;
}
.badge-new {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 700;
}
.text-gold {
    color: var(--accent);
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}
.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}
.trust-icons-small {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    opacity: 0.8;
}

/* --- Hero Image with Glassmorphism --- */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 20px;
    
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Subtle border with gradient */
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Soft shadow for depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Smooth transition */
    transition: all 0.4s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-image img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
}

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


/* --- Generic Sections --- */
.section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}
.section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
}

/* --- Videos Section --- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.video-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover; /* Ensures video covers the area without distortion */
}

/* --- Productos --- */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.producto-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.producto-card::after {
    content: '👆 Clic para más info';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 70, 53, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.producto-card:hover::after {
    opacity: 1;
}
.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.badge-offer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.producto-card img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    background-color: white; /* Ensures consistency even with transparent images */
}
.producto-card h3 {
    color: var(--primary-dark);
    margin: 10px 0;
    font-size: 1.2rem;
}
.desc {
    font-size: 0.9rem;
    color: #666;
    min-height: 40px;
}
.price-container {
    margin: 15px 0;
    font-size: 18px;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 10px;
}
.new-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}
.btn-buy {
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-buy:hover {
    background: #1ebc57;
}

/* --- Footer --- */
.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
}
.footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.developer-credit {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}
.developer-credit a {
    font-weight: 600;
    color: var(--accent);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* =============================
   MODAL PREMIUM STYLES
   ============================= */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px 30px 30px;
    border-radius: 20px 20px 0 0;
    color: white;
    text-align: center;
    position: relative;
}

.modal-product-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-product-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.modal-product-brand {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    color: var(--accent);
}

/* Modal Body */
.modal-body {
    padding: 40px 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Benefits List */
.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-benefits li {
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.modal-benefits li:last-child {
    border-bottom: none;
}

/* Pricing Section */
.modal-pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.modal-pricing-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

.modal-pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pricing-option {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-option:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.pricing-option:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.pricing-option.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.pricing-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pricing-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}

.pricing-savings {
    font-size: 11px;
    color: #28a745;
    margin-top: 5px;
    font-weight: 600;
}

/* Radio button styling */
.pricing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pricing-option label {
    display: block;
    cursor: pointer;
}

/* Selected state */
.pricing-option.selected,
.pricing-option input[type="radio"]:checked + label {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(30, 70, 53, 0.25);
}

.pricing-option.selected .pricing-label,
.pricing-option input[type="radio"]:checked ~ .pricing-label {
    color: var(--primary-dark);
}

.pricing-option.selected .pricing-amount,
.pricing-option input[type="radio"]:checked ~ .pricing-amount {
    color: var(--primary);
}


/* How to Use */
.modal-howto {
    background: #f0f8f5;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.modal-howto-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 16px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.modal-btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.modal-btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #ddd;
}

.modal-btn-secondary:hover {
    background: white;
    border-color: var(--accent);
}

/* Scrollbar Styling for Modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-container {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 30px 20px 20px;
    }
    
    .modal-product-image {
        width: 150px;
        height: 150px;
    }
    
    .modal-product-name {
        font-size: 22px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-pricing-options {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 0 20px 20px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Animation for modal content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.active .modal-section {
    animation: fadeInUp 0.5s ease forwards;
}

.modal-overlay.active .modal-section:nth-child(1) { animation-delay: 0.1s; }
.modal-overlay.active .modal-section:nth-child(2) { animation-delay: 0.2s; }
.modal-overlay.active .modal-section:nth-child(3) { animation-delay: 0.3s; }
.modal-overlay.active .modal-section:nth-child(4) { animation-delay: 0.4s; }


