/* Estilos base - ImpulsoApps */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #10b981;
  --color-dark: #1f2937;
  --color-darker: #111827;
  --color-light: #f3f4f6;
  --color-white: #ffffff;
  --text-color: #374151;
  --text-muted: #6b7280;
  --border-radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
}

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

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

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Menú móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0;
}

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

.nav-toggle.active {
  display: inline-block;
}

/* Menú móvil - visible solo cuando tiene clase active en padre */
.nav-menu.active {
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  gap: 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-darker);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.marca {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 101;
  }

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

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

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

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

.btn-secondary:hover {
  background: var(--color-darker);
}

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

.btn-contact:hover {
  filter: brightness(0.9);
}

/* Acciones */
.actions {
  margin: 2rem 0;
  text-align: center;
}

/* Features */
.features {
  padding: 4rem 0;
  background: var(--color-light);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Lists */
.product-list, .services-list {
  padding: 4rem 0;
}

.product-list h2,
.services-list h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.product-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card,
.service-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.product-card h3,
.service-card h3 {
  font-size: 1.25rem;
  color: var(--color-darker);
  margin-bottom: 0.5rem;
}

.product-card p,
.service-card p {
  margin-bottom: 0.25rem;
}

.product-card .details,
.service-card .details {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA */
.cta {
  background: var(--color-light);
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 2rem;
  border-radius: var(--border-radius);
}

.cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .nav-menu {
    gap: 1rem;
  }

  .features-grid,
  .product-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilidades */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
