/*
Theme Name: ElectroTech - High Converting E-commerce Theme
Description: Un tema minimalista de WordPress optimizado para alta conversión en tiendas de electrónicos con WooCommerce y dropshipping. Incluye CTAs de urgencia y elementos de escasez para maximizar las ventas.
Author: Manus AI
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: electrotech
Tags: e-commerce, woocommerce, minimal, conversion-optimized, dropshipping, electronics
*/

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Variables CSS */
:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #ff4444;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --white: #ffffff;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: var(--font-size-sm);
    animation: pulse 2s infinite;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-base);
    line-height: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e63939;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #333;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

.btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

/* Elementos de Urgencia */
.urgency-banner {
    background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: 10px 0;
}

.stock-indicator.low-stock {
    background: #f8d7da;
    color: #721c24;
}

.stock-indicator.in-stock {
    background: #d4edda;
    color: #155724;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.countdown-item {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 60px;
}

.countdown-number {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.countdown-label {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 2;
}

.product-badge.sale {
    background: var(--danger-color);
}

.product-badge.new {
    background: var(--success-color);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-color);
}

.original-price {
    font-size: var(--font-size-base);
    color: var(--secondary-color);
    text-decoration: line-through;
}

.discount-percentage {
    background: var(--accent-color);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

