/* Futuristic Marketplace - Modern & Professional Design */

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Dark Mode Colors (Default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Light Mode Colors */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --dark-border: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.lead-magnet-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-magnet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.lead-magnet-content {
    position: relative;
    background: var(--bg-primary);
    color: var(--text-primary);
    max-width: 500px;
    width: 90%;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--dark-border);
    animation: slideUp 0.5s ease-out;
}

.lead-magnet-header h3 {
    color: var(--success);
}

.lead-magnet-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.lead-magnet-form input {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--dark-border);
}

.lead-magnet-form input::placeholder {
    color: var(--text-muted);
}

.lead-magnet-cta {
    background: var(--success) !important;
    color: white !important;
}

.lead-magnet-social-proof {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

/* WhatsApp Float Theme Support */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-text {
    text-align: left;
    color: white;
}

.whatsapp-title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
}

.whatsapp-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Urgency Counter Theme Support */
.urgency-counter {
    position: fixed;
    top: 6rem;
    right: 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    max-width: 250px;
    z-index: 9998;
    animation: urgencyPulse 3s infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.urgency-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.urgency-content {
    margin-bottom: 1rem;
}

.urgency-stock {
    text-align: center;
    margin-bottom: 0.5rem;
}

.stock-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stock-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.urgency-timer {
    text-align: center;
    font-size: 0.9rem;
}

.urgency-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.urgency-benefit {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-align: center;
}

/* Phone Prominent Theme Support */
.phone-prominent {
    position: fixed;
    top: 6rem;
    left: 2rem;
    z-index: 9997;
}

.phone-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.phone-info {
    text-align: left;
    color: white;
}

.phone-title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
}

