* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  position: relative;
  height: 900px;
  background: url("../resources/fondo.jpg") no-repeat center center/cover;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
}

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: 6rem;
  margin-bottom: 1.5rem;
}

.button {
  background-color: #ff6347;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.button:hover {
  background-color: #ff4500;
}

.banner {
  position: relative;
  top: -75px;
  z-index: 2;
  width: 50%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: url("../resources/fondo-banner.png") no-repeat center/cover;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
}

.banner a {
  color: orangered;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.banner a:hover {
  text-decoration: underline;
}

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5%;
  margin-left: 200px;
  margin-right: 200px;
}

.section .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section .text {
  flex: 1;
  text-align: center;
}

.section .text h1 {
  font-size: 3.5rem;
  color: orange;
  margin-bottom: 1rem;
}

.section .text span {
  color: orange;
}

.section .text p {
  font-size: 1.4rem;
  line-height: 1.5;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
}

.section.alternate {
  flex-direction: row-reverse;
}

.section.alternate .text h1 {
  font-size: 3.5rem;
  color: orange;
  margin-bottom: 1rem;
  text-align: center;
}

.section.alternate .text h2 {
  font-size: 2rem;
  margin-top: 30px;
  color: orange;
}

.section.alternate .text p {
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: justify;
}

.section.alternate .text .sentence {
  color: orange;
  font-weight: bold;
}

.section.alternate .image img {
  width: 100%;
  padding: 0px 150px;
  margin-top: -150px;
  margin-bottom: -150px;
  scale: 1.1;
}

.services {
  padding: 4rem 5%;
  text-align: center;
}

.services h2 {
  font-size: 3rem;
  color: orange;
  margin-bottom: 2rem;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  max-width: 320px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item img {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.service-item p {
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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);
}

@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-nav {
    justify-content: center;
  }
}
