/* ===== Estilos personalizados ===== */

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.hero {
  text-align: center;
  background-color: #f5f5f5;
  padding: 80px 20px;
}

.hero-text {
  max-width: 600px;
  margin: auto;
}

.hero-img {
  max-width: 300px;
  margin-top: 20px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service {
  flex: 1 1 250px;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.service img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.about img {
  max-width: 300px;
  display: block;
  margin: 20px auto;
}

.btn {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
}

.btn:hover {
  background: #005fa3;
}

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #888;
}

/* Modo oscuro */
.dark {
  background-color: #121212;
  color: #eee;
}

.dark header,
.dark section,
.dark footer {
  background-color: #1e1e1e;
  color: #eee;
}

.dark .btn {
  background-color: #444;
  color: #fff;
}

.dark .btn:hover {
  background-color: #666;
}

.dark a {
  color: #8ab4f8;
}

.dark .service {
  background-color: #2a2a2a;
  border-color: #444;
}

.dark body {
  background-color: #121212;
  color: #eee;
}

/* Estilo general adaptable al tema */
.text-dynamic {
  color: #111; /* negro suave por defecto */
}

.dark .text-dynamic {
  color: #eee; /* blanco suave en modo oscuro */
}

.hero-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.hero-columns .hero-text,
.hero-columns .hero-image {
  flex: 1;
  width: 100%;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Estilo para escritorio */
@media (min-width: 768px) {
  .hero-columns {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-text {
    padding-right: 2rem;
  }

  .hero-image {
    max-width: 500px;
  }
}
