* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #212529;
  background-color: #f8f9fa;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background-color: #0d6efd;
  color: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
}
.logo span {
  color: #fff;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s;
}
nav a:hover {
  opacity: 0.8;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/1714208/pexels-photo-1714208.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 1rem;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: #0d6efd;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  margin: 0.5rem;
  transition: all 0.3s;
}
.btn:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid white;
}
.btn-outline:hover {
  background-color: white;
  color: #0d6efd;
}

/* Secciones */
.section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #0d6efd;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-10px);
}
.service-card img {
  height: 180px;
  object-fit: cover;
}
.service-content {
  padding: 1.5rem;
}
.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0d6efd;
}

/* Features */
.features {
  background-color: #e7f1ff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature {
  padding: 1.5rem;
}
.feature i {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}
.feature h3 {
  margin-bottom: 0.5rem;
}

/* Testimonios */
.testimonials {
  background-color: white;
}
.testimonial {
  background: #f1f7ff;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  text-align: right;
  margin-top: 0.5rem;
}

/* Alertas */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}
.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
form input, form textarea, form select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
form button {
  margin-top: 1rem;
}

/* CTA */
.cta {
  text-align: center;
  background-color: #0d6efd;
  color: white;
  padding: 5rem 1rem;
}
.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: #212529;
  color: white;
  padding: 3rem 5%;
  text-align: center;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}
.footer-links a {
  display: block;
  margin: 0.5rem 0;
  color: #adb5bd;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons a {
  color: white;
  font-size: 1.5rem;
}
.copyright {
  margin-top: 2rem;
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .section {
    padding: 3rem 5%;
  }
}