:root {
  --primary-color: #0066cc;
  --secondary-color: #00a0dc;
  --accent-color: #00c389;
  --text-color: #2c3e50;
  --bg-color: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-1000: #030712;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

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

.nav-logo-img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--secondary-color);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: var(--white);
}

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

.stat-item {
  padding: 2rem;
}

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

.stat-label {
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* Solutions Section */
.solutions-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.25rem;
}

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

.solution-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
}

.solution-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon i {
  color: var(--white);
  font-size: 1.5rem;
}

.solution-card h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.solution-features {
  list-style: none;
}

.solution-features li {
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.solution-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Tech Section */
.tech-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

/* About Section */
.about-section {
  background: linear-gradient(to bottom, #000000, #1a0000);
  padding: 4rem 0;
  border-top: 4px solid #ff0000;
  border-bottom: 4px solid #ff0000;
}

.about-section .section-header h2,
.about-section .section-header p {
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4rem 3rem;
  align-items: center;
  justify-items: center;
  padding: 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.tech-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.tech-icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.tech-item span {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--gray-50);
}

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

.contact-content h2 {
  font-size: 2.5rem;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.contact-content p {
  color: var(--gray-600);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gray-700);
}

.contact-item i {
  color: var(--primary-color);
}

.contact-item a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

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

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

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

.btn-contact {
  background-color: #0066cc;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
  display: inline-block;
  font-weight: 500;
}

.btn-contact:hover {
  background-color: #0052a3;
  color: #ffffff !important;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  background: var(--gray-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--white);
  margin-top: 1rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--gray-300);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--white);
}

/* Theme Toggle */
#theme-toggle {
  background: transparent;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  transition: color 0.2s;
}

#theme-toggle:hover {
  color: var(--primary-color);
}

/* Dark Mode */
.dark-mode {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-300: #64748b;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
}

.dark-mode .navbar {
  background: var(--bg-color);
  border-color: var(--gray-100);
}

.dark-mode .solution-card,
.dark-mode .contact-form {
  background: var(--gray-50);
}

/* Ajustes específicos para seções Technologies e About no modo dark */
.dark-mode .tech-section {
  background: var(--white);
}

.dark-mode .tech-section .section-header h2 {
  color: var(--text-color-dark, #1e293b);
}

.dark-mode .tech-section .section-header p {
  color: var(--gray-600-dark, #64748b);
}

.dark-mode .tech-item span {
  color: var(--text-color-dark, #1e293b);
}

.dark-mode footer {
  background: var(--gray-900);
}

.dark-mode .footer-brand p,
.dark-mode .footer-section h4,
.dark-mode .footer-bottom {
  color: var(--white);
}

.dark-mode .footer-section a {
  color: var(--white);
}

.dark-mode .footer-section a:hover {
  color: var(--gray-300);
}

.dark-mode .btn-contact {
  background-color: #0066cc;
  color: var(--white);
}

.dark-mode .btn-contact:hover {
  background-color: #0052a3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .stats-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    padding: 1rem 0;
  }
  
  .tech-icon {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

/* Dark Mode */
.dark-mode .about-section {
  background: linear-gradient(to bottom, #000000, #1a0000);
  border-top: 4px solid #ff0000;
  border-bottom: 4px solid #ff0000;
}

.dark-mode .about-section .section-header h2,
.dark-mode .about-section .section-header p {
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.contact-us-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.contact-us-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-us-content h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.contact-us-content p {
  color: #64748b;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.contact-us-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.contact-us-links a {
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.contact-us-links a:hover {
  color: #0066cc;
}

.dark-mode .contact-us-section {
  background: #f8fafc;
}

.dark-mode .contact-us-content h2 {
  color: #0f172a;
}

.dark-mode .contact-us-content p {
  color: #64748b;
}

.dark-mode .contact-us-links a {
  color: #334155;
}

.dark-mode .contact-us-links a:hover {
  color: #0066cc;
}

.tech-clouds {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
}

.tech-cloud {
    background: var(--white);
    border-radius: 50px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-cloud::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.5;
    pointer-events: none;
}

.tech-cloud:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tech-cloud h3 {
    color: var(--gray-800);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
}

.tech-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.8);
}

.tech-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tech-item span {
    color: var(--gray-700);
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Dark mode adjustments */
.dark-mode .tech-cloud {
    background: var(--gray-800);
}

.dark-mode .tech-cloud::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.dark-mode .tech-cloud h3 {
    color: var(--gray-100);
}

.dark-mode .tech-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .tech-item span {
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-cloud {
        padding: 2rem;
        border-radius: 30px;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
    }
}