.phone-number {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.phone-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Light Mode Adjustments for Floating Elements */
[data-theme="light"] .lead-magnet-content {
    background: white;
    color: #0f172a;
}

/* Lead Magnet Input Fields - Theme Aware */
.lm-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.lm-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lm-input::placeholder {
    color: var(--text-muted);
}

.lm-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lm-highlight {
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.lm-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lm-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lm-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.lm-close:hover {
    color: var(--text-primary);
}

.lead-magnet-header h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lead-magnet-header p {
    color: var(--text-muted);
}

[data-theme="light"] .benefit-item {
    background: #f8fafc;
    color: #475569;
}

[data-theme="light"] .lead-magnet-form input {
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
}

[data-theme="light"] .urgency-counter {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

[data-theme="light"] .phone-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Responsive adjustments for theme elements */
@media (max-width: 768px) {
    .lead-magnet-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .urgency-counter {
        top: auto;
        bottom: 6rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .phone-prominent {
        display: none;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-button {
        padding: 1rem;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .whatsapp-icon {
        margin-right: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navigation */
.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Light Mode Navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--dark-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-light);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.theme-toggle:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Theme Toggle Icon Animation */
.theme-toggle svg {
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle svg {
    transform: rotate(180deg);
}

/* Search bar */
.search-container {
    position: relative;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

/* Theme Toggle Button inside search */
.search-container .theme-toggle {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.search-container .theme-toggle:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.search-container .theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* SEO Optimized Hero Section */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

/* Platform Section */
.platform-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.platform-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.platform-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.platform-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.platform-pricing {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.price {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--dark-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.dashboard-preview {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
}

.preview-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-dots span:first-child {
    background: #ff5f57;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:nth-child(3) {
    background: #28ca42;
}

.preview-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: auto;
}

.preview-content {
    padding: 0;
    min-height: 250px;
    display: flex;
    gap: 0;
}

#leaflet-map {
    flex: 1;
    height: 250px !important;
    border-radius: 0 0 12px 12px;
}

/* Estilos para marcadores de Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 8px 12px;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-tip {
    background: white;
}

/* Estilos para controles del mapa */
.leaflet-control-container .leaflet-top.leaflet-left {
    top: 10px;
    left: 10px;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #333 !important;
    border: none !important;
    border-radius: 4px !important;
}

.leaflet-control-zoom a:hover {
    background: #f0f0f0 !important;
}

.preview-map {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.preview-sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-devices,
.preview-alerts {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

/* Blog Section */
.blog-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.blog-section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card Main */
.blog-card-main {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.blog-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-card-header p {
    opacity: 0.9;
}

.blog-card-body {
    padding: 2rem;
}

.blog-card-list {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-card-actions {
    display: flex;
    gap: 1rem;
}

.blog-card-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-card-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.blog-card-btn-primary {
    background: #0ea5e9;
    color: white;
}

.blog-card-btn-green {
    background: #10b981;
    color: white;
}

.blog-card-btn-orange {
    background: #f59e0b;
    color: white;
}

/* Blog Card Coming Soon */
.blog-card-coming-soon {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card-coming-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.blog-card-coming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-coming-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.blog-coming-item h4 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.blog-coming-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog Table Price Cells */
.blog-table td.price-green {
    font-weight: bold;
    color: #059669;
}

.blog-table td.price-red {
    font-weight: bold;
    color: #dc2626;
}

[data-theme="light"] .blog-table td {
    color: #1e293b;
}

[data-theme="light"] .blog-table th {
    color: #0f172a;
}

html.light .blog-table td {
    color: #1e293b !important;
}

html.light .blog-table th {
    color: #0f172a !important;
}

[data-theme="dark"] .blog-table td.price-green {
    color: #34d399;
}

[data-theme="dark"] .blog-table td.price-red {
    color: #f87171;
}

.blog-table .highlight-row td {
    background: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] .blog-table .highlight-row td {
    background: rgba(220, 38, 38, 0.2);
}

.blog-coming-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.benefit-item:nth-child(1)::before { background: #3b82f6; }
.benefit-item:nth-child(2)::before { background: #f59e0b; }
.benefit-item:nth-child(3)::before { background: #10b981; }
.benefit-item:nth-child(4)::before { background: #8b5cf6; }

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-item:nth-child(1) .benefit-icon { background: #eff6ff; }
.benefit-item:nth-child(2) .benefit-icon { background: #fffbeb; }
.benefit-item:nth-child(3) .benefit-icon { background: #f0fdf4; }
.benefit-item:nth-child(4) .benefit-icon { background: #faf5ff; }

[data-theme="dark"] .benefit-item:nth-child(1) .benefit-icon { background: rgba(59,130,246,0.15); }
[data-theme="dark"] .benefit-item:nth-child(2) .benefit-icon { background: rgba(245,158,11,0.15); }
[data-theme="dark"] .benefit-item:nth-child(3) .benefit-icon { background: rgba(16,185,129,0.15); }
[data-theme="dark"] .benefit-item:nth-child(4) .benefit-icon { background: rgba(139,92,246,0.15); }

.benefit-item h3 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.2;
}

.benefit-item p {
    color: var(--text-secondary) !important;
    line-height: 1.7;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .cta-button {
    background: white;
    color: var(--primary-color);
}

.cta-section .cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-section .cta-button.secondary:hover {
    background: white;
    color: var(--primary-color);
}

.cta-section .cta-button.secondary::before {
    content: "💬";
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.cta-section .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Footer responsive */
    footer {
        padding: 1.5rem 0;
    }
    
    footer .user-counter {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    footer .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    footer .social-links a {
        font-size: 1rem;
    }
    
    /* Map responsive */
    #leaflet-map {
        height: 200px !important;
    }
    
    /* Platform preview responsive */
    .dashboard-preview {
        max-width: 100%;
    }
    
    /* Service cards responsive */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Pricing responsive */
    .pricing-card {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .price {
        flex-direction: column;
        text-align: center;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    footer {
        padding: 1rem 0;
    }
    
    footer .social-links {
        gap: 0.8rem;
    }
}
.hero {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* App Store Section */
.app-store-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.app-store-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.05;
    z-index: 0;
}

.app-store-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.app-store-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-store-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.app-store-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.app-store-button img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 200px;
}

/* Animation for app store section */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive for app store section */
@media (max-width: 768px) {
    .app-store-section {
        padding: 3rem 0;
    }
    
    .app-store-container {
        padding: 0 1rem;
    }
    
    .app-store-title {
        font-size: 2rem;
    }
    
    .app-store-subtitle {
        font-size: 1rem;
    }
    
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .app-store-button img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .app-store-title {
        font-size: 1.5rem;
    }
    
    .app-store-subtitle {
        font-size: 0.9rem;
    }
    
    .app-store-button img {
        max-width: 160px;
    }
}

/* Product Grid */
.products-section {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card[href]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.product-card[href]:active {
    transform: translateY(-2px) scale(1.01);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--dark-bg);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
    
    .admin-auth-section {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
    
    .messages-section {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .contact-form-container,
    .contact-info-container,
    .admin-auth-section,
    .messages-section {
        padding: 1rem !important;
        margin: 0 0.5rem !important;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px !important; /* Previene zoom en iOS */
    }
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* File upload */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 2rem;
    background: var(--dark-bg);
    border: 2px dashed var(--dark-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        max-width: 100%;
        overflow-x: auto;
    }

    .nav-links li {
        white-space: nowrap;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
    }

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

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    /* Filtros responsive */
    .products-section {
        padding: 2rem 1rem;
    }

    .products-section > div[style*="margin-bottom"] {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .products-section > div[style*="display: flex"] > div[style*="display: flex"] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-select {
        width: 100% !important;
    }

    /* Contador de productos */
    .products-section > div[style*="display: flex"] > div:last-child {
        text-align: center;
        order: -1;
    }

    /* Contact form responsive */
    .products-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

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

    .product-card {
        margin: 0 0.5rem;
    }

    .form-container {
        margin: 0 0.5rem;
        padding: 1rem;
    }

    .products-section {
        padding: 1rem 0.5rem;
    }
}

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

/* Loading spinner */
.spinner {
    border: 3px solid var(--dark-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Product detail styles */
#productDetail {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
}

/* Product detail responsive */
@media (max-width: 768px) {
    .product-detail-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .product-detail-container > div:first-child {
        padding: 1rem !important;
    }
    
    .product-detail-container > div:last-child {
        padding: 1rem !important;
    }
    
    #mainImage {
        width: 100% !important;
        height: 250px !important;
        object-fit: contain !important;
    }
    
    .thumbnail {
        height: 60px !important;
    }
    
    .product-detail-container h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-detail-container div[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-detail-container p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .product-detail-container div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .product-detail-container div[style*="display: flex"] a,
    .product-detail-container div[style*="display: flex"] button {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    #mainImage {
        height: 200px !important;
    }
    
    .thumbnail {
        height: 50px !important;
    }
    
    .product-detail-container h1 {
        font-size: 1.25rem !important;
    }
    
    .product-detail-container div[style*="font-size: 2rem"] {
        font-size: 1.25rem !important;
    }
}

/* Image gallery styles */
.thumbnail {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

#mainImage {
    transition: opacity 0.3s ease;
}

/* Product image container */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.02);
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--success);
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
    color: var(--danger);
}

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

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

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

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