/* ==========================================================================
   Archivo: hablemos.css
   Descripción: Estilos de página Hablemos para el sitio web de Genvot.
   Autor: Ricardo D. Ponce M.
   Fecha: 25 de abril de 2025
   Versión: 1.0.0
   ========================================================================== */

/* === Sección Dispuesto === */

#hablemos {
  background-color: #6200e3;    
}    

.dispuesto {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 10rem;
}

.dispuesto__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

@media (max-width: 768px) {
  .dispuesto__wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

.dispuesto__text-large {
  font-size: clamp(4.5rem, 20vw, 16rem);
  line-height: clamp(4.5rem, 15vw, 16rem);
  font-family: "Mersad", sans-serif;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}
    
.dispuesto__text-large--padding {
  padding-bottom: 2.8rem;    
}

@media (max-width: 1000px) {
  .dispuesto__text-large--padding {
      padding-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .dispuesto__text-large--padding {
      padding-bottom: 0.8rem;
  }
}

/* === Sección Preguntas === */

.preguntas {
  display: flex;
  align-items: center;
}

.preguntas__encabezado {
  width: 60%;
}

@media (max-width: 1000px) {
  .preguntas__encabezado {
    width: 100%;
  }
}

.preguntas__titulo {
  font-size: calc(2.3rem + 1.8vw);
  line-height: calc(2.3rem + 2.6vw);
  font-weight: 500;
  color: #fff;
  padding: 0 10% 0 0;
}

/* === Sección Formulario === */

.hablemos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: transparent;
  overflow: hidden;
  color: #ffffff;
}

#hablemos-form {
  width: 100%;
}

.hablemos__question-container {
  display: none;
}

.hablemos__question-container.active {
  display: block;
}

.hablemos__question-container label {
  display: block;
  margin: 2rem 0;
  text-align: left;
  font-size: calc(1.8rem + 1.41vw);
  line-height: calc(1.8rem + 2.03vw);
}

.hablemos input,
.hablemos input:hover,
.hablemos input:active,
.hablemos input:focus,
.hablemos textarea,
.hablemos textarea:hover,
.hablemos textarea:active,
.hablemos textarea:focus {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  font-size: 1.6rem;
  padding: 1rem 0;
  outline: none;
}

.hablemos textarea {
  height: 200px;
  resize: none;
}

.hablemos input::placeholder,
.hablemos textarea::placeholder {
  color: #15b474;
  opacity: 1;
}

.hablemos__controles {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.hablemos__controles-boton {
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hablemos__controles-boton:hover,
.hablemos__controles-boton:active,
.hablemos__controles-boton:focus {
  background: #15b474;
  border-color: #15b474;
}

.hablemos__zona {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hablemos__zona img {
  width: 40px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

@media (min-width: 1025px) {
  .hablemos__zona {
    display: flex;
    pointer-events: auto;
    cursor: pointer;
    width: 30vw;
    height: 100%;
    position: absolute;
    top: 0;
    align-items: center;
    justify-content: center;
  }

  .hablemos__zona--izquierda {
    left: 20vw;
    transform: scaleX(-1);
  }

  .hablemos__zona--derecha {
    right: 20vw;
  }

  .hablemos__zona:hover img {
    opacity: 1;
  }
}

.hablemos-form__counter {
  font-size: 14px;
  color: #fff;
  transition: opacity 0.3s ease;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

.typewriter-hablemos span {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #ffffff;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #ffffff;
  }
}