/* Archivo: styles.css */
/* --- Tipografía --- */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  margin: 0.5em 0;
}
p {
  margin: 0.5em 0 1em;
}
/* --- Navegación --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f8f8;
  padding: 0.5em 1em;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo a {
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 700;
  color: #222;
}
.nav-links a {
  display: inline-block;
  margin-left: 1em;
  text-decoration: none;
  color: #555;
  font-weight: 600;
}
.nav-links a:hover {
  color: #000;
}
.icon {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
}
/* Menú móvil: oculta enlaces, muestra icono */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active { display: block; }
  .nav-links a { display: block; margin: 0.5em 0; }
  .icon { display: block; }
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 4em 1em;
  background: linear-gradient(135deg, #a2d5f2 0%, #07689f 100%);
  color: white;
}
.hero h1 { font-size: 2.5em; }
.hero p { font-size: 1.2em; max-width: 600px; margin: 0.5em auto 1.5em; }
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  background-color: #ffbc42;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #e0a800;
}

/* Animación fade-in en carga (CSS) */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Sección Características --- */
.features {
  padding: 3em 1em;
  background: #f0f0f0;
  text-align: center;
}
.features h2 { margin-bottom: 1em; }
.feature-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}
.feature-item {
  flex: 1 1 200px;
  max-width: 300px;
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.feature-item i.material-icons {
  font-size: 2em;
  color: #07689f;
}
.feature-item h3 { margin-top: 0.5em; font-size: 1.2em; }
.feature-item p { font-size: 0.95em; }

/* --- Sección Precios --- */
.pricing {
  padding: 3em 1em;
  text-align: center;
}
.pricing h2 { margin-bottom: 1.5em; }
.pricing-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}
.pricing-card {
  flex: 1 1 200px;
  max-width: 300px;
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  border: 2px solid #eee;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.pricing-card.popular {
  border-color: #ffbc42;
}
.pricing-card h3 { margin: 0.5em 0; font-size: 1.3em; }
.pricing-card .price {
  font-size: 2em;
  color: #07689f;
  margin: 0.5em 0;
}
.pricing-card p { font-size: 0.95em; }

/* --- Sección FAQ --- */
.faq {
  padding: 2em 1em;
  background: #f8f8f8;
}
.faq h2 { text-align: center; margin-bottom: 1em; }
details {
  margin: 0.5em auto;
  max-width: 600px;
  text-align: left;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5em;
  background: #eee;
  border-radius: 4px;
}
details[open] summary { background: #ddd; }

/* --- Sección Contacto --- */
.contact {
  padding: 3em 1em;
  text-align: center;
}
.contact h2 { margin-bottom: 1em; }
.contact form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.contact label {
  display: block;
  margin: 0.5em 0 0.2em;
  font-weight: 600;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 0.7em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
.contact textarea { resize: vertical; height: 100px; }
.contact button {
  margin-top: 1em;
  padding: 0.8em 1.5em;
  background: #07689f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.contact button:hover {
  background: #055a85;
}

/* --- Pie de página --- */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}
footer p { margin: 0.5em 0; }
footer nav a {
  color: #aaa;
  text-decoration: none;
  margin: 0 0.5em;
}
footer nav a:hover {
  color: white;
}
