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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Colors and Variables */
:root {
    --primary: #0066ff;
    --accent: #00bcd4;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --card-foreground: #1e293b;
    --destructive: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --green: #22c55e;
}

/* Typography */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

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

.accent-text {
    color: var(--accent);
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-whatsapp {
    background-color: var(--green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-full {
    width: 100%;
}

/* Animations and Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo .logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 4rem;
    background: linear-gradient(135deg, #0066ff 0%, #00bcd4 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    color: white;
    text-align: center;
}

.hero-titles {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-illustration {
    display: none;
}

.illustration {
    position: relative;
    width: 24rem;
    height: 24rem;
}

.illustration-bg-1 {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
}

.illustration-bg-2 {
    position: absolute;
    inset: 2rem;
    background: rgba(0, 188, 212, 0.2);
    border-radius: 50%;
    filter: blur(2rem);
}

.illustration-center {
    position: absolute;
    inset: 4rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-icon {
    width: 8rem;
    height: 8rem;
    color: white;
}

.floating-dot {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.dot-1 {
    top: 1rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent);
    animation-delay: 0s;
}

.dot-2 {
    bottom: 2rem;
    left: 2rem;
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    animation-delay: 1s;
}

.dot-3 {
    top: 50%;
    left: 1rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-illustration {
        display: flex;
        justify-content: center;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.service-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Systems Section */
.systems {
    padding: 6rem 0;
    background-color: white;
}

.systems-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.system-card {
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.system-content {
    padding: 2rem;
}

.system-image-wrapper {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.system-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.system-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gradient-primary-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.gradient-green-primary {
    background: linear-gradient(135deg, var(--green), var(--primary));
}

.system-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.system-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin-bottom: 1rem;
}

.system-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.system-features {
    margin-bottom: 2rem;
}

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

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 1024px) {
    .systems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--muted);
}

.about-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-stat-label {
    color: var(--muted-foreground);
}

.about-advantages {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.advantages-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1.5rem;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.advantage-title {
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.25rem;
}

.advantage-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: white;
}

.contact-content {
    display: grid;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-form-wrapper {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--card-foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 5rem;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.contact-method-title {
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.25rem;
}

.contact-method-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2rem;
    border-radius: 1rem;
    color: white;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    color: #9ca3af;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.floating-whatsapp i {
    width: 1.5rem;
    height: 1.5rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1100;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design Fixes */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .floating-whatsapp,
    .toast {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0 !important;
    }
}