/* ==========================================
   RESET Y VARIABLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #f8fafc;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */

.products {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   PRODUCT SHOWCASE
   ========================================== */

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================
   PRODUCT MAIN (Izquierda)
   ========================================== */

.product-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-brand {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.tcl-logo {
    width: 120px;
    height: auto;
    transition: var(--transition);
}

.tcl-logo:hover {
    transform: scale(1.05);
}

.product-model-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.product-model-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px;
    position: relative;
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    transition: var(--transition);
}

.product-image:hover {
    transform: scale(1.03);
}

/* ==========================================
   BTU SELECTOR - ULTRA COMPACTO
   ========================================== */

.btu-selector {
    text-align: center;
}

.btu-selector h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.btu-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.btu-btn {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btu-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btu-btn.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btu-btn.active::before {
    opacity: 1;
}

.btu-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.btu-btn.active .btu-num,
.btu-btn.active .btu-sub {
    color: white;
}

.btu-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* ==========================================
   PRODUCT DETAILS (Derecha)
   ========================================== */

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Precio */
.product-price-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--light-gray);
}

.price-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.price-note {
    font-size: 1rem;
    color: #059669;
    font-weight: 600;
}

/* Especificaciones - ULTRA COMPACTAS */
.product-specs {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--light-gray);
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 0.4rem;
}

.spec-row:last-child {
    margin-bottom: 0;
}

.spec-row:hover {
    background: var(--light);
}

.spec-icon {
    font-size: 1.3rem;
    min-width: 30px;
}

.spec-content {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex: 1;
}

.spec-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
    transition: opacity 0.3s ease;
}

/* Botones de Acción */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-primary-product {
    background: var(--gradient-blue);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-whatsapp-product {
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #20c05c;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 6rem 1.5rem 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .product-showcase {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .btu-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-price {
        font-size: 2.5rem;
    }

    .spec-content {
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 5rem 1rem 2rem 1rem;
    }

    .section-tag {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .tcl-logo {
        width: 90px;
    }

    .product-showcase {
        padding: 1rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .price-note {
        font-size: 0.9rem;
    }

    .btu-num {
        font-size: 1.3rem;
    }

    .btu-sub {
        font-size: 0.75rem;
    }

    .btu-btn {
        padding: 0.7rem 0.4rem;
    }

    .product-specs {
        padding: 1rem;
    }

    .spec-row {
        padding: 0.5rem;
    }

    .spec-icon {
        font-size: 1.2rem;
        min-width: 25px;
    }

    .spec-label,
    .spec-value {
        font-size: 0.85rem;
    }

    .btn-primary-product,
    .btn-whatsapp-product {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .product-actions {
        gap: 0.6rem;
    }
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-showcase {
    animation: fadeInUp 0.6s ease;
}