* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  position: relative;
  height: 500px;
  background: url("../resources/servicios-header.jpg") no-repeat center
    center/cover;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
}

nav {
  position: absolute;
  top: 25px;
  right: 100px;
  width: 100%;
  padding: 1rem 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: orange;
  font-weight: bold;
  font-size: 20px;
  transition: opacity 0.3s;
}

nav ul li a:hover {
  opacity: 0.7;
}

.overlay {
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.text-container p {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: orange;
}

.text-container h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

main {
  padding: 2rem 5%;
}

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service:nth-child(even) {
  background-color: #fafafa;
}

.service-text {
  flex: 1;
  padding: 1rem 2rem;
}

.service-text h2 {
  font-size: 2.5rem;
  color: orange;
  margin-bottom: 1rem;
}

.service-text p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1rem;
}

.service-text ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.service-text ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.service-image {
  flex: 1;
}

.service-image img {
  width: 100%;
  border-radius: 15px;
}

footer {
  background: linear-gradient(to top, #000000, #1a1a1a);
  color: #ddd;
  font-family: Arial, sans-serif;
  margin-top: 3rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 5%;
  border-bottom: 1px solid #333;
}

.footer-bottom {
  text-align: center;
  color: orange;
  padding: 15px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: orange;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
  color: #ffb366;
  border-bottom: 2px solid orange;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.footer-social a img {
  width: 20px;
  height: 20px;
}

.footer-social a:hover {
  background-color: orange;
  transform: scale(1.1);
}

footer a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-nav {
    justify-content: center;
  }
}
