* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Gabarito", sans-serif;
  background-color: #fffcf9;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fffcf9;
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: top 0.3s ease;
}

.menu {
  position: fixed;
  top: 15px;
  left: 60px;
  z-index: 1100;
  font-size: 24px;
}

.redes {
  display: flex;
  gap: 30px;
  margin-right: 50px;
}

.redes a {
  text-decoration: none;
  color: #ffc208;
  font-size: 20px;
  transition: .2s linear;
}

.redes a:hover {
  color: #b202c2;
}

.hero {
  background-image: url('../img/rescate_sinlogo.JPG');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.527);
  background-blend-mode: darken;
}

.hero-text {
  display: flex;
  justify-content: left;
  align-items: center;
}

.hero-text h1 {
  font-size: 70px;
  margin: 150px 150px;
  color: #fffcf9;
}

@media(max-width: 1024px) {
  .hero-text h1 {
    font-size: 50px;
    margin: 100px 50px;
  }
}

@media(max-width: 768px) {
  .hero-text h1 {
    font-size: 35px;
    margin: 80px 20px;
  }
}

@media(max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
    margin: 60px 15px;
  }
}

button:not(:disabled) {
  color: #0c0c0c;
  background-color: #ffc208;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: "Gabarito";
  transition: .2s linear;
}

button:hover:not(:disabled) {
  color: #fffcf9;
  background-color: #b202c2;
}

button:disabled {
  margin-bottom: 5px;
  color: #0c0c0c;
  border: solid 1px #ffc208;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1rem;
}

.trabajemos a {
  color: #fffcf9;
  text-decoration: none;
  transition: .2s linear;
}

.trabajemos a:hover {
  color: #0c0c0c;
}

.servicios{
  padding: 63px;
}

.servicios .container {
  padding: 70px 50px;
  background-color: #11012e;
  border-radius: 24px;
}

.iconos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  color: #fffcf9;
  gap: 20px;
}

.iconos h5 {
  padding-top: 20px;
  font-weight: 600;
  font-size: 20px;
}

.iconos i {
  font-size: 50px;
}

.iconos p {
  font-weight: 100;
  padding-top: 20px;
  text-align: left;
}


.cajas {
  background-color: #b202c2;
  padding: 40px;
  border-radius: 16px;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 300px;
}

.servicios .container h1 {
  font-size: clamp(2rem, 8vw, 5rem); 
  color: #fffcf9;
  text-align: center;
  padding-bottom: 40px;
  font-family: "Bebas Neue";
  word-wrap: break-word;
  line-height: 1.2;
}


.galeria,
.imagenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.galeria-foto,
.imagen {
  position: relative;
  overflow: hidden;
}

.img-container {
  width: 350px;
  height: 450px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.img-container:hover img {
  transform: scale(1.5);
}

.hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 60px 40px;
  background: rgba(0, 0, 0, 0.714);
  color: #fffcf9;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-text h3 {
  font-family: "Bebas Neue";
  line-height: 1;
  font-size: 50px;
}

.hover-text span {
  font-size: 20px;
}

.hover-text i {
  display: inline-block;
  padding-top: 1rem;
  font-size: 30px;
}

.img-container:hover .hover-text {
  opacity: 1;
}

.servicios-accordion {
  width: 100%;
}

.servicio-item {
  overflow: hidden;
}

.fa-chevron-right {
  color: #0c0c0c;
}

.servicio-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #0c0c0c;
  border-bottom: 1px solid #0c0c0c;
  cursor: pointer;
  transition: background-color 0.3s;
}

.servicio-header:hover {
  background-color: #0c0c0c;
}

.servicio-title {
  display: flex;
  align-items: center;
}

.servicio-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: bold;
  color: #fffcf9;
}

.servicio-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fffcf9;
}

.servicio-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: #fffcf9;
  padding: 0 25px;
}

.servicio-content-inner {
  margin: 0 80px;
  padding: 50px 0;
  color: #0c0c0c;
}

.servicio-content-inner .nombre h1 {
  margin-bottom: 0;
  padding-bottom: 0;
}

.servicio-content-inner p {
  line-height: 1.3;
  margin-top: 0;
  padding-top: 0;
}

.servicio-content-inner i {
  line-height: 1.3;
  font-size: 25px;
  padding: 10px 5px;
}

.servicio-content-inner h2 {
  font-family: "Bebas Neue";
  padding: 20px 0;
}

.servicio-item:nth-child(1) .servicio-icon {
  background-color: #ffc208;
}

.servicio-item:nth-child(2) .servicio-icon {
  background-color: #b202c2;
}

.servicio-item:nth-child(3) .servicio-icon {
  background-color: #ff018f;
}

.imagenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.imagen {
  overflow: hidden;
  width: 20%;
  height: auto;
  transition: transform 0.3s ease;
}

.imagen:hover {
  transform: scale(1.05);
}

.imagen img {
  width: 100%;
  transition: transform 0.3s ease;
}

button:disabled {
  margin-bottom: 5px;
  color: #0c0c0c;
  border: solid 1px #ffc208;
  background-color: #fffcf9;
  padding: 1rem;
  border-radius: 50px;
  font-family: Gabarito;
  font-size: 1rem;
}

.intro-section {
  background-color: #fffcf9;
  margin: 150px auto;
  padding: 0 20px;
  max-width: 1200px;
  text-align: center;
}

.intro-logo {
  width: 40%;
  padding: 20px 0;
  margin: 0 auto;
  display: block;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.contact-form {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info {
  flex: 1;
  background-color: #ff018f;
  padding: 25px;
  border-radius: 15px;
  color: #0c0c0c;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
}

.contact-info .social-icons a {
  width: 30px;
  height: 30px;
  color: #0c0c0c;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
}

.contact-info .social-icons a:hover {
  color: #ffc208;
}

.input-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.input-row input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #fffcf9;
  font-size: 14px;
}

.contact-form button {
  width: 150px;
  padding: 12px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffc208;
  color: #0c0c0c;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b202c2;
  color: #fffcf9;
}

footer .trabajemos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px;
  gap: 20px;
}

@media(max-width: 1024px) {
  .imagen {
    width: 30%;
  }


  .iconos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 50px;
    margin: 100px 50px;
  }
}

@media(max-width: 900px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}

@media(max-width: 768px) {
  .servicio-content-inner {
    flex-direction: column;
    margin: 0;
    gap: 20px;
  }

  .servicio-content-inner h1{
    font-size: 60px;
  }

  .servicio-content-inner .imagen{
    width: 100% !important;
    margin: 20px auto ;
  }

  .servicio-content-inner img {
    width: 100% !important;
  }

  .galeria {
    flex-direction: column;
    align-items: center;
  }

  .img-container {
    width: 90%;
    max-width: 400px;
  }

  .imagen {
    width: 45%;
  }

  .intro-logo {
    width: 70%;
  }

  footer .trabajemos {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
}

@media(max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
    margin: 60px 15px;
  }

  .imagen {
    width: 100%;
  }

  .intro-logo {
    width: 90%;
  }
}