/* ESTILOS BASE */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to top, #dd792e 0%, #ffffff 100%);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.form-header {
  padding: 1rem;
  background-color: transparent;
  text-align: left;
}

.volver {
  text-decoration: none;
  color: #22221c;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.5rem 2rem;
}

/* INTRODUCCION */

.servicios-info {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  color: #222;
}
.servicios-info h1 {
  color: #d4743a;
  font-family: "Gravitas One", serif;
  font-size: 2.3rem;
}
.servicios-info p {
  font-size: 1.2rem;
}

.recuadros {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  right: 0;
}

.recuadro {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 0 1 calc(46% - 1rem);
  max-width: calc(50% - 1rem);
}


.contenido-principal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}


.toggle-btn {
  background-color: #dd792e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}
.recuadro .toggle-close {
  margin-top: 1rem;
}
.recuadro.active .toggle-open {
  display: none;
}

.contenido-extendido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding-top 0.3s ease;
  padding-top: 0;
  display: block;
}
.recuadro.active .contenido-extendido {
  max-height: 1500px;
  padding-top: 1rem;
}


.recuadro h2 {
  font-size: 1.3rem;
  color: #dd792e;
}

.contenido-extendido p,
.contenido-extendido ul li {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  text-align: start;
  letter-spacing: 0.3px;
}

.botones-dos {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-explorar {
  background-color: #731970;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.35s ease;
}
.btn-explorar:hover {
  background-color: #491047;
  transform: scale(1.03);
}


/* FORMULARIO */

.form-seccion {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 90%;
  box-sizing: border-box;
}

.form-seccion form {
  display: grid;
  gap: 1rem;
}

h1 {
  font-family: "Gravitas One", serif;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.5px;
  color: #dd792e;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

p {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #444;
  margin-bottom: 1.5rem;
  text-align: center;
}

input,
select,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.grid-dos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.grid-tres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

button {
  background-color: #dd792e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
  width: fit-content;
  align-self: center;
  justify-self: center;
}

button:hover {
  background-color: #ad5f24;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .recuadros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .recuadro {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}


/* MEDIA QUERIES PARA CELULARES Y TABLETS */
@media (max-width: 768px) {
  .servicios-info {
    margin-top: -2rem;
  }

  .recuadros {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los recuadros horizontalmente */
    gap: 1.5rem;
  }

  .recuadro {
    flex: 0 1 auto;
    width: 90%;
    max-width: 90%;
    margin: .7rem auto;
  }

  .form-seccion {
    padding: 1.5rem;
    margin: 1.5rem auto;
    width: 90%;
  }

  h1 {
    font-size: 2.2rem;
  }

  p {
    font-size: 1rem;
    text-align: center;
  }

  .grid-dos,
  .grid-tres {
    grid-template-columns: 1fr;
  }

  button {
    font-size: 1rem;
    padding: 0.7rem 2rem;
  }

  .volver {
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
  }
}

/* AJUSTES ESPECÍFICOS PARA NAVEGADORES DE META */
@media (max-width: 768px) and (max-height: 800px) {
  body {
    padding-bottom: 3rem;
    overflow-x: hidden;
  }

  .recuadros {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los recuadros horizontalmente */
    gap: 1.5rem;
  }

  .recuadro {
    flex: 0 1 auto;
    width: 90%;
    max-width: 90%;
    margin: .7rem auto;
  }

  .form-seccion {
    margin-top: 1rem;
    margin-bottom: 3rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }

  button {
    font-size: 1rem;
  }
}
