.fondo-novedades {
  background-color: #f8f8f8;
  padding: 60px 20px;
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto;
}

.contenido-novedades {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
  padding: 0 20px;
}

.texto-novedades {
  flex: 1 1 400px;
}

.titulo-novedades {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.formulario-novedades {
  flex: 1 1 230px;
  min-width: 300px;
}

.campo-correo {
  display: flex;
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  align-items: center;
  padding-left: 25px;
  height: 60px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.campo-correo:hover {
  border-color: #e0e0e0;
}

.campo-correo:focus-within {
  border-color: #80B8B1;
  /* box-shadow: 0 6px 16px rgba(128, 184, 177, 0.2); */
}

.correo {
  border: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  font-family: inherit;
  background-color: transparent;
  color: #333;
  padding: 8px 0;
}

.correo::placeholder {
  color: #999;
  font-weight: 400;
}

.boton-enviar {
  border: none;
  background-color: #39524F;
  color: white;
  font-size: 18px;
  height: 100%;
  padding: 0 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.boton-enviar:hover {
  background-color: #2d413e;
}

.boton-enviar .texto-boton {
  display: none;
}

.icono-flecha {
  display: inline-block;
  transition: transform 0.3s ease;
}

.boton-enviar:hover .icono-flecha {
  transform: translateX(3px);
}

.texto-secundario {
  font-size: 16px;
  color: #555;
  margin-top: 15px;
  line-height: 1.5;
  max-width: 370px;
  opacity: 0.9;
  margin-left: 30px;
}

.texto-secundario-mobile {
  display: none;
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
  opacity: 0.9;
}


@media (max-width: 768px) {

  .fondo-novedades {
    padding: 40px 20px;
  }

  .contenido-novedades {
    flex-direction: column;
    gap: 30px;
  }

  .texto-novedades {
    width: 100%;
    text-align: center;
    flex: 1;
  }

  .formulario-novedades {
    width: 100%;
    flex: 1;
  }

  .texto-secundario {
    display: none;
  }

  .texto-secundario-mobile {
    display: block;
  }

  .titulo-novedades {
    text-align: center;
    margin-bottom: 15px;
  }

  .campo-correo {
    height: 56px;
  }
}

@media (max-width: 480px) {
  .fondo-novedades {
    padding: 30px 15px;
  }

  .campo-correo {
    height: 50px;
    padding-left: 20px;
  }

  .boton-enviar {
    padding: 0 20px;
  }

  .titulo-novedades {
    font-size: 1.8rem;
  }
}



.popup-overlay-novedades {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay-novedades.active {
  display: flex;
  opacity: 1;
}

.popup-content-novedades {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.popup-overlay-novedades.active .popup-content-novedades {
  transform: translateY(0);
}

.popup-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.popup-email {
  font-weight: 600;
  color: #39524F;
  word-break: break-all;
}

.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.popup-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 150px;
}

.popup-confirm {
  background-color: #39524F;
  color: white;
}

.popup-confirm:hover {
  background-color: #2d413e;
}

.popup-cancel {
  background-color: #f0f0f0;
  color: #333;
}

.popup-cancel:hover {
  background-color: #e0e0e0;
}

.popup-loading {
  display: none;
  margin: 20px 0;
}

.popup-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

.popup-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.popup-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.popup-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
  .popup-content-novedades {
    padding: 30px 20px;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-buttons {
    flex-direction: column;
  }

  .popup-btn {
    max-width: none;
  }
}
